Last active
April 13, 2020 06:22
-
-
Save aamsur-mkt/5ea816b1ebb1495c68d70e112740358c to your computer and use it in GitHub Desktop.
Show incoming ddos attackers IP and Its connection
This file contains hidden or 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
#netstat -ntu|awk '{print $5}'|cut -d: -f1 -s|sort|uniq -c|sort -nk1 -r | |
============================= | |
example output | |
============================= | |
2391 60.191.23.61 | |
2 60.191.23.59 | |
1 223.255.127.75 | |
1 212.92.101.89 | |
1 209.17.97.50 | |
1 209.17.97.34 | |
1 209.17.96.162 | |
1 196.52.43.85 | |
1 183.220.246.228 | |
1 183.129.159.243 | |
1 125.64.94.211 | |
1 124.158.147.210 | |
1 120.79.243.29 | |
1 115.238.34.19 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment