Page 1 of 1

cmd cmd.exe command line win

Posted: 03 Jun 2021, 09:51
by dev

Code: Select all

netstat –nao
netstat -ao |find /i "listening"

Show all TCP and UDP port usage and process ID:
netstat –nao

Look for usage of port [port] every [N] seconds
netstat –nao [N] | find [port]

Dump detailed protocol statistics
netstat –s –p [tcp|udp|ip|icmp]

Code: Select all

netsh winsock reset
ipconfig /release
netsh int ip reset
ipconfig /flushdns
ipconfig /renew


https://www.sans.org/security-resources ... eet_v1.pdf
http://www.cs.columbia.edu/~sedwards/cl ... tsheet.pdf