mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2025-12-07 13:11:29 +00:00
Minor enhancement to support an option (--union-tech) to specify the
technique to use to detect the number of columns used in the web application SELECT statement: NULL bruteforcing (default) or ORDER BY clause.
This commit is contained in:
@@ -239,6 +239,25 @@ def __setGoogleDorking():
|
||||
raise sqlmapGenericException, errMsg
|
||||
|
||||
|
||||
def __setUnionTech():
|
||||
if not conf.uTech:
|
||||
conf.uTech = "bf"
|
||||
|
||||
return
|
||||
|
||||
if conf.uTech and conf.uTech not in ( "bf", "ob" ):
|
||||
infoMsg = "resetting the UNION query detection technique to "
|
||||
infoMsg += "'bf', '%s' is not a valid technique" % conf.uTech
|
||||
logger.info(infoMsg)
|
||||
|
||||
conf.uTech = "bf"
|
||||
|
||||
else:
|
||||
debugMsg = "setting UNION query detection technique to "
|
||||
debugMsg += "'%s'" % conf.uTech
|
||||
logger.debug(debugMsg)
|
||||
|
||||
|
||||
def __setDBMS():
|
||||
"""
|
||||
Force the back-end DBMS option.
|
||||
@@ -741,6 +760,7 @@ def init(inputOptions=advancedDict()):
|
||||
__setHTTPProxy()
|
||||
__setThreads()
|
||||
__setDBMS()
|
||||
__setUnionTech()
|
||||
__setGoogleDorking()
|
||||
__setMultipleTargets()
|
||||
__urllib2Opener()
|
||||
|
||||
@@ -63,6 +63,7 @@ optDict = {
|
||||
"stackedTest": "boolean",
|
||||
"timeTest": "boolean",
|
||||
"unionTest": "boolean",
|
||||
"uTech": "string",
|
||||
"unionUse": "boolean",
|
||||
},
|
||||
|
||||
|
||||
Reference in New Issue
Block a user