Skip to content

Commit 393b607

Browse files
committed
Adding a banner_timeout as this might fix Pennyw0rth#312 according to paramiko/paramiko#1752 (comment)
1 parent a98bfab commit 393b607

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

nxc/protocols/ssh.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -198,6 +198,7 @@ def plaintext_login(self, username, password, private_key=""):
198198
timeout=self.args.ssh_timeout,
199199
look_for_keys=False,
200200
allow_agent=False,
201+
banner_timeout=self.args.ssh_timeout,
201202
)
202203

203204
cred_id = self.db.add_credential(
@@ -217,6 +218,7 @@ def plaintext_login(self, username, password, private_key=""):
217218
timeout=self.args.ssh_timeout,
218219
look_for_keys=False,
219220
allow_agent=False,
221+
banner_timeout=self.args.ssh_timeout,
220222
)
221223
cred_id = self.db.add_credential("plaintext", username, password)
222224

0 commit comments

Comments
 (0)