Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 29ba43e

Browse files
committed
Unhidding switch '--identify-waf' (Issue #290)
1 parent 08f0670 commit 29ba43e

3 files changed

Lines changed: 11 additions & 6 deletions

File tree

lib/controller/checks.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -993,7 +993,7 @@ def checkWaf():
993993
if not conf.checkWaf:
994994
return False
995995

996-
infoMsg = "testing if the target is protected by "
996+
infoMsg = "heuristic checking if the target is protected by "
997997
infoMsg += "some kind of WAF/IPS/IDS"
998998
logger.info(infoMsg)
999999

lib/parse/cmdline.py

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -614,7 +614,7 @@ def cmdLineParser():
614614

615615
miscellaneous.add_option("--check-waf", dest="checkWaf",
616616
action="store_true",
617-
help="Check for existence of WAF/IPS/IDS protection")
617+
help="Heuristically check for WAF/IPS/IDS protection")
618618

619619
miscellaneous.add_option("--cleanup", dest="cleanup",
620620
action="store_true",
@@ -636,6 +636,10 @@ def cmdLineParser():
636636
action="store_true",
637637
help="Use HTTP parameter pollution")
638638

639+
miscellaneous.add_option("--identify-waf", dest="identifyWaf",
640+
action="store_true",
641+
help="Make a through testing for a WAF/IPS/IDS protection")
642+
639643
miscellaneous.add_option("--mobile", dest="mobile",
640644
action="store_true",
641645
help="Imitate smartphone through HTTP User-Agent header")
@@ -674,9 +678,6 @@ def cmdLineParser():
674678
parser.add_option("--force-dns", dest="forceDns", action="store_true",
675679
help=SUPPRESS_HELP)
676680

677-
parser.add_option("--identify-waf", dest="identifyWaf", action="store_true",
678-
help=SUPPRESS_HELP)
679-
680681
parser.add_option("--smoke-test", dest="smokeTest", action="store_true",
681682
help=SUPPRESS_HELP)
682683

sqlmap.conf

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -667,7 +667,7 @@ beep = False
667667
# Valid: True or False
668668
checkPayload = False
669669

670-
# Check for existence of WAF/IPS/IDS protection.
670+
# Heuristically check for WAF/IPS/IDS protection.
671671
# Valid: True or False
672672
checkWaf = False
673673

@@ -692,6 +692,10 @@ googlePage = 1
692692
# Valid: True or False
693693
hpp = False
694694

695+
# Make a through testing for a WAF/IPS/IDS protection.
696+
# Valid: True or False
697+
identifyWaf = False
698+
695699
# Imitate smartphone through HTTP User-Agent header.
696700
# Valid: True or False
697701
mobile = False

0 commit comments

Comments
 (0)