From eb1fbd2048d71b5d39e4893bac8bb2ec819cf44a Mon Sep 17 00:00:00 2001 From: Your Name Date: Wed, 25 Sep 2024 20:09:11 -0600 Subject: [PATCH] fiux --- modules/module-akkoma-timeline-public.sh | 2 +- modules/module-php.sh | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/module-akkoma-timeline-public.sh b/modules/module-akkoma-timeline-public.sh index 19fb19d..16fb07e 100644 --- a/modules/module-akkoma-timeline-public.sh +++ b/modules/module-akkoma-timeline-public.sh @@ -5,7 +5,7 @@ ATTACK="module-akkoma-timeline-public" COUNT_SPAM=$(grep $2 $3 | grep "timelines/public" | grep $1 | wc -l) SEARCH_SPAM=$(($COUNT_SPAM)) CHECK=$(cat $NFT_CACHE | sort -u | grep $1) -if [[ "$SEARCH_SPAM" -gt 30 ]]; then +if [[ $SEARCH_SPAM -gt 30 ]]; then echo "$IP $CHECK $COUNT" if [ "$CHECK" = "" ]; then bash $FIREWALL ipBlockParser "$1" diff --git a/modules/module-php.sh b/modules/module-php.sh index 75d61d2..e30d2bd 100644 --- a/modules/module-php.sh +++ b/modules/module-php.sh @@ -2,7 +2,7 @@ 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) -if [[ "$PHP_SPAM" -gt 10 ]]; then +if [[ $PHP_SPAM -gt 10 ]]; then bash $FIREWALL ipBlockParser "$1" bash $FIREWALL message "$ATTACK-$1" redis-cli SADD tmp_block $1