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

Skip to content

Commit 9fc856b

Browse files
committed
Minor update
1 parent 737c727 commit 9fc856b

2 files changed

Lines changed: 22 additions & 2 deletions

File tree

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.90"
21+
VERSION = "1.3.11.91"
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/utils/deps.py

Lines changed: 21 additions & 1 deletion
Original file line numberDiff line numberDiff 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")

0 commit comments

Comments
 (0)