mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2025-01-24 08:14:24 +03:00
adding new switch '--smart' by request
This commit is contained in:
parent
5d31eb5ef7
commit
0d6afca7db
|
@ -440,9 +440,11 @@ def start():
|
|||
if testSqlInj:
|
||||
check = heuristicCheckSqlInjection(place, parameter)
|
||||
|
||||
if not check and conf.realTest and \
|
||||
not simpletonCheckSqlInjection(place, parameter, value):
|
||||
continue
|
||||
if not check:
|
||||
if conf.smart or conf.realTest and not simpletonCheckSqlInjection(place, parameter, value):
|
||||
infoMsg = "skipping %s parameter '%s'" % (place, parameter)
|
||||
logger.info(infoMsg)
|
||||
continue
|
||||
|
||||
infoMsg = "testing sql injection on %s " % place
|
||||
infoMsg += "parameter '%s'" % parameter
|
||||
|
|
|
@ -175,6 +175,7 @@ optDict = {
|
|||
"googlePage": "integer",
|
||||
"mobile": "boolean",
|
||||
"pageRank": "boolean",
|
||||
"smart": "boolean",
|
||||
"wizard": "boolean",
|
||||
"verbose": "integer"
|
||||
},
|
||||
|
|
|
@ -549,6 +549,10 @@ def cmdLineParser():
|
|||
action="store_true",
|
||||
help="Display page rank (PR) for Google dork results")
|
||||
|
||||
miscellaneous.add_option("--smart", dest="smart",
|
||||
action="store_true",
|
||||
help="Conduct through tests only if positive heuristic(s)")
|
||||
|
||||
miscellaneous.add_option("--wizard", dest="wizard",
|
||||
action="store_true",
|
||||
help="Simple wizard interface for beginner users")
|
||||
|
|
|
@ -584,6 +584,10 @@ mobile = False
|
|||
# Valid: True or False
|
||||
pageRank = False
|
||||
|
||||
# Conduct through tests only if positive heuristic(s).
|
||||
# Valid: True or False
|
||||
smart = False
|
||||
|
||||
# Simple wizard interface for beginner users.
|
||||
# Valid: True or False
|
||||
wizard = False
|
||||
|
|
Loading…
Reference in New Issue
Block a user