DOS IP with local port

From James Dooley's Wiki
Revision as of 18:41, 8 April 2011 by Smsldoo (talk | contribs) (Overview)
Jump to: navigation, search

Overview

Gets current netstat connections and shows each IP address with local port connection.

This script will not show correct IP addresses if this server is behind Zeus or a Firewall.

In those cases try View Domlogs for top visitors

Script

[bash,n]netstat -ntu | awk '{print $5 $4}' | cut -d: -f1,3 | sort | uniq -c | grep -v o | sort -n

What to change