From 568ee4669ec14e1fb30b0645102d010429d70772 Mon Sep 17 00:00:00 2001 From: Miroslav Stampar Date: Thu, 5 Dec 2019 13:56:46 +0100 Subject: [PATCH] Minor patch (gui) --- sqlmap.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/sqlmap.py b/sqlmap.py index e50f57456..0b086b90c 100755 --- a/sqlmap.py +++ b/sqlmap.py @@ -385,6 +385,12 @@ def main(): logger.critical(errMsg) raise SystemExit + elif all(_ in excMsg for _ in ("window = tkinter.Tk()",)): + errMsg = "there has been a problem in initialization of GUI interface " + errMsg += "('%s')" % excMsg.strip().split('\n')[-1] + logger.critical(errMsg) + raise SystemExit + elif "bad marshal data (unknown type code)" in excMsg: match = re.search(r"\s*(.+)\s+ValueError", excMsg) errMsg = "one of your .pyc files are corrupted%s" % (" ('%s')" % match.group(1) if match else "")