mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2026-10-20 18:54:02 +00:00
Added hidden (for the moment) switch --technique
This commit is contained in:
parent
b80a86a669
commit
5fb04515d3
3 changed files with 22 additions and 0 deletions
|
|
@ -552,6 +552,15 @@ def __setOS():
|
|||
errMsg += "you."
|
||||
raise sqlmapUnsupportedDBMSException, errMsg
|
||||
|
||||
def __setTechnique():
|
||||
if not isinstance(conf.technique, int):
|
||||
return
|
||||
|
||||
if conf.technique < 0 or conf.technique > 5:
|
||||
errMsg = "the value of --technique must be an integer "
|
||||
errMsg += "between 0 and 5"
|
||||
raise sqlmapSyntaxException, errMsg
|
||||
|
||||
def __setDBMS():
|
||||
"""
|
||||
Force the back-end DBMS option.
|
||||
|
|
@ -1383,6 +1392,7 @@ def init(inputOptions=advancedDict()):
|
|||
__urllib2Opener()
|
||||
__findPageForms()
|
||||
__setDBMS()
|
||||
__setTechnique()
|
||||
|
||||
__setThreads()
|
||||
__setOS()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue