mirror of
https://github.com/Pennyw0rth/NetExec.git
synced 2026-11-07 09:26:01 -10:00
Merge pull request #1428 from MRX-72/fix-ssh-timeout-error
SSH: catch TimeoutError during login with a clean fail message
This commit is contained in:
1 file changed
+2
@@ -134,6 +134,8 @@ class ssh(connection):
|
||||
self.logger.error(f"Internal Paramiko error for {username}:{process_secret(password)}, {e}")
|
||||
else:
|
||||
self.logger.exception(e)
|
||||
except TimeoutError:
|
||||
self.logger.fail(f"{username}:{process_secret(password)} Connection timed out")
|
||||
except Exception as e:
|
||||
self.logger.exception(e)
|
||||
self.conn.close()
|
||||
|
||||
Reference in new issue
Block a user