mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2025-04-25 19:33:48 +03:00
Adding a question after WAF has been identified
This commit is contained in:
parent
b2b3b3b5a6
commit
6608410320
|
@ -565,7 +565,7 @@ def checkSqlInjection(place, parameter, value):
|
||||||
warnMsg = "user aborted during detection phase"
|
warnMsg = "user aborted during detection phase"
|
||||||
logger.warn(warnMsg)
|
logger.warn(warnMsg)
|
||||||
|
|
||||||
msg = "How do you want to proceed? [(S)kip current test/(e)nd detection phase/(n)ext parameter/(q)uit]"
|
msg = "how do you want to proceed? [(S)kip current test/(e)nd detection phase/(n)ext parameter/(q)uit]"
|
||||||
choice = readInput(msg, default="S", checkBatch=False)
|
choice = readInput(msg, default="S", checkBatch=False)
|
||||||
|
|
||||||
if choice[0] in ("s", "S"):
|
if choice[0] in ("s", "S"):
|
||||||
|
@ -1095,6 +1095,12 @@ def identifyWaf():
|
||||||
errMsg = "WAF/IDS/IPS identified '%s'. Please " % retVal
|
errMsg = "WAF/IDS/IPS identified '%s'. Please " % retVal
|
||||||
errMsg += "consider usage of tamper scripts (option '--tamper')"
|
errMsg += "consider usage of tamper scripts (option '--tamper')"
|
||||||
logger.critical(errMsg)
|
logger.critical(errMsg)
|
||||||
|
|
||||||
|
message = "are you sure that you want to continue with target testing? [y/N] "
|
||||||
|
output = readInput(message, default="N")
|
||||||
|
|
||||||
|
if output and output[0] not in ("Y", "y"):
|
||||||
|
raise SqlmapUserQuitException
|
||||||
else:
|
else:
|
||||||
infoMsg = "no WAF/IDS/IPS product has been identified"
|
infoMsg = "no WAF/IDS/IPS product has been identified"
|
||||||
logger.info(infoMsg)
|
logger.info(infoMsg)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user