sync 2026-09-23: refresh README, add new scripts

This commit is contained in:
2026-09-23 08:58:16 +02:00
parent dde29ff421
commit c8c24f35fc
23 changed files with 532 additions and 28 deletions
Executable
+4
View File
@@ -0,0 +1,4 @@
#!/bin/bash
FILENAME=attackers_`date +%Y%m%d`.txt
journalctl -u sshd --since today --no-pager | grep "Failed password" | grep -oE '[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}' | sort | uniq -c | sort -nr | head -n 20 | awk '{print $2}' > ~/$FILENAME
for i in `cat ~/$FILENAME`; do drop $i ; done