Skip to content

Commit 4c9e0b9

Browse files
committed
Adding Bluedon WAF script
1 parent 0c3fbc4 commit 4c9e0b9

File tree

3 files changed

+28
-2
lines changed

3 files changed

+28
-2
lines changed

lib/core/settings.py

+1-1
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.32"
22+
VERSION = "1.2.12.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

+2-1
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-
de90de0ae57ff593bb50dc6d150e2b7b lib/core/settings.py
52+
43eec1a3d017f1d440b89e9ecf3f2ff8 lib/core/settings.py
5353
a971ce157d04de96ba6e710d3d38a9a8 lib/core/shell.py
5454
a7edc9250d13af36ac0108f259859c19 lib/core/subprocessng.py
5555
1581be48127a3a7a9fd703359b6e7567 lib/core/target.py
@@ -409,6 +409,7 @@ ef722d062564def381b1f96f5faadee3 waf/baidu.py
409409
44f724ab7d333397975fecdf7e50be56 waf/bigip.py
410410
6a2834daf767491d3331bd31e946d540 waf/binarysec.py
411411
41e399dbfe7b904d5aacfb37d85e1fbf waf/blockdos.py
412+
6d505434a13365cbe3b01f912ea36a44 waf/bluedon.py
412413
c52c6974c0dae6815f27cfdee6121d7b waf/chinacache.py
413414
2f3bbf43be94d4e9ffe9f80e8483d62f waf/ciscoacexml.py
414415
ba84f296cb52f5e78a0670b98d7763fa waf/cloudbric.py

waf/bluedon.py

+25
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
#!/usr/bin/env python
2+
3+
"""
4+
Copyright (c) 2006-2018 sqlmap developers (http://sqlmap.org/)
5+
See the file 'LICENSE' for copying permission
6+
"""
7+
8+
import re
9+
10+
from lib.core.enums import HTTP_HEADER
11+
from lib.core.settings import WAF_ATTACK_VECTORS
12+
13+
__product__ = "Bluedon Web Application Firewall (Bluedon Information Security Technology)"
14+
15+
def detect(get_page):
16+
retval = False
17+
18+
for vector in WAF_ATTACK_VECTORS:
19+
page, headers, code = get_page(get=vector)
20+
retval = re.search(r"BDWAF", headers.get(HTTP_HEADER.SERVER, ""), re.I) is not None
21+
retval |= re.search(r"Bluedon Web Application Firewall", page or "", re.I) is not None
22+
if retval:
23+
break
24+
25+
return retval

0 commit comments

Comments
 (0)