Skip to content

Commit 792ed52

Browse files
committed
New WAF scripts
1 parent 132a72c commit 792ed52

File tree

4 files changed

+52
-2
lines changed

4 files changed

+52
-2
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.1.11.36"
22+
VERSION = "1.1.11.37"
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: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ e1c000db9be27f973569b1a430629037 lib/core/option.py
4646
760d9df2a27ded29109b390ab202e72d lib/core/replication.py
4747
a2466b62e67f8b31736bac4dac590e51 lib/core/revision.py
4848
02d4762140a72fd44668d3dab5eabda9 lib/core/session.py
49-
e89b14c4721391f547a76476221beaa8 lib/core/settings.py
49+
08ba426f7157982ff9aa4c8d40a5f2b5 lib/core/settings.py
5050
35bffbad762eb9e03db9e93b1c991103 lib/core/shell.py
5151
a59ec28371ae067a6fdd8f810edbee3d lib/core/subprocessng.py
5252
d5a04d672a18f78deb2839c3745ff83c lib/core/target.py
@@ -441,11 +441,13 @@ a4fca90afde376962f09ac10c965b6e7 waf/urlscan.py
441441
2952dadc49a810bde918ae70ca9bb042 waf/uspses.py
442442
e0e9afe5330645bcf63103cf7df6ef56 waf/varnish.py
443443
c6b044f4f29680e0767b36c893b9346b waf/wallarm.py
444+
fe451f569a88c198adda6d22b39c9a4b waf/watchguard.py
444445
dc78bd60735f4c2b2cfc05dc8b148a56 waf/webappsecure.py
445446
755709c2c28da8dc612ce0d277d8ba02 waf/webknight.py
446447
07ca74cd2e76310caacb709c5304999b waf/wordfence.py
447448
d347378166b781e39569eaaa036268d5 waf/yundun.py
448449
c32f8c216fab0a0672f734a48da8d6ff waf/yunsuo.py
450+
fd87445df19ad9e58b5ffff464bd7413 waf/zenedge.py
449451
e87d59af23b7b18cd56c9883e5f02d5c xml/banner/generic.xml
450452
d8925c034263bf1b83e7d8e1c78eec57 xml/banner/mssql.xml
451453
b8b56f4aa34bf65365808919b97119a7 xml/banner/mysql.xml

waf/watchguard.py

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
#!/usr/bin/env python
2+
3+
"""
4+
Copyright (c) 2006-2017 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__ = "WatchGuard (WatchGuard Technologies)"
14+
15+
def detect(get_page):
16+
retval = False
17+
18+
for vector in WAF_ATTACK_VECTORS:
19+
_, headers, code = get_page(get=vector)
20+
retval = code >= 400 and re.search(r"\AWatchGuard", headers.get(HTTP_HEADER.SERVER, ""), re.I) is not None
21+
if retval:
22+
break
23+
24+
return retval

waf/zenedge.py

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
#!/usr/bin/env python
2+
3+
"""
4+
Copyright (c) 2006-2017 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__ = "Zenedge Web Application Firewall (Zenedge)"
14+
15+
def detect(get_page):
16+
retval = False
17+
18+
for vector in WAF_ATTACK_VECTORS:
19+
_, headers, code = get_page(get=vector)
20+
retval = code >= 400 and re.search(r"\AZENEDGE", headers.get(HTTP_HEADER.SERVER, ""), re.I) is not None
21+
if retval:
22+
break
23+
24+
return retval

0 commit comments

Comments
 (0)