mirror of https://gitlab.com/bashrc2/epicyon
Convert to string
parent
3b55ef745e
commit
683cc9bc7e
|
@ -218,11 +218,12 @@ def _detect_mitm(self) -> bool:
|
||||||
)
|
)
|
||||||
for interloper in mitm_domains:
|
for interloper in mitm_domains:
|
||||||
for header_name in check_headers:
|
for header_name in check_headers:
|
||||||
if self.headers.get(header_name):
|
if not self.headers.get(header_name):
|
||||||
if interloper in self.headers[header_name]:
|
continue
|
||||||
print('MITM: ' + header_name + ' = ' +
|
if interloper in str(self.headers[header_name]):
|
||||||
self.headers[header_name])
|
print('MITM: ' + header_name + ' = ' +
|
||||||
return True
|
str(self.headers[header_name]))
|
||||||
|
return True
|
||||||
# The presence of these headers on their own indicates a MiTM
|
# The presence of these headers on their own indicates a MiTM
|
||||||
mitm_headers = (
|
mitm_headers = (
|
||||||
'CF-Connecting-IP', 'CF-RAY', 'CF-IPCountry', 'CF-Visitor',
|
'CF-Connecting-IP', 'CF-RAY', 'CF-IPCountry', 'CF-Visitor',
|
||||||
|
|
Loading…
Reference in New Issue