File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree 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.90 "
21+ VERSION = "1.3.11.91 "
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 @@ -82,7 +82,7 @@ def checkDependencies():
8282
8383 try :
8484 __import__ ("websocket.ABNF" )
85- debugMsg = "'python websocket-client' library is found"
85+ debugMsg = "'websocket-client' library is found"
8686 logger .debug (debugMsg )
8787 except ImportError :
8888 warnMsg = "sqlmap requires 'websocket-client' third-party library "
@@ -91,6 +91,26 @@ def checkDependencies():
9191 logger .warn (warnMsg )
9292 missing_libraries .add ('websocket-client' )
9393
94+ try :
95+ __import__ ("tkinter" )
96+ debugMsg = "'tkinter' library is found"
97+ logger .debug (debugMsg )
98+ except ImportError :
99+ warnMsg = "sqlmap requires 'tkinter' library "
100+ warnMsg += "if you plan to run a GUI"
101+ logger .warn (warnMsg )
102+ missing_libraries .add ('tkinter' )
103+
104+ try :
105+ __import__ ("tkinter.ttk" )
106+ debugMsg = "'tkinter.ttk' library is found"
107+ logger .debug (debugMsg )
108+ except ImportError :
109+ warnMsg = "sqlmap requires 'tkinter.ttk' library "
110+ warnMsg += "if you plan to run a GUI"
111+ logger .warn (warnMsg )
112+ missing_libraries .add ('tkinter.ttk' )
113+
94114 if IS_WIN :
95115 try :
96116 __import__ ("pyreadline" )
You can’t perform that action at this time.
0 commit comments