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

Skip to content

Commit c94bddd

Browse files
committed
Adding new WAF script
1 parent aea3749 commit c94bddd

4 files changed

Lines changed: 26 additions & 5 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.3.1.41"
22+
VERSION = "1.3.1.42"
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 & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ fe370021c6bc99daf44b2bfc0d1effb3 lib/core/patch.py
4949
9a7d68d5fa01561500423791f15cc676 lib/core/replication.py
5050
3179d34f371e0295dd4604568fb30bcd lib/core/revision.py
5151
d6269c55789f78cf707e09a0f5b45443 lib/core/session.py
52-
df03aea681ed80e9850697b60db1b0eb lib/core/settings.py
52+
da97136510824fdec55455dde8c674c3 lib/core/settings.py
5353
a8a7501d1e6b21669b858a62e921d191 lib/core/shell.py
5454
5dc606fdf0afefd4b305169c21ab2612 lib/core/subprocessng.py
5555
eec3080ba5baca44c6de4595f1c92a0d lib/core/target.py
@@ -429,7 +429,7 @@ fb6be55d21a70765e35549af2484f762 waf/__init__.py
429429
a3ee375714987acccc26d1b07c2e8af7 waf/isaserver.py
430430
ce9cf35919a92d65347bb74ca0c5c86f waf/jiasule.py
431431
f44ed04eeb4287c11ce277703ec7d72d waf/knownsec.py
432-
d50d82bec48814eb5b699d302dbdae9a waf/kona.py
432+
8c3977c543ca4ec6d4231f604217cf94 waf/kona.py
433433
d4f36e44f496f4d51baa3241eabc60fd waf/malcare.py
434434
4397c299d27a500851726444fb89759e waf/modsecurity.py
435435
78af8e791207db9723a14bddeb7524af waf/naxsi.py
@@ -459,6 +459,7 @@ a840fcd2bb042694f9aab2859e7c9b30 waf/sonicwall.py
459459
205beb7ed5e70119f8700a9e295b6a4a waf/tencent.py
460460
ef6f83952ce6b5a7bbb19f9b903af2b6 waf/teros.py
461461
ba0fb1e6b815446b9d6f30950900fc80 waf/trafficshield.py
462+
1c15216824f96e23a76591ac29eb6d7d waf/urlmaster.py
462463
876c746d96193071271cb8b7e00e1422 waf/urlscan.py
463464
80314083009c87d32bf32d84e8bbb7be waf/varnish.py
464465
455bb16f552e7943e0a5cf35e83a74ea waf/virusdie.py

waf/kona.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,7 @@ def detect(get_page):
1717

1818
for vector in WAF_ATTACK_VECTORS:
1919
page, headers, code = get_page(get=vector)
20-
retval = code in (400, 403, 501) and all(_ in (page or "") for _ in ("Access Denied", "You don't have permission to access", "on this server", "Reference"))
21-
retval |= re.search(r"AkamaiGHost", headers.get(HTTP_HEADER.SERVER, ""), re.I) is not None
20+
retval = code >= 400 and re.search(r"AkamaiGHost", headers.get(HTTP_HEADER.SERVER, ""), re.I) is not None
2221
if retval:
2322
break
2423

waf/urlmaster.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-2019 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__ = "Url Master SecurityCheck (iFinity/DotNetNuke)"
11+
12+
def detect(get_page):
13+
retval = False
14+
15+
for vector in WAF_ATTACK_VECTORS:
16+
page, _, code = get_page(get=vector)
17+
retval = code >= 400 and all(_ in (page or "") for _ in ("UrlMaster", "UrlRewriteModule", "SecurityCheck"))
18+
if retval:
19+
break
20+
21+
return retval

0 commit comments

Comments
 (0)