Remove debug

merge-requests/30/head
Bob Mottram 2024-12-29 18:19:34 +00:00
parent a8b5ae487a
commit 80be5a4417
1 changed files with 0 additions and 6 deletions

View File

@ -5343,8 +5343,6 @@ def detect_mitm(self) -> bool:
if not self.headers.get(header_name): if not self.headers.get(header_name):
continue continue
if interloper in str(self.headers[header_name]).lower(): if interloper in str(self.headers[header_name]).lower():
print('MITM: ' + header_name + ' = ' +
str(self.headers[header_name]))
return True 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 = (
@ -5353,12 +5351,8 @@ def detect_mitm(self) -> bool:
) )
for header_name in mitm_headers: for header_name in mitm_headers:
if self.headers.get(header_name): if self.headers.get(header_name):
print('MITM: ' + header_name + ' = ' +
self.headers[header_name])
return True return True
if self.headers.get(header_name.lower()): if self.headers.get(header_name.lower()):
print('MITM: ' + header_name + ' = ' +
self.headers[header_name.lower()])
return True return True
return False return False