mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2024-11-22 17:46:37 +03:00
Minor update for requestvalidationmode.py waf script
This commit is contained in:
parent
acc1277246
commit
6885afe8c3
|
@ -19,7 +19,7 @@ from lib.core.enums import OS
|
||||||
from lib.core.revision import getRevisionNumber
|
from lib.core.revision import getRevisionNumber
|
||||||
|
|
||||||
# sqlmap version (<major>.<minor>.<month>.<monthly commit>)
|
# sqlmap version (<major>.<minor>.<month>.<monthly commit>)
|
||||||
VERSION = "1.0.5.106"
|
VERSION = "1.0.5.107"
|
||||||
REVISION = getRevisionNumber()
|
REVISION = getRevisionNumber()
|
||||||
STABLE = VERSION.count('.') <= 2
|
STABLE = VERSION.count('.') <= 2
|
||||||
VERSION_STRING = "sqlmap/%s#%s" % (VERSION, "stable" if STABLE else "dev")
|
VERSION_STRING = "sqlmap/%s#%s" % (VERSION, "stable" if STABLE else "dev")
|
||||||
|
|
|
@ -13,9 +13,10 @@ def detect(get_page):
|
||||||
retval = False
|
retval = False
|
||||||
|
|
||||||
for vector in WAF_ATTACK_VECTORS:
|
for vector in WAF_ATTACK_VECTORS:
|
||||||
page, _, _ = get_page(get=vector)
|
page, _, code = get_page(get=vector)
|
||||||
retval = "ASP.NET has detected data in the request that is potentially dangerous" in (page or "")
|
retval = "ASP.NET has detected data in the request that is potentially dangerous" in (page or "")
|
||||||
retval |= "Request Validation has detected a potentially dangerous client input value" in (page or "")
|
retval |= "Request Validation has detected a potentially dangerous client input value" in (page or "")
|
||||||
|
retval |= code == 500 and "HttpRequestValidationException" in page
|
||||||
if retval:
|
if retval:
|
||||||
break
|
break
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user