mirror of
https://github.com/Ekultek/Zeus-Scanner.git
synced 2026-03-11 08:55:51 +00:00
created a new WAF script for powerful firewall (mybb plugin issue #142)
This commit is contained in:
parent
55b1285809
commit
885fe2e43f
1 changed files with 17 additions and 0 deletions
17
lib/firewall/powerful.py
Normal file
17
lib/firewall/powerful.py
Normal file
|
|
@ -0,0 +1,17 @@
|
|||
import re
|
||||
|
||||
|
||||
__item__ = "Powerful Firewall (MyBB plugin)"
|
||||
|
||||
|
||||
def detect(content, **kwargs):
|
||||
status = kwargs.get("status", None)
|
||||
detection_schema = (
|
||||
re.compile(r"Powerful Firewall", re.I),
|
||||
re.compile(r"http(s)?...tiny.cc.powerful.firewall", re.I)
|
||||
)
|
||||
if status is not None:
|
||||
if status == 403:
|
||||
for detection in detection_schema:
|
||||
if detection.search(content) is not None:
|
||||
return True
|
||||
Loading…
Reference in a new issue