Merge pull request #302 from VakarisZ/ssh_exploiter_smallfix
SSH exploiter handles exception better
This commit is contained in:
commit
e62af80b20
|
@ -84,7 +84,7 @@ class SSHExploiter(HostExploiter):
|
||||||
self.report_login_attempt(True, user, curpass)
|
self.report_login_attempt(True, user, curpass)
|
||||||
break
|
break
|
||||||
|
|
||||||
except Exception as exc:
|
except paramiko.AuthenticationException as exc:
|
||||||
LOG.debug("Error logging into victim %r with user"
|
LOG.debug("Error logging into victim %r with user"
|
||||||
" %s and password '%s': (%s)", self.host,
|
" %s and password '%s': (%s)", self.host,
|
||||||
user, curpass, exc)
|
user, curpass, exc)
|
||||||
|
|
Loading…
Reference in New Issue