Search


Thursday, August 11, 2011

DDOS finding scripts

DDOS Number of connections
 
 
netstat -plan|grep :80|awk {'print $5'}|cut -d: -f 1|sort|uniq -c|sort -nk 1
netstat -anp |grep 'tcp\|udp' | awk '{print $5}' | cut -d: -f1 | sort | uniq -c | sort -n
netstat -plan |grep :80 | awk '{print $5}' |cut -d: -f1 |sort |uniq -c |sort -n
netstat -plan |grep :80 | grep -i esta | awk '{print $5}' |cut -d: -f1 |sort |uniq -c |sort -n
netstat -plan |grep :80 | cut -d: -f8 | sort | uniq -c | sort -n
netstat -plan |grep :80 | wc -l
netstat -plant | awk ' gsub(":"," ") $5 ~ /80/  {print $6}'  | sort | uniq -c | sort -n
 
Hourly hits from apache logs 
 
awk '{print $4,$5}' /var/log/httpd/access_log  | cut -d: -f1,2 | sort | uniq -c

No comments:

Post a Comment