mirror of https://gitlab.com/bashrc2/epicyon
Debug
parent
159580780f
commit
446310d03d
|
@ -392,7 +392,7 @@ def daemon_http_get(self) -> None:
|
|||
referer_domain = _get_referer_domain(self, ua_str)
|
||||
|
||||
mitm = detect_mitm(self)
|
||||
if mitm:
|
||||
if mitm and referer_domain:
|
||||
print('DEBUG: MITM on HTTP GET, ' + str(referer_domain))
|
||||
|
||||
curr_session, proxy_type = \
|
||||
|
|
|
@ -41,6 +41,7 @@ from httpcodes import http_503
|
|||
from httpheaders import contains_suspicious_headers
|
||||
from httpheaders import update_headers_catalog
|
||||
from httpheaders import redirect_headers
|
||||
from daemon_utils import detect_mitm
|
||||
from daemon_utils import log_epicyon_instances
|
||||
from daemon_utils import get_user_agent
|
||||
from daemon_utils import post_to_outbox
|
||||
|
@ -98,6 +99,10 @@ def daemon_http_post(self) -> None:
|
|||
self.server.headers_catalog,
|
||||
self.headers)
|
||||
|
||||
mitm = detect_mitm(self)
|
||||
if mitm:
|
||||
print('DEBUG: MITM on HTTP POST, ' + str(self.headers))
|
||||
|
||||
# headers used by LLM scrapers
|
||||
if 'oai-host-hash' in self.headers:
|
||||
print('POST HTTP LLM scraper bounced: ' + str(self.headers))
|
||||
|
|
Loading…
Reference in New Issue