Minor bug fix

This commit is contained in:
Miroslav Stampar 2020-01-09 13:19:54 +01:00
parent eb3a3b4825
commit 14005f476d
2 changed files with 6 additions and 2 deletions

View File

@ -29,6 +29,7 @@ from lib.core.settings import VERSION_STRING
from lib.core.settings import WIKI_PAGE from lib.core.settings import WIKI_PAGE
from thirdparty.six.moves import queue as _queue from thirdparty.six.moves import queue as _queue
alive = None
line = "" line = ""
process = None process = None
queue = None queue = None
@ -186,7 +187,7 @@ def runGui(parser):
center(top) center(top)
while alive: while True:
line = "" line = ""
try: try:
# line = queue.get_nowait() # line = queue.get_nowait()
@ -196,6 +197,9 @@ def runGui(parser):
text.see(_tkinter.END) text.see(_tkinter.END)
text.update_idletasks() text.update_idletasks()
if not alive:
break
menubar = _tkinter.Menu(window) menubar = _tkinter.Menu(window)
filemenu = _tkinter.Menu(menubar, tearoff=0) filemenu = _tkinter.Menu(menubar, tearoff=0)

View File

@ -18,7 +18,7 @@ from lib.core.enums import OS
from thirdparty.six import unichr as _unichr from thirdparty.six import unichr as _unichr
# sqlmap version (<major>.<minor>.<month>.<monthly commit>) # sqlmap version (<major>.<minor>.<month>.<monthly commit>)
VERSION = "1.4.1.20" VERSION = "1.4.1.21"
TYPE = "dev" if VERSION.count('.') > 2 and VERSION.split('.')[-1] != '0' else "stable" TYPE = "dev" if VERSION.count('.') > 2 and VERSION.split('.')[-1] != '0' else "stable"
TYPE_COLORS = {"dev": 33, "stable": 90, "pip": 34} 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) VERSION_STRING = "sqlmap/%s#%s" % ('.'.join(VERSION.split('.')[:-1]) if VERSION.count('.') > 2 and VERSION.split('.')[-1] == '0' else VERSION, TYPE)