Personal blog, accepting guest commentary and links to things of interest.

March 3, 2005

Simple script to watch for syn floods

by @ 2:33 pm. Filed under Security

#!/usr/bin/perl -w
#Simple Script to monitor syn attacks.
$syn_alert=15;
$hostname=`hostname`;
chomp($hostname);
$num_of_syn=`netstat -an | grep -c SYN`;
if($num_of_syn > $syn_alert){`netstat -an | grep SYN | mail -s “SYN ATTACK DETECTED ON $hostname” admin@yourcompany.com`;
}else
{}exit;

internal links:

Aquarium

    PH = 8.22
    AirTemp = 77.95
    TankTemp = 79.9
    ORP = 420

Google Ads:

categories:

search blog:

archives:

March 2005
M T W T F S S
« Feb   Sep »
 123456
78910111213
14151617181920
21222324252627
28293031  

other:

  • RSS 2.0
  • Comments RSS 2.0
  • Valid RSS
  • Valid XHTML
  • XFN
  • Theme copyright © 2002–2008 Mike Little.

FlickrRss: "watchmen"

    SOMEBODY

    IMG_3915

    IMG_3914

    watchmen_silkspectre

    watchmen_rorschach

20 queries. 1.490 seconds