Colin McCann Dot Com

Hacker defense – passive intrusion detection via shell scripting and crontab

Posted on November 28, 2011 at 3:56 pm

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.

Code
No comments for this entry yet...

Leave a Reply

Looking for something?

Use the form below to search the site:

Still not finding what you're looking for? Drop a comment on a post or contact us so we can take care of it!

Visit our friends!

A few highly recommended friends...