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

Skip to content

Commit 49b41c1

Browse files
committed
Minor update for cloudflare waf script
1 parent 4cd9fdb commit 49b41c1

2 files changed

Lines changed: 2 additions & 1 deletion

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.78"
22+
VERSION = "1.0.5.79"
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 & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ def detect(get_page):
1919
_, headers, _ = get_page(get=vector)
2020
retval = re.search(r"cloudflare-nginx", headers.get(HTTP_HEADER.SERVER, ""), re.I) is not None
2121
retval |= re.search(r"\A__cfduid=", headers.get(HTTP_HEADER.SET_COOKIE, ""), re.I) is not None
22+
retval |= headers.get("cf-ray") is not None
2223
if retval:
2324
break
2425

0 commit comments

Comments
 (0)