Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 5013f76

Browse files
committed
Minor update
1 parent b2a8cb8 commit 5013f76

3 files changed

Lines changed: 7 additions & 8 deletions

File tree

lib/core/gui.py

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -5,23 +5,21 @@
55
See the file 'LICENSE' for copying permission
66
"""
77

8+
import re
9+
import tkinter as tk
810
import webbrowser
911

12+
from lib.core.defaults import defaults
1013
from lib.core.settings import DEV_EMAIL_ADDRESS
1114
from lib.core.settings import ISSUES_PAGE
1215
from lib.core.settings import GIT_PAGE
1316
from lib.core.settings import SITE
1417
from lib.core.settings import VERSION_STRING
1518
from lib.core.settings import WIKI_PAGE
1619
from thirdparty.six.moves import tkinter_messagebox as _tkinter_messagebox
20+
from tkinter import ttk
1721

1822
def runGui(parser):
19-
import re
20-
import tkinter as tk
21-
from tkinter import ttk
22-
23-
from lib.core.defaults import defaults
24-
2523
# Reference: https://www.reddit.com/r/learnpython/comments/985umy/limit_user_input_to_only_int_with_tkinter/e4dj9k9?utm_source=share&utm_medium=web2x
2624
class ConstrainedEntry(tk.Entry):
2725
def __init__(self, master=None, **kwargs):

lib/core/settings.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
from thirdparty.six import unichr as _unichr
1919

2020
# sqlmap version (<major>.<minor>.<month>.<monthly commit>)
21-
VERSION = "1.3.11.88"
21+
VERSION = "1.3.11.89"
2222
TYPE = "dev" if VERSION.count('.') > 2 and VERSION.split('.')[-1] != '0' else "stable"
2323
TYPE_COLORS = {"dev": 33, "stable": 90, "pip": 34}
2424
VERSION_STRING = "sqlmap/%s#%s" % ('.'.join(VERSION.split('.')[:-1]) if VERSION.count('.') > 2 and VERSION.split('.')[-1] == '0' else VERSION, TYPE)

lib/parse/cmdline.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,6 @@ def get_all_options(parser):
7979
from lib.core.enums import AUTOCOMPLETE_TYPE
8080
from lib.core.exception import SqlmapShellQuitException
8181
from lib.core.exception import SqlmapSyntaxException
82-
from lib.core.gui import runGui
8382
from lib.core.option import _createHomeDirectories
8483
from lib.core.settings import BASIC_HELP_ITEMS
8584
from lib.core.settings import DUMMY_URL
@@ -863,6 +862,8 @@ def _format_action_invocation(self, action):
863862
checkOldOptions(argv)
864863

865864
if "--gui" in argv:
865+
from lib.core.gui import runGui
866+
866867
runGui(parser)
867868

868869
elif "--sqlmap-shell" in argv:

0 commit comments

Comments
 (0)