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
|
||||
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)
|
||||
--union-cols=UCOLS Range of columns to test for UNION query SQL injection
|
||||
--union-char=UCHAR Character to use for bruteforcing number of columns
|
||||
|
|
|
@ -607,9 +607,10 @@ def __setOS():
|
|||
|
||||
def __setTechnique():
|
||||
validTechniques = getPublicTypeMembers(PAYLOAD.TECHNIQUE)
|
||||
selTechniques = []
|
||||
|
||||
if conf.tech and isinstance(conf.tech, basestring):
|
||||
selTechniques = []
|
||||
|
||||
for t in conf.tech:
|
||||
if t.upper() not in ("B", "E", "U", "S", "T"):
|
||||
errMsg = "value for --technique must be a string composed "
|
||||
|
@ -621,6 +622,7 @@ def __setTechnique():
|
|||
if t.upper() == validTech[0]:
|
||||
selTechniques.append(validInt)
|
||||
break
|
||||
|
||||
conf.tech = selTechniques
|
||||
else:
|
||||
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