Commit b74e6414 by Michał Mrozek

Fix hg630a if paramiko ssh trows no valid connections

parent ab0cb086
...@@ -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, paramiko.ssh_exception.NoValidConnectionsError 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