first commit

This commit is contained in:
Souti
2025-03-06 11:09:58 +01:00
commit 11f7d440ff
330 changed files with 38306 additions and 0 deletions

13
banned.sh Executable file
View File

@@ -0,0 +1,13 @@
#!/bin/bash
#var=`/usr/bin/fail2ban-client status sshd |grep "Total banned"|awk -F":" '{print $2}'`
# remove leading whitespace characters
#banned="${var#"${var%%[![:space:]]*}"}"
banned=`/usr/sbin/iptables -L -n --line|/bin/grep REJECT|wc -l`
json="http://localhost:81/json.htm?type=command&param=udevice&idx=700&svalue=$banned"
echo $json
curl -s -i -H "Accept: application/json" $json
echo $banned;