Commit a9cf160d by Marcin Bury

Merge pull request #93 from Michsior14/master

Fix hg630a if paramiko ssh trows no valid connections
parents 89477dc4 b74e6414
......@@ -87,7 +87,7 @@ class Exploit(exploits.Exploit):
try:
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
else:
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