mirror of https://gitlab.com/bashrc2/epicyon
Tidying
parent
c107dd02b9
commit
ce631377a5
6
utils.py
6
utils.py
|
@ -5330,8 +5330,10 @@ def browser_supports_download_filename(ua_str: str) -> bool:
|
||||||
def detect_mitm(self) -> bool:
|
def detect_mitm(self) -> bool:
|
||||||
"""Detect if a request contains a MiTM
|
"""Detect if a request contains a MiTM
|
||||||
"""
|
"""
|
||||||
mitm_domains = ('cloudflare', 'radware', 'imperva', 'akamai',
|
mitm_domains = (
|
||||||
'azure', 'fastly', 'google')
|
'cloudflare', 'radware', 'imperva', 'akamai', 'azure',
|
||||||
|
'fastly', 'google'
|
||||||
|
)
|
||||||
# look for domains within these headers
|
# look for domains within these headers
|
||||||
check_headers = (
|
check_headers = (
|
||||||
'Server', 'Report-To', 'Report-to', 'report-to',
|
'Server', 'Report-To', 'Report-to', 'report-to',
|
||||||
|
|
Loading…
Reference in New Issue