Check network traffic ( Ddos )
Các câu lệnh thường được dùng khi kiểm tra check lưu lượng request tới
netstatcommand:
netstat -nanetstat -an | grep :80 | sort
netstat -an | egrep ":80|:443" | sortTo see if many active
SYNC_REC:
netstat -n -p|grep SYN_REC | wc -lTo list out all the IP addresses sending
SYNC_RECstatuses, use the command:
netstat -n -p | grep SYN_REC | sort -uTo further list all the unique IP addresses sending
SYNC_RECstatuses, use the command:
netstat -n -p | grep SYN_REC | awk '{print $5}' | awk -F: '{print $1}'netstat -ntu | awk '{print $5}' | cut -d: -f1 | sort | uniq -c | sort -nnetstat -anp |grep 'tcp|udp' | awk '{print $5}' | cut -d: -f1 | sort | uniq -c | sort -nnetstat -ntu | grep ESTAB | awk '{print $5}' | cut -d: -f1 | sort | uniq -c | sort -nrnetstat -plan|grep :80|awk {'print $5'}|cut -d: -f 1|sort|uniq -c|sort -nk 1Last updated
Was this helpful?