Skip to content

Commit c799e79

Browse files
committed
Minor update of modsecurity.py
1 parent b31c264 commit c799e79

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

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.12.45"
22+
VERSION = "1.2.12.46"
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
@@ -49,7 +49,7 @@ c8c386d644d57c659d74542f5f57f632 lib/core/patch.py
4949
0c3eef46bdbf87e29a3f95f90240d192 lib/core/replication.py
5050
a7db43859b61569b601b97f187dd31c5 lib/core/revision.py
5151
fcb74fcc9577523524659ec49e2e964b lib/core/session.py
52-
bcd013acb00d49bb4ed6a39e3e4672d0 lib/core/settings.py
52+
7230ffa8fb85a6cd1234850be5bd2a1a lib/core/settings.py
5353
a971ce157d04de96ba6e710d3d38a9a8 lib/core/shell.py
5454
a7edc9250d13af36ac0108f259859c19 lib/core/subprocessng.py
5555
1581be48127a3a7a9fd703359b6e7567 lib/core/target.py
@@ -433,7 +433,7 @@ ade1299c435db7b9e35cf1166ed9d859 waf/generic.py
433433
5a5c9452b9779bf39c208ebe26c98fdb waf/jiasule.py
434434
898f53c12133da3e946301f4aa97d538 waf/knownsec.py
435435
15a50edd48961ea168648a370f42e123 waf/kona.py
436-
b17a154fe7959619eaafffa60e14199f waf/modsecurity.py
436+
69cadf95303d60ac0a228cf60dfdba73 waf/modsecurity.py
437437
d09a50713daf3c0a2594ed4f50c57adb waf/naxsi.py
438438
bf573d01d56e585f4ad57132bc594934 waf/netcontinuum.py
439439
cb2f1516867684042f580e02138463de waf/netscaler.py

waf/modsecurity.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"Mod_Security|NOYB", headers.get(HTTP_HEADER.SERVER, ""), re.I) is not None
21-
retval |= any(_ in (page or "") for _ in ("This error was generated by Mod_Security", "One or more things in your request were suspicious", "rules of the mod_security module"))
21+
retval |= any(_ in (page or "") for _ in ("This error was generated by Mod_Security", "One or more things in your request were suspicious", "rules of the mod_security module", "The page you are trying to access is restricted due to a security rule"))
2222
if retval:
2323
break
2424

0 commit comments

Comments
 (0)