Skip to content

Instantly share code, notes, and snippets.

@daniDLL
Last active November 22, 2019 10:51
Show Gist options
  • Save daniDLL/f45c268cd9c965c8443e4b410a4b5765 to your computer and use it in GitHub Desktop.
Save daniDLL/f45c268cd9c965c8443e4b410a4b5765 to your computer and use it in GitHub Desktop.
The number of connections to see if it is a DDoS attack
netstat -an|awk '/tcp/ {print $6}'|sort|uniq -c
netstat -a | grep tcp | egrep "http|https"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment