Insights, updates, and deep dives into cybersecurity, cloud technology, and AI innovation.
Go to awstats.sourceforge.net and download the latest stable AWStats package Unpack the tarball in /usr/local (or install from RPM) Rename the new directory created to “awstats” Update the apache conf file Create an /etc/awstats directory for the config files Create and awstats.sh file to be placed in cron.daily Create config files, and test from the […]
This solution was suggested by Raymond Dijkxhoorn on BugTraq: If you cannot fix it (virtual servers) fast for all your clients you could also try with something like this: RewriteEngine On RewriteCond %{QUERY_STRING} ^(.*)echr(.*) [OR] RewriteCond %{QUERY_STRING} ^(.*)esystem(.*) RewriteRule ^.*$ – [F] We had some vhosts where this worked just fine. On our systems we […]
To do a recursive search and replace in a file system tree, the most effective way is to work directly on the file system. Using a tool like DreamWeaver is slow and cumbersome. Unix offers perl and find, which combined allow to do a search and replace recursively very easily. This implmentation is in perl, […]
To clear the DNS cache on Mac OS X (10.5), open a terminal window and type: dscacheutil -flushcache
To clear the DNS cache on RedHat Linux, open a terminal window and type: service named restart (You need to be root.)
To clear the DNS cache on windows, you can either reboot, or open a DOS window, and run: ipconfig /flushdns
To create an MD5 password at the prompt, assuming you have tomcat installed in /usr/local/tomcat, type $ export TOMCAT=”/usr/local/tomcat” $ java -cp “/server/lib/catalina.jar:/usr/share/java/jmxri.jar:/bin/commons-logging-api.jar” \ org.apache.catalina.realm.RealmBase -a md5 [secret] by replacing “[secret]” with the password. Some systems have a working digest.sh script that does the same thing.
We found this article most useful to help with terminal services connectivity: Terminal Services Part 2 We also captured a version for archiving perposes in this PDF file.
To delete dupplicate records in SQL, the following sequence of commands will do the trick: CREATE TABLE temp AS SELECT DISTINCT * FROM table_to_deduplicate; DROP TABLE table_to_deduplicate; ALTER TABLE temp RENAME TO table_to_deduplicate; Be mindful of the fact that this process will not preserve the constraints on the original table. So if you have indexes, […]