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

Skip to content

Commit 42b0edc

Browse files
committed
Fixes #3109
1 parent 331ccc5 commit 42b0edc

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.5.12"
22+
VERSION = "1.2.5.13"
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
@@ -47,7 +47,7 @@ c9a56e58984420a5abb7a3f7aadc196d lib/core/optiondict.py
4747
0c3eef46bdbf87e29a3f95f90240d192 lib/core/replication.py
4848
a7db43859b61569b601b97f187dd31c5 lib/core/revision.py
4949
fcb74fcc9577523524659ec49e2e964b lib/core/session.py
50-
28b7ef08849aa6d4f652a9d1c58ca8f2 lib/core/settings.py
50+
d9c4c537aef395bbcf182a7f57bb510f lib/core/settings.py
5151
0dfc2ed40adf72e302291f6ecd4406f6 lib/core/shell.py
5252
a7edc9250d13af36ac0108f259859c19 lib/core/subprocessng.py
5353
6306284edcccc185b2df085438572b0d lib/core/target.py
@@ -417,7 +417,7 @@ eb56ac34775cc3c5f721ec967d04b283 waf/generic.py
417417
5a5c9452b9779bf39c208ebe26c98fdb waf/jiasule.py
418418
898f53c12133da3e946301f4aa97d538 waf/knownsec.py
419419
81e6bf619c7bb73c4b62e2439e60e95a waf/kona.py
420-
4906ab7bea7f6715f5796933f1a89381 waf/modsecurity.py
420+
b17a154fe7959619eaafffa60e14199f waf/modsecurity.py
421421
d09a50713daf3c0a2594ed4f50c57adb waf/naxsi.py
422422
bf573d01d56e585f4ad57132bc594934 waf/netcontinuum.py
423423
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 |= "This error was generated by Mod_Security" in (page or "")
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"))
2222
if retval:
2323
break
2424

0 commit comments

Comments
 (0)