mirror of
https://github.com/Ekultek/Zeus-Scanner.git
synced 2026-03-11 08:55:51 +00:00
added a new header to the check to see if they have protection against MITM attacks (Public-Key-Pins)
This commit is contained in:
parent
6d19d03845
commit
6f6663b453
2 changed files with 2 additions and 2 deletions
|
|
@ -4,4 +4,5 @@
|
|||
<header name="X-Frame-Options"/>
|
||||
<header name="X-Content-Type-Options"/>
|
||||
<header name="Content-Security-Policy"/>
|
||||
<header name="Public-Key-Pins"/>
|
||||
</headers>
|
||||
|
|
@ -71,8 +71,6 @@ def detect_protection(url, **kwargs):
|
|||
|
||||
retval = []
|
||||
if status != 200 and "not found" not in html.lower():
|
||||
if "Apache" in headers["Server"] and "you don't have permission" in html.lower():
|
||||
return None
|
||||
file_list = [f for f in os.listdir(DETECT_FIREWALL_PATH) if not any(ex in f for ex in ["__init__", ".pyc"])]
|
||||
for item in file_list:
|
||||
item = item[:-3]
|
||||
|
|
@ -198,6 +196,7 @@ def main_header_check(url, **kwargs):
|
|||
"strict-transport": ("protection against unencrypted connections (force HTTPS connection)", "HTTPS"),
|
||||
"x-frame": ("protection against clickjacking vulnerabilities", "CLICKJACKING"),
|
||||
"x-content": ("protection against MIME type attacks", "MIME"),
|
||||
"public-key": ("protection to reduce success rates of MITM attacks", "MITM"),
|
||||
"content-security": ("protection against multiple attacks", "ALL")
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue