File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 55See the file 'LICENSE' for copying permission
66"""
77
8+ import re
9+ import tkinter as tk
810import webbrowser
911
12+ from lib .core .defaults import defaults
1013from lib .core .settings import DEV_EMAIL_ADDRESS
1114from lib .core .settings import ISSUES_PAGE
1215from lib .core .settings import GIT_PAGE
1316from lib .core .settings import SITE
1417from lib .core .settings import VERSION_STRING
1518from lib .core .settings import WIKI_PAGE
1619from thirdparty .six .moves import tkinter_messagebox as _tkinter_messagebox
20+ from tkinter import ttk
1721
1822def 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 ):
Original file line number Diff line number Diff line change 1818from 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 "
2222TYPE = "dev" if VERSION .count ('.' ) > 2 and VERSION .split ('.' )[- 1 ] != '0' else "stable"
2323TYPE_COLORS = {"dev" : 33 , "stable" : 90 , "pip" : 34 }
2424VERSION_STRING = "sqlmap/%s#%s" % ('.' .join (VERSION .split ('.' )[:- 1 ]) if VERSION .count ('.' ) > 2 and VERSION .split ('.' )[- 1 ] == '0' else VERSION , TYPE )
Original file line number Diff line number Diff line change @@ -79,7 +79,6 @@ def get_all_options(parser):
7979from lib .core .enums import AUTOCOMPLETE_TYPE
8080from lib .core .exception import SqlmapShellQuitException
8181from lib .core .exception import SqlmapSyntaxException
82- from lib .core .gui import runGui
8382from lib .core .option import _createHomeDirectories
8483from lib .core .settings import BASIC_HELP_ITEMS
8584from 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 :
You can’t perform that action at this time.
0 commit comments