mirror of
https://gitlab.com/bashrc2/epicyon
synced 2026-11-02 18:59:53 +00:00
Log attempts to access passwords
This commit is contained in:
1 parent
41e5a9d098
commit
4f528fd352
2 files changed
+8
-1
No files matched your search
@@ -6103,6 +6103,13 @@ def daemon_http_get(self) -> None:
|
||||
# check that the file exists
|
||||
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
|
||||
if filename.endswith('.suspended'):
|
||||
http_404(self, 145)
|
||||
|
||||
+1
-1
@@ -1,2 +1,2 @@
|
||||
#!/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"
|
||||
Reference in new issue
Block a user