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

Skip to content

Commit 669afdd

Browse files
committed
Adding new waf script
1 parent 21ce71b commit 669afdd

4 files changed

Lines changed: 28 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.51"
22+
VERSION = "1.3.1.52"
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-
540a2dab2853ea2599996b12183a7c2f lib/core/settings.py
52+
d678e90ba0f7ce756b88a0540e5e7db9 lib/core/settings.py
5353
a8a7501d1e6b21669b858a62e921d191 lib/core/shell.py
5454
5dc606fdf0afefd4b305169c21ab2612 lib/core/subprocessng.py
5555
eec3080ba5baca44c6de4595f1c92a0d lib/core/target.py
@@ -402,7 +402,7 @@ b6bc83ae9ea69cf96e9389bde8250c7c waf/airlock.py
402402
34b8ec9f438d7daa56aa016e6c09fadb waf/anquanbao.py
403403
7ab1a7cd51a02899592f4f755d36a02e waf/approach.py
404404
425f2599f57ab81b4fff67e6b442cccc waf/armor.py
405-
33b6e6793ed3add457d7c909ec599ad3 waf/asm.py
405+
2d03af372a8e660e67437438264a144d waf/asm.py
406406
9dbec5d674ed4c762ffc9bc3ab402739 waf/aws.py
407407
e57a22864477ad23ae6a3d308f9b5410 waf/barracuda.py
408408
742f8c9b7f3a858e11dfd2ce3df65c6e waf/binarysec.py
@@ -454,6 +454,7 @@ d2d9718de217dd07d9e66b2e6ad61380 waf/safe3.py
454454
213062db202a6eb0939a6674f96be551 waf/safedog.py
455455
34440ee94fcff88b4158e86635176547 waf/secureentry.py
456456
ac0728ddb7a15b46b0eabd78cd661f8c waf/secureiis.py
457+
c6cbe2de808d7a6b614a9ba3c85b4141 waf/securesphere.py
457458
ba37e1c37fa0e3688873f74183a9cb9c waf/senginx.py
458459
2602a8baed4da643e606a379e4dc75db waf/shieldsecurity.py
459460
fc21ce1e6e597e44818c03d9cb859e83 waf/siteground.py

waf/asm.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,6 @@ def detect(get_page):
1717
for vector in WAF_ATTACK_VECTORS:
1818
page, headers, code = get_page(get=vector)
1919
retval = "The requested URL was rejected. Please consult with your administrator." in (page or "")
20-
retval |= all(_ in (page or "") for _ in ("This page can't be displayed. Contact support for additional information", "The incident ID is:"))
21-
retval |= re.search(r"(?i)Support.ID", page or "") is not None and re.search(r"\b\d{19}\b", page or "") is not None
2220
retval |= all(_ in (page or "") for _ in ("security.f5aas.com", "Please enable JavaScript to view the page content"))
2321
if retval:
2422
break

waf/securesphere.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-2019 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__ = "SecureSphere Web Application Firewall (Imperva)"
14+
15+
def detect(get_page):
16+
retval = False
17+
18+
for vector in WAF_ATTACK_VECTORS:
19+
page, _, _ = get_page(get=vector)
20+
retval = re.search(r"<H2>Error</H2>.+?#FEEE7A.+?<STRONG>Error</STRONG>|Contact support for additional information.<br/>The incident ID is: (\\d{19}|N/A)", page or "", re.I) is not None
21+
if retval:
22+
break
23+
24+
return retval

0 commit comments

Comments
 (0)