Nice, thanks otai brother Bahathir :)
On Thu, Oct 14, 2010 at 9:10 PM, Harisfazillah Jamel < [email protected]> wrote: > 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 > -- Hasanuddin Abu Bakar GSEC #28858 IT Security Engineer +6017 913 1983 Sigma Rectrix Systems (M) Sdn Bhd No.15 & 15-1, Jalan Equine 9A, Equine Park, Bandar Putra Permai 43300 Seri Kembangan Selangor URL : www.sigmarectrix.com Phone : 03-89486696 Fax : 03-89487796 Helpdesk : 03-89486596
_______________________________________________ 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

