From 2d4391dc361ffba8121bc11e3bcad50767e1a5e4 Mon Sep 17 00:00:00 2001 From: Miroslav Stampar Date: Wed, 13 Dec 2017 15:10:15 +0100 Subject: [PATCH] Adding new WAF script (F5 ASM) --- lib/core/settings.py | 2 +- txt/checksum.md5 | 3 ++- waf/asm.py | 21 +++++++++++++++++++++ 3 files changed, 24 insertions(+), 2 deletions(-) create mode 100644 waf/asm.py diff --git a/lib/core/settings.py b/lib/core/settings.py index 63aeaf10f..ac03be301 100644 --- a/lib/core/settings.py +++ b/lib/core/settings.py @@ -19,7 +19,7 @@ from lib.core.enums import DBMS_DIRECTORY_NAME from lib.core.enums import OS # sqlmap version (...) -VERSION = "1.1.12.19" +VERSION = "1.1.12.20" TYPE = "dev" if VERSION.count('.') > 2 and VERSION.split('.')[-1] != '0' else "stable" TYPE_COLORS = {"dev": 33, "stable": 90, "pip": 34} VERSION_STRING = "sqlmap/%s#%s" % ('.'.join(VERSION.split('.')[:-1]) if VERSION.count('.') > 2 and VERSION.split('.')[-1] == '0' else VERSION, TYPE) diff --git a/txt/checksum.md5 b/txt/checksum.md5 index 58d07baea..5df410b14 100644 --- a/txt/checksum.md5 +++ b/txt/checksum.md5 @@ -46,7 +46,7 @@ f872699e948d0692ce11b54781da814c lib/core/log.py 760d9df2a27ded29109b390ab202e72d lib/core/replication.py a2466b62e67f8b31736bac4dac590e51 lib/core/revision.py 02d4762140a72fd44668d3dab5eabda9 lib/core/session.py -abc5b37347c8ab56f108538d03eeda38 lib/core/settings.py +e073bdbcda9622faa1179eb62d9c420e lib/core/settings.py 35bffbad762eb9e03db9e93b1c991103 lib/core/shell.py a59ec28371ae067a6fdd8f810edbee3d lib/core/subprocessng.py d93501771b41315f9fb949305b6ed257 lib/core/target.py @@ -389,6 +389,7 @@ ca3ab78d6ed53b7f2c07ed2530d47efd udf/postgresql/windows/32/8.4/lib_postgresqlud 8f21bc536648bbe73de32cb58036564a waf/airlock.py 05fde87480ea622db4c84b0fc248a613 waf/anquanbao.py 4adfebe23101d542365d8c92b4f49af7 waf/armor.py +d4c8df8461e8633cc4cc94c687102396 waf/asm.py 58faaa04de90a44c306e862bbbe0ed83 waf/aws.py 2347b494b91dc50d93d1437e1302f9f1 waf/baidu.py 72fd38a1fa212fb154f74d0c978d489a waf/barracuda.py diff --git a/waf/asm.py b/waf/asm.py new file mode 100644 index 000000000..c377a3c6a --- /dev/null +++ b/waf/asm.py @@ -0,0 +1,21 @@ +#!/usr/bin/env python + +""" +Copyright (c) 2006-2017 sqlmap developers (http://sqlmap.org/) +See the file 'LICENSE' for copying permission +""" + +from lib.core.settings import WAF_ATTACK_VECTORS + +__product__ = "Application Security Manager (F5 Networks)" + +def detect(get_page): + retval = False + + for vector in WAF_ATTACK_VECTORS: + page, _, _ = get_page(get=vector) + retval = "The requested URL was rejected. Please consult with your administrator." in (page or "") + if retval: + break + + return retval