Archive for November, 2011
Hacker defense – passive intrusion detection via shell scripting and crontab
by admin on Nov.28, 2011, under Code
This is a quick shell script I threw together after one of my sites got hacked by some blackhat Chinese group. Set this to run every minute in your crontab. You’ll probably have to create the two files (current.txt and archive.txt) and chmod them to be writable before this will work properly. This will notify you as soon as any files are added to your website. (continue reading…)