From a133fef7af486345da1e488edf05bc4e2c63d858 Mon Sep 17 00:00:00 2001 From: gabrielg5 Date: Thu, 5 Dec 2024 12:47:05 -0500 Subject: [PATCH] mssqlshell - 'do_upload' command showing unhandled exceptions --- impacket/examples/mssqlshell.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/impacket/examples/mssqlshell.py b/impacket/examples/mssqlshell.py index 6afa69821..a96fde225 100644 --- a/impacket/examples/mssqlshell.py +++ b/impacket/examples/mssqlshell.py @@ -190,8 +190,8 @@ def do_upload(self, line): else: print("[-] ERROR! MD5 hashes do NOT match!") print("[+] Uploaded file MD5: %s" % md5sum_uploaded) - except: - pass + except Exception as e: + print("[-] Unhandled Exception:", e) def do_xp_dirtree(self, s): try: