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

Skip to content

Commit 929df9b

Browse files
committed
Minor update of WAF scripts
1 parent 48cdc6a commit 929df9b

4 files changed

Lines changed: 6 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.15"
22+
VERSION = "1.3.1.16"
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 & 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-
098028ac6cec0095c6ffd8019d448b1c lib/core/settings.py
52+
4a682eb379b6eeec3ff41548baf8363f 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 @@ ca3ab78d6ed53b7f2c07ed2530d47efd udf/postgresql/windows/32/8.4/lib_postgresqlud
402402
94eec6c5d02357596292d36a8533f08f waf/anquanbao.py
403403
7ab1a7cd51a02899592f4f755d36a02e waf/approach.py
404404
425f2599f57ab81b4fff67e6b442cccc waf/armor.py
405-
f0aa6abf1f9af78374e58a64cb33c9de waf/asm.py
405+
069a99125ae1aa6fb3babe81e42d3e94 waf/asm.py
406406
9dbec5d674ed4c762ffc9bc3ab402739 waf/aws.py
407407
4fd9a8e3aac364fe5509b23e7eb5a448 waf/barracuda.py
408408
742f8c9b7f3a858e11dfd2ce3df65c6e waf/binarysec.py
@@ -440,7 +440,7 @@ d4f36e44f496f4d51baa3241eabc60fd waf/malcare.py
440440
d03dfe93a14c966b88f5baf59ce2b091 waf/ninjafirewall.py
441441
69fc40e85751279e9018d643742db04e waf/nsfocus.py
442442
a59aff03a5b3fb40ea0feb3489677040 waf/onmessage.py
443-
7ff3c93f2c77a984ebbf217c7c38a796 waf/paloalto.py
443+
532b6f8de357a9b88a313944e1756538 waf/paloalto.py
444444
2979bb64c24256a83625d75a385dde9b waf/profense.py
445445
8de0d46738335a4e498c4ac9038ac3c3 waf/proventia.py
446446
ac60456fe7af4eb501d448910e98ee4b waf/radware.py

waf/asm.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ def detect(get_page):
1818
page, headers, code = get_page(get=vector)
1919
retval = "The requested URL was rejected. Please consult with your administrator." in (page or "")
2020
retval |= all(_ in (page or "") for _ in ("This page can't be displayed. Contact support for additional information", "The incident ID is:"))
21-
retval |= (code >= 400) and "ID" in (page or "") and re.search(r"\b\d{19}\b", page or "") is not None
21+
retval |= re.search(r"(?i)Support.ID", page or "") and re.search(r"\b\d{19}\b", page or "") is not None
2222
if retval:
2323
break
2424

waf/paloalto.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ def detect(get_page):
1717
for vector in WAF_ATTACK_VECTORS:
1818
page, _, _ = get_page(get=vector)
1919
retval = re.search(r"has been blocked in accordance with company policy", page or "", re.I) is not None
20+
retval |= all(_ in (page or "") for _ in ("Palo Alto Next Generation Security Platform", "Download Blocked"))
2021
if retval:
2122
break
2223

0 commit comments

Comments
 (0)