From 14005f476de9063be6425fabe8f28093777987c2 Mon Sep 17 00:00:00 2001 From: Miroslav Stampar Date: Thu, 9 Jan 2020 13:19:54 +0100 Subject: [PATCH] Minor bug fix --- lib/core/gui.py | 6 +++++- lib/core/settings.py | 2 +- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/lib/core/gui.py b/lib/core/gui.py index 85885b791..63c62f2e1 100644 --- a/lib/core/gui.py +++ b/lib/core/gui.py @@ -29,6 +29,7 @@ from lib.core.settings import VERSION_STRING from lib.core.settings import WIKI_PAGE from thirdparty.six.moves import queue as _queue +alive = None line = "" process = None queue = None @@ -186,7 +187,7 @@ def runGui(parser): center(top) - while alive: + while True: line = "" try: # line = queue.get_nowait() @@ -196,6 +197,9 @@ def runGui(parser): text.see(_tkinter.END) text.update_idletasks() + if not alive: + break + menubar = _tkinter.Menu(window) filemenu = _tkinter.Menu(menubar, tearoff=0) diff --git a/lib/core/settings.py b/lib/core/settings.py index d86e27bda..3bee73c2d 100644 --- a/lib/core/settings.py +++ b/lib/core/settings.py @@ -18,7 +18,7 @@ from lib.core.enums import OS from thirdparty.six import unichr as _unichr # sqlmap version (...) -VERSION = "1.4.1.20" +VERSION = "1.4.1.21" TYPE = "dev" if VERSION.count('.') > 2 and VERSION.split('.')[-1] != '0' else "stable" TYPE_COLORS = {"dev": 33, "stable": 90, "pip": 34} VERSION_STRING = "sqlmap/%s#%s" % ('.'.join(VERSION.split('.')[:-1]) if VERSION.count('.') > 2 and VERSION.split('.')[-1] == '0' else VERSION, TYPE)