mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2025-06-30 01:43:22 +03:00
Minor update
This commit is contained in:
parent
b2a8cb8f77
commit
5013f767a1
|
@ -5,8 +5,11 @@ Copyright (c) 2006-2019 sqlmap developers (http://sqlmap.org/)
|
||||||
See the file 'LICENSE' for copying permission
|
See the file 'LICENSE' for copying permission
|
||||||
"""
|
"""
|
||||||
|
|
||||||
|
import re
|
||||||
|
import tkinter as tk
|
||||||
import webbrowser
|
import webbrowser
|
||||||
|
|
||||||
|
from lib.core.defaults import defaults
|
||||||
from lib.core.settings import DEV_EMAIL_ADDRESS
|
from lib.core.settings import DEV_EMAIL_ADDRESS
|
||||||
from lib.core.settings import ISSUES_PAGE
|
from lib.core.settings import ISSUES_PAGE
|
||||||
from lib.core.settings import GIT_PAGE
|
from lib.core.settings import GIT_PAGE
|
||||||
|
@ -14,14 +17,9 @@ from lib.core.settings import SITE
|
||||||
from lib.core.settings import VERSION_STRING
|
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 tkinter_messagebox as _tkinter_messagebox
|
from thirdparty.six.moves import tkinter_messagebox as _tkinter_messagebox
|
||||||
|
from tkinter import ttk
|
||||||
|
|
||||||
def runGui(parser):
|
def runGui(parser):
|
||||||
import re
|
|
||||||
import tkinter as tk
|
|
||||||
from tkinter import ttk
|
|
||||||
|
|
||||||
from lib.core.defaults import defaults
|
|
||||||
|
|
||||||
# Reference: https://www.reddit.com/r/learnpython/comments/985umy/limit_user_input_to_only_int_with_tkinter/e4dj9k9?utm_source=share&utm_medium=web2x
|
# Reference: https://www.reddit.com/r/learnpython/comments/985umy/limit_user_input_to_only_int_with_tkinter/e4dj9k9?utm_source=share&utm_medium=web2x
|
||||||
class ConstrainedEntry(tk.Entry):
|
class ConstrainedEntry(tk.Entry):
|
||||||
def __init__(self, master=None, **kwargs):
|
def __init__(self, master=None, **kwargs):
|
||||||
|
|
|
@ -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.3.11.88"
|
VERSION = "1.3.11.89"
|
||||||
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)
|
||||||
|
|
|
@ -79,7 +79,6 @@ from lib.core.dicts import DEPRECATED_OPTIONS
|
||||||
from lib.core.enums import AUTOCOMPLETE_TYPE
|
from lib.core.enums import AUTOCOMPLETE_TYPE
|
||||||
from lib.core.exception import SqlmapShellQuitException
|
from lib.core.exception import SqlmapShellQuitException
|
||||||
from lib.core.exception import SqlmapSyntaxException
|
from lib.core.exception import SqlmapSyntaxException
|
||||||
from lib.core.gui import runGui
|
|
||||||
from lib.core.option import _createHomeDirectories
|
from lib.core.option import _createHomeDirectories
|
||||||
from lib.core.settings import BASIC_HELP_ITEMS
|
from lib.core.settings import BASIC_HELP_ITEMS
|
||||||
from lib.core.settings import DUMMY_URL
|
from lib.core.settings import DUMMY_URL
|
||||||
|
@ -863,6 +862,8 @@ def cmdLineParser(argv=None):
|
||||||
checkOldOptions(argv)
|
checkOldOptions(argv)
|
||||||
|
|
||||||
if "--gui" in argv:
|
if "--gui" in argv:
|
||||||
|
from lib.core.gui import runGui
|
||||||
|
|
||||||
runGui(parser)
|
runGui(parser)
|
||||||
|
|
||||||
elif "--sqlmap-shell" in argv:
|
elif "--sqlmap-shell" in argv:
|
||||||
|
|
Loading…
Reference in New Issue
Block a user