Skip to content

Instantly share code, notes, and snippets.

@rooty
Created January 13, 2018 00:36
Show Gist options
  • Save rooty/b13758225b1f4810ebf8dc493280176b to your computer and use it in GitHub Desktop.
Save rooty/b13758225b1f4810ebf8dc493280176b to your computer and use it in GitHub Desktop.
netstat -nalp | grep -E ':80 |:443 ' | awk '{print $6}' | sort | uniq -c
308 CLOSE_WAIT
2702 ESTABLISHED
148 FIN_WAIT1
66 FIN_WAIT2
3 LAST_ACK
1 LISTEN
139 SYN_RECV
4 SYN_SENT
351380 TIME_WAIT
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment