Browsing all posts in "check for a ddos".

Dec 14th
Monday
       

#!/bin/bash # Shell Script To List All Top Hitting IP Address to your webserver. # This may be useful to catch spammers and scrappers. # ———————————————————————- # This script is licensed under GNU GPL version 2.0 or above # ———————————————————————- # where to store final report? DEST=/var/www/reports/ips # domain name DOM=$1 # log file location [...]

Aug 1st
Saturday
       

A quick and usefull command for checking if a server is under ddos is: netstat -anp |grep ‘tcp\|udp’ | awk ‘{print $5}’ | cut -d: -f1 | sort | uniq -c | sort -n That will list the IPs taking the most amount of connections to a server. It is important to remember that the [...]