a blog by Brie Gordon http://www.briegordon.com ...and nothing more posterous.com Wed, 24 Feb 2010 05:01:55 -0800 Easily monitor your computer security via Twitter http://www.briegordon.com/easily-monitor-your-computer-security-via-twi http://www.briegordon.com/easily-monitor-your-computer-security-via-twi This was written for Ubuntu users but most *NIX-based people should be able to follow along. You'll need the basic set up described here.

Then place the following in a file called something like /etc/cron.hourly/auths:

#!/bin/bash

TWEET=`/bin/grep "Failed password" /var/log/auth.log | /usr/bin/tail -n1 | /usr/bin/cut -d"]" -f2`

echo $TWEET | /root/tweet.pl


Here is an example of what you'll see. It basically tells you about the last time someone tried to authenticate to your computer using the wrong password, their IP address and what username they tried. You may see duplicates but for something quick and dirty...it works. I'll do what needs to be done to eliminate the duplicates very soon. :-).

--Brie

Permalink | Leave a comment  »

]]>
http://files.posterous.com/user_profile_pics/334073/realthumb.jpg http://posterous.com/people/k44M7ryRZT Brie Gordon Brie Brie Gordon