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

Skip to content

Commit db5ae9a

Browse files
committed
Minor update to #3326 (adding generic code >= 400)
1 parent cc48334 commit db5ae9a

3 files changed

Lines changed: 5 additions & 7 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.10.38"
22+
VERSION = "1.2.10.39"
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 & 1 deletion
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-
dc1382ae6b5899619d11d972435c6bd2 lib/core/settings.py
52+
052f65076ec02852b0035f1ac0d20240 lib/core/settings.py
5353
dd68a9d02fccb4fa1428b20e15b0db5d lib/core/shell.py
5454
a7edc9250d13af36ac0108f259859c19 lib/core/subprocessng.py
5555
721198b5be72c8015a02acb116532a1f lib/core/target.py
@@ -408,6 +408,7 @@ ef722d062564def381b1f96f5faadee3 waf/baidu.py
408408
44f724ab7d333397975fecdf7e50be56 waf/bigip.py
409409
6a2834daf767491d3331bd31e946d540 waf/binarysec.py
410410
41e399dbfe7b904d5aacfb37d85e1fbf waf/blockdos.py
411+
c52c6974c0dae6815f27cfdee6121d7b waf/chinacache.py
411412
2f3bbf43be94d4e9ffe9f80e8483d62f waf/ciscoacexml.py
412413
ba84f296cb52f5e78a0670b98d7763fa waf/cloudbric.py
413414
a1d16d7106c9c66072aa58530c288515 waf/cloudflare.py

waf/chinacache.py

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,19 +5,16 @@
55
See the file 'doc/COPYING' for copying permission
66
"""
77

8-
import re
9-
10-
from lib.core.enums import HTTP_HEADER
118
from lib.core.settings import WAF_ATTACK_VECTORS
129

13-
__product__ = "China Cache"
10+
__product__ = "ChinaCache (ChinaCache Networks)"
1411

1512
def detect(get_page):
1613
retval = False
1714

1815
for vector in WAF_ATTACK_VECTORS:
1916
page, headers, code = get_page(get=vector)
20-
retval = headers.get("Powered-By-ChinaCache") is not None
17+
retval = code >= 400 and headers.get("Powered-By-ChinaCache") is not None
2118

2219
if retval:
2320
break

0 commit comments

Comments
 (0)