Commit ab0cb086 by Michał Mrozek

Fix hg630a if paramiko ssh trows no valid connections

parent 89477dc4
...@@ -87,7 +87,7 @@ class Exploit(exploits.Exploit): ...@@ -87,7 +87,7 @@ class Exploit(exploits.Exploit):
try: try:
ssh.connect(self.target, 22, timeout=5, username=self.user, password=self.password) ssh.connect(self.target, 22, timeout=5, username=self.user, password=self.password)
except paramiko.ssh_exception.SSHException: except (paramiko.ssh_exception.SSHException, paramiko.ssh_exception.NoValidConnectionsError
return False # target is not vulnerable return False # target is not vulnerable
else: else:
return True # target is vulnerable return True # target is vulnerable
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment