Tuesday, May 10, 2011

NetStat Tips

http://en.wikipedia.org/wiki/Netstat

All Active TCP & UDP connections
netstat -a

All Active TCP Connections and PID
netstat –o

All Active TCP Connections and Process name
netstat -b
netstat –aon
netstat –ab
netstat -ob

To get a more detailed list that includes the EXE file and DLL file names
netstat –anobv
netstat -an | find /i "listening"
netstat -an | find  /I "established"
netstat -an | find /i "listening" > c:\openports.txt
netstat -aon | findstr 0.0:80
netstat -aon | findstr 7200
netstat –an 5 (refresh after 5 seconds)

- Find Hops:  pathping

- Host Name:  nslookup 172.29.120.43

No comments:

Post a Comment