mirror of https://gitlab.com/bashrc2/epicyon
Log attempts to access passwords
parent
41e5a9d098
commit
4f528fd352
|
|
@ -6103,6 +6103,13 @@ def daemon_http_get(self) -> None:
|
||||||
# check that the file exists
|
# check that the file exists
|
||||||
filename = self.server.base_dir + self.path
|
filename = self.server.base_dir + self.path
|
||||||
|
|
||||||
|
if filename == data_dir(self.server.base_dir) + '/passwords':
|
||||||
|
print('WARN: attempt to access passwords ' +
|
||||||
|
str(self.headers).replace('\n', ' '))
|
||||||
|
http_404(self, 143)
|
||||||
|
self.server.getreq_busy = False
|
||||||
|
return
|
||||||
|
|
||||||
# check that the file is not suspended
|
# check that the file is not suspended
|
||||||
if filename.endswith('.suspended'):
|
if filename.endswith('.suspended'):
|
||||||
http_404(self, 145)
|
http_404(self, 145)
|
||||||
|
|
|
||||||
|
|
@ -1,2 +1,2 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
journalctl -u epicyon | grep "invalid header\|invalid characters\|leech bounced\|LLM scraper\|suspicious\|bad path\|not wordpress"
|
journalctl -u epicyon | grep "invalid header\|invalid characters\|leech bounced\|LLM scraper\|suspicious\|bad path\|not wordpress\|attempt to access passwords\|GET Unknown request"
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue