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

Skip to content

Commit 0a3144e

Browse files
committed
New WAF script (Squarespace)
1 parent 02d66db commit 0a3144e

3 files changed

Lines changed: 24 additions & 2 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.43"
22+
VERSION = "1.3.1.44"
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
@@ -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-
c6bb49602e081b6ad551053145b95f52 lib/core/settings.py
52+
b5217540e886d7e5f9eb813288401923 lib/core/settings.py
5353
a8a7501d1e6b21669b858a62e921d191 lib/core/shell.py
5454
5dc606fdf0afefd4b305169c21ab2612 lib/core/subprocessng.py
5555
eec3080ba5baca44c6de4595f1c92a0d lib/core/target.py
@@ -455,6 +455,7 @@ ba37e1c37fa0e3688873f74183a9cb9c waf/senginx.py
455455
c842d298e61a87b32668c8402a0d87b5 waf/sitelock.py
456456
a840fcd2bb042694f9aab2859e7c9b30 waf/sonicwall.py
457457
45683bfe7a428f47745416c727a789bd waf/sophos.py
458+
ed1ecabfa8396e70494b0a3d70a22eb1 waf/squarespace.py
458459
4a11ba8e5f3995b35f5fc189b8c2692e waf/stackpath.py
459460
74bd52941b606d15f1a6cdc7b52f761c waf/sucuri.py
460461
205beb7ed5e70119f8700a9e295b6a4a waf/tencent.py

waf/squarespace.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__ = "Squarespace Web Application Firewall (Squarespace)"
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 = all(_ in (page or "") for _ in ("BRICK-50", " @ ", "404 Not Found"))
18+
if retval:
19+
break
20+
21+
return retval

0 commit comments

Comments
 (0)