mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2025-02-18 04:20:35 +03:00
minor refactoring
This commit is contained in:
parent
12f3024c8a
commit
adfbfef8c1
|
@ -1139,6 +1139,9 @@ def __cleanupOptions():
|
||||||
if conf.data:
|
if conf.data:
|
||||||
conf.data = urldecode(conf.data)
|
conf.data = urldecode(conf.data)
|
||||||
|
|
||||||
|
if conf.template:
|
||||||
|
map(lambda x: conf.__setitem__(x, True), ['tor', 'flushSession', 'batch', 'getBanner', 'getCurrentUser', 'getCurrentDb', 'getDbs', 'randomAgent'])
|
||||||
|
|
||||||
def __setConfAttributes():
|
def __setConfAttributes():
|
||||||
"""
|
"""
|
||||||
This function set some needed attributes into the configuration
|
This function set some needed attributes into the configuration
|
||||||
|
@ -1297,29 +1300,11 @@ def __useWizardInterface():
|
||||||
message = "[4] Enumeration ('--banner'/'--current-user'/...) [Please choose: 1-Basic(default), 2-Smart, 3-All]: "
|
message = "[4] Enumeration ('--banner'/'--current-user'/...) [Please choose: 1-Basic(default), 2-Smart, 3-All]: "
|
||||||
choice = readInput(message, default='1')
|
choice = readInput(message, default='1')
|
||||||
if choice == '2':
|
if choice == '2':
|
||||||
conf.getBanner = True
|
map(lambda x: conf.__setitem__(x, True), ['getBanner', 'getCurrentUser', 'getCurrentDb', 'isDba', 'getUsers', 'getDbs', 'getTables', 'excludeSysDbs'])
|
||||||
conf.getCurrentUser = True
|
|
||||||
conf.getCurrentDb = True
|
|
||||||
conf.isDba = True
|
|
||||||
conf.getUsers = True
|
|
||||||
conf.getDbs = True
|
|
||||||
conf.getTables = True
|
|
||||||
conf.excludeSysDbs = True
|
|
||||||
elif choice == '3':
|
elif choice == '3':
|
||||||
conf.getBanner = True
|
map(lambda x: conf.__setitem__(x, True), ['getBanner', 'getCurrentUser', 'getCurrentDb', 'isDba', 'getUsers', 'getPasswordHashes', 'getPrivileges', 'getRoles', 'dumpAll'])
|
||||||
conf.getCurrentUser = True
|
|
||||||
conf.getCurrentDb = True
|
|
||||||
conf.isDba = True
|
|
||||||
conf.getUsers = True
|
|
||||||
conf.getPasswordHashes = True
|
|
||||||
conf.getPrivileges = True
|
|
||||||
conf.getRoles = True
|
|
||||||
conf.dumpAll = True
|
|
||||||
else:
|
else:
|
||||||
conf.getBanner = True
|
map(lambda x: conf.__setitem__(x, True), ['getBanner', 'getCurrentUser', 'getCurrentDb', 'isDba'])
|
||||||
conf.getCurrentUser = True
|
|
||||||
conf.getCurrentDb = True
|
|
||||||
conf.isDba = True
|
|
||||||
|
|
||||||
conf.batch = True
|
conf.batch = True
|
||||||
print
|
print
|
||||||
|
|
|
@ -534,6 +534,9 @@ def cmdLineParser():
|
||||||
parser.add_option("--group-concat", dest="groupConcat", action="store_true",
|
parser.add_option("--group-concat", dest="groupConcat", action="store_true",
|
||||||
default=False, help=SUPPRESS_HELP)
|
default=False, help=SUPPRESS_HELP)
|
||||||
|
|
||||||
|
parser.add_option("--template", dest="template", action="store_true",
|
||||||
|
default=False, help=SUPPRESS_HELP)
|
||||||
|
|
||||||
parser.add_option_group(target)
|
parser.add_option_group(target)
|
||||||
parser.add_option_group(request)
|
parser.add_option_group(request)
|
||||||
parser.add_option_group(optimization)
|
parser.add_option_group(optimization)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user