Last active
February 28, 2020 16:52
-
-
Save AysadKozanoglu/86f916e16b4d374c70b576065191268b to your computer and use it in GitHub Desktop.
display all connection by counting the connection per ip address
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#! /bin/sh | |
# author: Aysad Kozanoglu | |
# email: aysadx@gmail.com | |
# | |
# QUICK USAGE: | |
# wget -O - "https://git.io/fAtyh" | bash | |
watch "netstat -atun | grep -v -E 'address|and|Recv-Q' | awk '{print $5}' | cut -d: -f1 | sed -e '/^$/d' |sort | uniq -c | sort -r" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment