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

Skip to content

Commit 8be4b29

Browse files
committed
Update of Incapsula WAF script
1 parent 0507234 commit 8be4b29

3 files changed

Lines changed: 4 additions & 4 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.enums import OS
2020

2121
# sqlmap version (<major>.<minor>.<month>.<monthly commit>)
22-
VERSION = "1.2.8.21"
22+
VERSION = "1.2.8.22"
2323
TYPE = "dev" if VERSION.count('.') > 2 and VERSION.split('.')[-1] != '0' else "stable"
2424
TYPE_COLORS = {"dev": 33, "stable": 90, "pip": 34}
2525
VERSION_STRING = "sqlmap/%s#%s" % ('.'.join(VERSION.split('.')[:-1]) if VERSION.count('.') > 2 and VERSION.split('.')[-1] == '0' else VERSION, TYPE)

txt/checksum.md5

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ c8c386d644d57c659d74542f5f57f632 lib/core/patch.py
4848
0c3eef46bdbf87e29a3f95f90240d192 lib/core/replication.py
4949
a7db43859b61569b601b97f187dd31c5 lib/core/revision.py
5050
fcb74fcc9577523524659ec49e2e964b lib/core/session.py
51-
8b9c8ae316a1cdf5809b163d7d451ca5 lib/core/settings.py
51+
cf04fd985a50e6c7fc6b6d61b4b048b6 lib/core/settings.py
5252
dd68a9d02fccb4fa1428b20e15b0db5d lib/core/shell.py
5353
a7edc9250d13af36ac0108f259859c19 lib/core/subprocessng.py
5454
815d1cf27f0f8738d81531e73149867d lib/core/target.py
@@ -415,7 +415,7 @@ aade02eb8f6a4a214a53db0fd0f2aae6 waf/dosarrest.py
415415
a2ce6cde682f78e1fd561dc40611877e waf/fortiweb.py
416416
eb56ac34775cc3c5f721ec967d04b283 waf/generic.py
417417
1c70655551b8296ceeb19292a342e620 waf/hyperguard.py
418-
2a52c09e4ce1f2a5976ce53b415ef496 waf/incapsula.py
418+
51aed66945f95641cb45c840e7132e3b waf/incapsula.py
419419
1e5532ede194ac9c083891c2f02bca93 waf/__init__.py
420420
30ae98958fb35061d9a4145cc74c0489 waf/isaserver.py
421421
5a5c9452b9779bf39c208ebe26c98fdb waf/jiasule.py

waf/incapsula.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ def detect(get_page):
1919
page, headers, _ = get_page(get=vector)
2020
retval = re.search(r"incap_ses|visid_incap", headers.get(HTTP_HEADER.SET_COOKIE, ""), re.I) is not None
2121
retval |= re.search(r"Incapsula", headers.get("X-CDN", ""), re.I) is not None
22-
retval |= "Incapsula incident ID" in (page or "")
22+
retval |= any(_ in (page or "") for _ in ("Incapsula incident ID", "_Incapsula_Resource?"))
2323
retval |= headers.get("X-Iinfo") is not None
2424
if retval:
2525
break

0 commit comments

Comments
 (0)