Add logging

main
bashrc 2026-04-07 16:15:59 +01:00
parent 339e466838
commit 9e575d87e4
3 changed files with 5 additions and 1 deletions

View File

@ -386,6 +386,8 @@ def daemon_http_get(self) -> None:
# contradictory browsers within the user agent indicate
# malevolent intent
if check_mixed_user_agent(ua_str):
print('GET HTTP contradictory browsers within user agent ' +
str(self.headers))
http_400(self)
return

View File

@ -286,6 +286,8 @@ def daemon_http_post(self) -> None:
# contradictory browsers within the user agent indicate
# malevolent intent
if check_mixed_user_agent(ua_str):
print('POST HTTP contradictory browsers within user agent ' +
str(self.headers))
http_400(self)
return

View File

@ -1,2 +1,2 @@
#!/bin/bash
journalctl -u epicyon | grep "invalid header\|invalid characters\|leech bounced\|LLM scraper\|suspicious\|bad path\|not wordpress\|attempt to access passwords\|GET Unknown request"
journalctl -u epicyon | grep "invalid header\|invalid characters\|leech bounced\|LLM scraper\|suspicious\|contradictory browsers\|bad path\|not wordpress\|attempt to access passwords\|GET Unknown request"