From 8b4323417b5d746adf340e268b55b4e404e69507 Mon Sep 17 00:00:00 2001 From: Philipp Hentschel Date: Mon, 30 Dec 2024 01:45:33 +0100 Subject: [PATCH] ssh tube: replaced nonexistent key with str(e) in error handling method to get proper error message displayed in stacktrace --- pwnlib/tubes/ssh.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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: