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

Skip to content

Commit 6db3bcb

Browse files
committed
Minor update for UrlScan
1 parent d7f0b35 commit 6db3bcb

2 files changed

Lines changed: 3 additions & 2 deletions

File tree

lib/core/settings.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
from lib.core.revision import getRevisionNumber
2020

2121
# sqlmap version (<major>.<minor>.<month>.<monthly commit>)
22-
VERSION = "1.0.5.0"
22+
VERSION = "1.0.5.1"
2323
REVISION = getRevisionNumber()
2424
STABLE = VERSION.count('.') <= 2
2525
VERSION_STRING = "sqlmap/%s#%s" % (VERSION, "stable" if STABLE else "dev")

waf/urlscan.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,9 @@ def detect(get_page):
1616
retval = False
1717

1818
for vector in WAF_ATTACK_VECTORS:
19-
_, headers, _ = get_page(get=vector)
19+
page, headers, code = get_page(get=vector)
2020
retval = re.search(r"Rejected-By-UrlScan", headers.get(HTTP_HEADER.LOCATION, ""), re.I) is not None
21+
retval |= code != 200 and re.search(r"/Rejected-By-UrlScan", page or "", re.I) is not None
2122
if retval:
2223
break
2324

0 commit comments

Comments
 (0)