Skip to content

Commit 2d4391d

Browse files
committed
Adding new WAF script (F5 ASM)
1 parent 5326df1 commit 2d4391d

File tree

3 files changed

+24
-2
lines changed

3 files changed

+24
-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.12.19"
22+
VERSION = "1.1.12.20"
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
@@ -46,7 +46,7 @@ f872699e948d0692ce11b54781da814c lib/core/log.py
4646
760d9df2a27ded29109b390ab202e72d lib/core/replication.py
4747
a2466b62e67f8b31736bac4dac590e51 lib/core/revision.py
4848
02d4762140a72fd44668d3dab5eabda9 lib/core/session.py
49-
abc5b37347c8ab56f108538d03eeda38 lib/core/settings.py
49+
e073bdbcda9622faa1179eb62d9c420e lib/core/settings.py
5050
35bffbad762eb9e03db9e93b1c991103 lib/core/shell.py
5151
a59ec28371ae067a6fdd8f810edbee3d lib/core/subprocessng.py
5252
d93501771b41315f9fb949305b6ed257 lib/core/target.py
@@ -389,6 +389,7 @@ ca3ab78d6ed53b7f2c07ed2530d47efd udf/postgresql/windows/32/8.4/lib_postgresqlud
389389
8f21bc536648bbe73de32cb58036564a waf/airlock.py
390390
05fde87480ea622db4c84b0fc248a613 waf/anquanbao.py
391391
4adfebe23101d542365d8c92b4f49af7 waf/armor.py
392+
d4c8df8461e8633cc4cc94c687102396 waf/asm.py
392393
58faaa04de90a44c306e862bbbe0ed83 waf/aws.py
393394
2347b494b91dc50d93d1437e1302f9f1 waf/baidu.py
394395
72fd38a1fa212fb154f74d0c978d489a waf/barracuda.py

waf/asm.py

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
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+
from lib.core.settings import WAF_ATTACK_VECTORS
9+
10+
__product__ = "Application Security Manager (F5 Networks)"
11+
12+
def detect(get_page):
13+
retval = False
14+
15+
for vector in WAF_ATTACK_VECTORS:
16+
page, _, _ = get_page(get=vector)
17+
retval = "The requested URL was rejected. Please consult with your administrator." in (page or "")
18+
if retval:
19+
break
20+
21+
return retval

0 commit comments

Comments
 (0)