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

Skip to content

Commit 02d66db

Browse files
committed
New WAF script (SiteGuard)
1 parent c94bddd commit 02d66db

5 files changed

Lines changed: 27 additions & 7 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.42"
22+
VERSION = "1.3.1.43"
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: 4 additions & 3 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-
da97136510824fdec55455dde8c674c3 lib/core/settings.py
52+
c6bb49602e081b6ad551053145b95f52 lib/core/settings.py
5353
a8a7501d1e6b21669b858a62e921d191 lib/core/shell.py
5454
5dc606fdf0afefd4b305169c21ab2612 lib/core/subprocessng.py
5555
eec3080ba5baca44c6de4595f1c92a0d lib/core/target.py
@@ -399,7 +399,7 @@ ca3ab78d6ed53b7f2c07ed2530d47efd udf/postgresql/windows/32/8.4/lib_postgresqlud
399399
d6f06b1463501392e7e578d511ffb4d8 waf/360.py
400400
2d63c46bed78aec2966a363d5db800fd waf/aesecure.py
401401
b6bc83ae9ea69cf96e9389bde8250c7c waf/airlock.py
402-
8dcba3e7509e87e7829f445299bd2d3b waf/anquanbao.py
402+
34b8ec9f438d7daa56aa016e6c09fadb waf/anquanbao.py
403403
7ab1a7cd51a02899592f4f755d36a02e waf/approach.py
404404
425f2599f57ab81b4fff67e6b442cccc waf/armor.py
405405
33b6e6793ed3add457d7c909ec599ad3 waf/asm.py
@@ -451,7 +451,8 @@ d2d9718de217dd07d9e66b2e6ad61380 waf/safe3.py
451451
ac0728ddb7a15b46b0eabd78cd661f8c waf/secureiis.py
452452
ba37e1c37fa0e3688873f74183a9cb9c waf/senginx.py
453453
2602a8baed4da643e606a379e4dc75db waf/shieldsecurity.py
454-
24f1cc66625e58e4c91c0cb4364a2202 waf/sitelock.py
454+
332f27cfa02abca513719851850c782e waf/siteguard.py
455+
c842d298e61a87b32668c8402a0d87b5 waf/sitelock.py
455456
a840fcd2bb042694f9aab2859e7c9b30 waf/sonicwall.py
456457
45683bfe7a428f47745416c727a789bd waf/sophos.py
457458
4a11ba8e5f3995b35f5fc189b8c2692e waf/stackpath.py

waf/anquanbao.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,6 @@
55
See the file 'LICENSE' for copying permission
66
"""
77

8-
import re
9-
108
from lib.core.settings import WAF_ATTACK_VECTORS
119

1210
__product__ = "Anquanbao Web Application Firewall (Anquanbao)"

waf/siteguard.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__ = "SiteGuard (JP-Secure)"
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 = any(_ in (page or "") for _ in ("Powered by SiteGuard", "The server refuse to browse the page"))
18+
if retval:
19+
break
20+
21+
return retval

waf/sitelock.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ def detect(get_page):
1515

1616
for vector in WAF_ATTACK_VECTORS:
1717
page, _, _ = get_page(get=vector)
18-
retval |= any(_ in (page or "") for _ in ("SiteLock Incident ID", '<span class="value INCIDENT_ID">'))
18+
retval = any(_ in (page or "") for _ in ("SiteLock Incident ID", '<span class="value INCIDENT_ID">'))
1919
if retval:
2020
break
2121

0 commit comments

Comments
 (0)