Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rikvanderkemp/090499da85307e8df20a0e1a4501e997 to your computer and use it in GitHub Desktop.
Save rikvanderkemp/090499da85307e8df20a0e1a4501e997 to your computer and use it in GitHub Desktop.
Check incoming IPs on 443 or 80
netstat -tn 2>/dev/null | grep :443 | awk '{print $5}' | cut -d: -f1 | sort | uniq -c | sort -nr | head
netstat -tn 2>/dev/null | grep :80 | awk '{print $5}' | cut -d: -f1 | sort | uniq -c | sort -nr | head
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment