Article View: alt.privacy.anon-server
Article #275531Re: Server under SYN attack
From: Anonymous
Date: Tue, 11 Aug 2015 15:54
Date: Tue, 11 Aug 2015 15:54
43 lines
1780 bytes
1780 bytes
<snip>
> I am also running the following script to detect any further
> attacks:
>
> #!/bin/bash
> #
> # Detect SYN attack
>
> while true; do
> sleep 1 # chk for syn attack every second
> netstat -ant > syn-attack.txt
>
> cat syn-attack.txt | mail -s "Possible SYN attack?" \
> me@myisp.net -r my@remailer.net
> exit 0 # this can be 'sleep 60' or > seconds
> fi
> done
>
> exit 0
Actually, I am running this script now. The one above is i/o
intensive.
#!/bin/bash
#
# Detect SYN attack
while true; do
sleep 1 # chk for syn attack every second
if [[ $(netstat -ant | grep -c SYN_RECV) -gt 3 ]]; then
netstat -ant > syn-attack.txt
cat syn-attack.txt | mail -s "Possible SYN attack?" \
me@myisp.net -r my@remailer.net
exit 0 # this can be 'sleep 60' or > seconds
fi
done
exit 0
Note: the 'netstat -ant > syn-attack.txt' may not be quick enough to catch and list the SYN_RECV messages for the subsequent 'cat syn-attack.txt'. If actually under attack, the i/o intensive script will work best.
Technical Details
Message-ID:
<12c9ad1a88dca13e57bafd03ee165649@foto.nl1.torservers.net>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!i2pn2.pugleaf.net!archive.newsdeef.eu!apf1.newsdeef.eu!news.usenet.farm!..!..!not-for-mailReferences:
<46ed2075d3ade53186c00d3fc379f83f@dizum.com>Show Full Headers
Complete Article Headers
Message-ID: <12c9ad1a88dca13e57bafd03ee165649@foto.nl1.torservers.net> Subject: Re: Server under SYN attack Date: Tue, 11 Aug 2015 15:54:19 +0000 From: Anonymous <anonymous@foto.nl1.torservers.net> References: <46ed2075d3ade53186c00d3fc379f83f@dizum.com> Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!i2pn2.pugleaf.net!archive.newsdeef.eu!apf1.newsdeef.eu!news.usenet.farm!..!..!not-for-mail Newsgroups: alt.privacy.anon-server Organization: dizum.com - The Internet Problem Provider X-Abuse: abuse@dizum.com Injection-Info: sewer.dizum.com - 194.109.206.211 Lines: 43