One liner Bro. Root best... TQ.

> Link to this post:
> http://www.google.com/buzz/105300886571813739107/DgpTN21M9NL/http-deflate-medialayer-com-D-DoS-Deflate-is-a

> Oct 13 Harisfazillah Jamel: http://deflate.medialayer.com/ (D)DoS Deflate is 
> a lightweight bash shell script designed to assist in the process of blocking 
> a denial of service attack. It utilizes the command below to create a list of 
> IP addresses connected to the server, along with their total number of 
> connections. It is one of the simplest and easiest to install solutions at 
> the software level.
> 12:44 pm Mohammad Bahathir Hashim: Here is my version, where most of the 
> works are donw by awk. So no 'cut' and 'uniq' are involved. :)

$ netstat -ntu | awk '/ESTABLISHED/{split ($5,FIP,":"); c[FIP[1]]++;}
END {for (ip in c) print c[ip],ip}' | sort -n
_______________________________________________
Owasp-Malaysia mailing list
[email protected]
https://lists.owasp.org/mailman/listinfo/owasp-malaysia

OWASP Malaysia Wiki
http://www.owasp.org/index.php/Malaysia

OWASP Malaysia Wiki Facebook
http://www.facebook.com/pages/OWASP-Malaysia-Local-Chapter/295989208420

Reply via email to