Unverified Commit a0d7e4ca by Marcin Bury Committed by GitHub

Fixing Telnet read until encoding (#408)

parent 050bb861
...@@ -81,7 +81,8 @@ class TelnetClient(Exploit): ...@@ -81,7 +81,8 @@ class TelnetClient(Exploit):
if type(data) is str: if type(data) is str:
data = bytes(data, "utf-8") data = bytes(data, "utf-8")
return telnet_client.read_until(data, 5) response = telnet_client.read_until(data, 5)
return str(response, "utf-8")
return None return None
......
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