diff --git a/pwnlib/tubes/ssh.py b/pwnlib/tubes/ssh.py index 8f19b57a2..b714a5660 100644 --- a/pwnlib/tubes/ssh.py +++ b/pwnlib/tubes/ssh.py @@ -450,7 +450,7 @@ def __init__(self, parent, host, port, *a, **kw): try: self.sock = parent.transport.open_channel('direct-tcpip', (host, port), ('127.0.0.1', 0)) except Exception as e: - self.exception(e.message) + self.exception(str(e)) raise try: