mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2024-11-22 01:26:42 +03:00
Minor layout adjustments
This commit is contained in:
parent
17844eb87c
commit
1880f18367
|
@ -851,7 +851,7 @@ Options:
|
||||||
These options can be used to tweak testing of specific SQL injection
|
These options can be used to tweak testing of specific SQL injection
|
||||||
techniques.
|
techniques.
|
||||||
|
|
||||||
--technique=TECH SQL injection techniques to test for (default all)
|
--technique=TECH SQL injection techniques to test for (default BEUST)
|
||||||
--time-sec=TIMESEC Seconds to delay the DBMS response (default 5)
|
--time-sec=TIMESEC Seconds to delay the DBMS response (default 5)
|
||||||
--union-cols=UCOLS Range of columns to test for UNION query SQL injection
|
--union-cols=UCOLS Range of columns to test for UNION query SQL injection
|
||||||
--union-char=UCHAR Character to use for bruteforcing number of columns
|
--union-char=UCHAR Character to use for bruteforcing number of columns
|
||||||
|
|
|
@ -607,9 +607,10 @@ def __setOS():
|
||||||
|
|
||||||
def __setTechnique():
|
def __setTechnique():
|
||||||
validTechniques = getPublicTypeMembers(PAYLOAD.TECHNIQUE)
|
validTechniques = getPublicTypeMembers(PAYLOAD.TECHNIQUE)
|
||||||
selTechniques = []
|
|
||||||
|
|
||||||
if conf.tech and isinstance(conf.tech, basestring):
|
if conf.tech and isinstance(conf.tech, basestring):
|
||||||
|
selTechniques = []
|
||||||
|
|
||||||
for t in conf.tech:
|
for t in conf.tech:
|
||||||
if t.upper() not in ("B", "E", "U", "S", "T"):
|
if t.upper() not in ("B", "E", "U", "S", "T"):
|
||||||
errMsg = "value for --technique must be a string composed "
|
errMsg = "value for --technique must be a string composed "
|
||||||
|
@ -621,6 +622,7 @@ def __setTechnique():
|
||||||
if t.upper() == validTech[0]:
|
if t.upper() == validTech[0]:
|
||||||
selTechniques.append(validInt)
|
selTechniques.append(validInt)
|
||||||
break
|
break
|
||||||
|
|
||||||
conf.tech = selTechniques
|
conf.tech = selTechniques
|
||||||
else:
|
else:
|
||||||
conf.tech = filter(lambda x: x in PAYLOAD.SQLINJECTION, [int(c) for c in str(conf.tech)])
|
conf.tech = filter(lambda x: x in PAYLOAD.SQLINJECTION, [int(c) for c in str(conf.tech)])
|
||||||
|
|
Loading…
Reference in New Issue
Block a user