mirror of https://gitlab.com/bashrc2/epicyon
Add logging
parent
339e466838
commit
9e575d87e4
|
|
@ -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
|
||||
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
||||
|
|
|
|||
|
|
@ -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"
|
||||
|
|
|
|||
Loading…
Reference in New Issue