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

Skip to content

Commit 578c41f

Browse files
committed
Fine tuning Incapsula WAF script
1 parent dc01f2e commit 578c41f

3 files changed

Lines changed: 5 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.32"
22+
VERSION = "1.2.8.33"
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
@@ -50,7 +50,7 @@ c8c386d644d57c659d74542f5f57f632 lib/core/patch.py
5050
0c3eef46bdbf87e29a3f95f90240d192 lib/core/replication.py
5151
a7db43859b61569b601b97f187dd31c5 lib/core/revision.py
5252
fcb74fcc9577523524659ec49e2e964b lib/core/session.py
53-
d4926186bd8f94eb38b5daf98f1cd67d lib/core/settings.py
53+
75a03c25cb625ee451394fea1fc4d7a6 lib/core/settings.py
5454
dd68a9d02fccb4fa1428b20e15b0db5d lib/core/shell.py
5555
a7edc9250d13af36ac0108f259859c19 lib/core/subprocessng.py
5656
815d1cf27f0f8738d81531e73149867d lib/core/target.py
@@ -417,7 +417,7 @@ aade02eb8f6a4a214a53db0fd0f2aae6 waf/dosarrest.py
417417
a2ce6cde682f78e1fd561dc40611877e waf/fortiweb.py
418418
ade1299c435db7b9e35cf1166ed9d859 waf/generic.py
419419
1c70655551b8296ceeb19292a342e620 waf/hyperguard.py
420-
51aed66945f95641cb45c840e7132e3b waf/incapsula.py
420+
0359ca07b6e3ee0e4505ad5bfaa1de79 waf/incapsula.py
421421
1e5532ede194ac9c083891c2f02bca93 waf/__init__.py
422422
30ae98958fb35061d9a4145cc74c0489 waf/isaserver.py
423423
5a5c9452b9779bf39c208ebe26c98fdb waf/jiasule.py

waf/incapsula.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,8 @@ 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 |= any(_ in (page or "") for _ in ("Incapsula incident ID", "_Incapsula_Resource?"))
22+
retval |= any(_ in (page or "") for _ in ("Incapsula incident ID", "_Incapsula_Resource?", "?subject=WAF Block Page:"))
23+
retval |= all(_ in (page or "") for _ in ("Application Firewall Error", "If you feel you have been blocked in error, please contact Customer Support"))
2324
retval |= headers.get("X-Iinfo") is not None
2425
if retval:
2526
break

0 commit comments

Comments
 (0)