serverhost
fix
This commit is contained in:
1 parent
24736d0577
commit
84dfdf5210
38 files changed
+3146
No files matched your search
@@ -0,0 +1,9 @@
|
||||
#!/bin/bash
|
||||
#SSH
|
||||
cat /var/log/auth.log | grep sshd | grep -E "\b([0-9]{1,3}\.){3}[0-9]{1,3}\b" | grep ": Failed"| cut -f1-3,6,7,11 -d' '
|
||||
|
||||
cat /var/log/auth.log | grep sshd | grep -E "\b([0-9]{1,3}\.){3}[0-9]{1,3}\b" | grep "Accepted" | cut -f1-3,6,7,11 -d' '
|
||||
|
||||
#NextCloud
|
||||
cat /nextcloud/nextcloud/access.log | grep -v dummy | cut -f1 -d' ' | sort | uniq -c
|
||||
cat /nextcloud/nextcloud/access.log | grep -v dummy | cut -f2 -d'"' | cut -f1 -d' ' | sort | uniq -c
|
||||
Reference in new issue
Block a user