This commit is contained in:
Your Name 2024-09-25 22:28:19 -06:00
parent eb1fbd2048
commit 15b89287c5

View File

@ -1,7 +1,7 @@
#!/bin/bash
FIREWALL="/opt/firewall/firewall.sh"
ATTACK="module-php"
PHP_SPAM=$(grep $2 $3 | grep -E ".php|cgi-bin|wp-content|wp-admin|wp-includes" | wc -l)
PHP_SPAM=$(grep $2 $3 | grep $1 | grep -E ".php|cgi-bin|wp-content|wp-admin|wp-includes" | wc -l)
if [[ $PHP_SPAM -gt 10 ]]; then
bash $FIREWALL ipBlockParser "$1"
bash $FIREWALL message "$ATTACK-$1"