mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2025-02-03 13:14:13 +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:
|
if testSqlInj:
|
||||||
check = heuristicCheckSqlInjection(place, parameter)
|
check = heuristicCheckSqlInjection(place, parameter)
|
||||||
|
|
||||||
if not check and conf.realTest and \
|
if not check:
|
||||||
not simpletonCheckSqlInjection(place, parameter, value):
|
if conf.smart or conf.realTest and not simpletonCheckSqlInjection(place, parameter, value):
|
||||||
continue
|
infoMsg = "skipping %s parameter '%s'" % (place, parameter)
|
||||||
|
logger.info(infoMsg)
|
||||||
|
continue
|
||||||
|
|
||||||
infoMsg = "testing sql injection on %s " % place
|
infoMsg = "testing sql injection on %s " % place
|
||||||
infoMsg += "parameter '%s'" % parameter
|
infoMsg += "parameter '%s'" % parameter
|
||||||
|
|
|
@ -175,6 +175,7 @@ optDict = {
|
||||||
"googlePage": "integer",
|
"googlePage": "integer",
|
||||||
"mobile": "boolean",
|
"mobile": "boolean",
|
||||||
"pageRank": "boolean",
|
"pageRank": "boolean",
|
||||||
|
"smart": "boolean",
|
||||||
"wizard": "boolean",
|
"wizard": "boolean",
|
||||||
"verbose": "integer"
|
"verbose": "integer"
|
||||||
},
|
},
|
||||||
|
|
|
@ -549,6 +549,10 @@ def cmdLineParser():
|
||||||
action="store_true",
|
action="store_true",
|
||||||
help="Display page rank (PR) for Google dork results")
|
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",
|
miscellaneous.add_option("--wizard", dest="wizard",
|
||||||
action="store_true",
|
action="store_true",
|
||||||
help="Simple wizard interface for beginner users")
|
help="Simple wizard interface for beginner users")
|
||||||
|
|
|
@ -584,6 +584,10 @@ mobile = False
|
||||||
# Valid: True or False
|
# Valid: True or False
|
||||||
pageRank = False
|
pageRank = False
|
||||||
|
|
||||||
|
# Conduct through tests only if positive heuristic(s).
|
||||||
|
# Valid: True or False
|
||||||
|
smart = False
|
||||||
|
|
||||||
# Simple wizard interface for beginner users.
|
# Simple wizard interface for beginner users.
|
||||||
# Valid: True or False
|
# Valid: True or False
|
||||||
wizard = False
|
wizard = False
|
||||||
|
|
Loading…
Reference in New Issue
Block a user