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

Skip to content

Commit f9d01f6

Browse files
committed
Cloudflare has tons of HTTP error codes while detecting SQLi
1 parent d7d3db4 commit f9d01f6

2 files changed

Lines changed: 2 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.90"
22+
VERSION = "1.0.5.91"
2323
REVISION = getRevisionNumber()
2424
STABLE = VERSION.count('.') <= 2
2525
VERSION_STRING = "sqlmap/%s#%s" % (VERSION, "stable" if STABLE else "dev")

waf/cloudflare.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ def detect(get_page):
1818
for vector in WAF_ATTACK_VECTORS:
1919
page, headers, code = get_page(get=vector)
2020
retval = re.search(r"cloudflare-nginx", headers.get(HTTP_HEADER.SERVER, ""), re.I) is not None
21-
if code == 403:
21+
if code > 400:
2222
retval |= re.search(r"\A__cfduid=", headers.get(HTTP_HEADER.SET_COOKIE, ""), re.I) is not None
2323
retval |= headers.get("cf-ray") is not None
2424
retval |= re.search(r"CloudFlare Ray ID:|var CloudFlare=", page or "") is not None

0 commit comments

Comments
 (0)