diff --git a/modules/module-akkoma-accounts.sh b/modules/module-akkoma-accounts.sh index 56ec388..13ca9b8 100644 --- a/modules/module-akkoma-accounts.sh +++ b/modules/module-akkoma-accounts.sh @@ -3,7 +3,6 @@ FIREWALL="/opt/firewall/firewall.sh" NFT_CACHE='/tmp/nft.cache' ACCESS="/tmp/minute.log" ATTACK="module-akkoma-accounts DDOS Attack " -echo $ATTACK SEARCH_SPAM=$(grep $2 $ACCESS | grep "api/v1/accounts" | grep $1 | wc -l) CHECK=$(cat $NFT_CACHE | sort -u | grep $1) if [[ "$SEARCH_SPAM" -gt 30 ]]; then diff --git a/modules/module-akkoma-instance.sh b/modules/module-akkoma-instance.sh index 2be0acb..8339ec6 100644 --- a/modules/module-akkoma-instance.sh +++ b/modules/module-akkoma-instance.sh @@ -3,7 +3,6 @@ FIREWALL="/opt/firewall/firewall.sh" NFT_CACHE='/tmp/nft.cache' ACCESS="/tmp/minute.log" ATTACK="module-akkoma-instance DDOS Attack " -echo $ATTACK SEARCH_SPAM=$(grep $2 $ACCESS | grep -E "api/v1/instance" | grep $1 | wc -l) CHECK=$(cat $NFT_CACHE | sort -u | grep $1) if [[ "$SEARCH_SPAM" -gt 30 ]]; then diff --git a/modules/module-akkoma-search.sh b/modules/module-akkoma-search.sh index 87254ee..1411c43 100644 --- a/modules/module-akkoma-search.sh +++ b/modules/module-akkoma-search.sh @@ -3,7 +3,6 @@ FIREWALL="/opt/firewall/firewall.sh" NFT_CACHE='/tmp/nft.cache' ACCESS="/tmp/minute.log" ATTACK="module-akkoma-search DDOS Attack " -echo $ATTACK SEARCH_SPAM=$(grep $2 $ACCESS | grep "api/v2/search" | grep $1 | wc -l) CHECK=$(cat $NFT_CACHE | sort -u | grep $1) if [[ "$SEARCH_SPAM" -gt 10 ]]; then diff --git a/modules/module-akkoma-timeline-home.sh b/modules/module-akkoma-timeline-home.sh index b009019..e280879 100644 --- a/modules/module-akkoma-timeline-home.sh +++ b/modules/module-akkoma-timeline-home.sh @@ -3,7 +3,6 @@ FIREWALL="/opt/firewall/firewall.sh" NFT_CACHE='/tmp/nft.cache' ACCESS="/tmp/minute.log" ATTACK="module-akkoma-timeline-home DDOS Attack " -echo $ATTACK SEARCH_SPAM=$(grep $2 $ACCESS | grep -E "timelines/home" | grep $1 | wc -l) CHECK=$(cat $NFT_CACHE | sort -u | grep $1) if [[ "$SEARCH_SPAM" -gt 30 ]]; then diff --git a/modules/module-akkoma-timeline-public.sh b/modules/module-akkoma-timeline-public.sh index c2265b6..739291d 100644 --- a/modules/module-akkoma-timeline-public.sh +++ b/modules/module-akkoma-timeline-public.sh @@ -3,7 +3,6 @@ FIREWALL="/opt/firewall/firewall.sh" NFT_CACHE='/tmp/nft.cache' ACCESS="/tmp/minute.log" ATTACK="module-akkoma-timeline-public DDOS Attack " -echo $ATTACK SEARCH_SPAM=$(grep $2 $ACCESS | grep "timelines/public" | grep $1 | wc -l) CHECK=$(cat $NFT_CACHE | sort -u | grep $1) if [[ "$SEARCH_SPAM" -gt 30 ]]; then diff --git a/modules/module-get-spam.sh b/modules/module-get-spam.sh index 3f60548..a92e7ad 100644 --- a/modules/module-get-spam.sh +++ b/modules/module-get-spam.sh @@ -2,7 +2,6 @@ FIREWALL="/opt/firewall/firewall.sh" ACCESS="/tmp/minute.log" ATTACK="module-get-spam DDOS Attack " -echo $ATTACK GET_SPAM=$(grep $2 $ACCESS | grep -E "GET / HTTP" | wc -l) if [[ "$GET_SPAM" -gt 20 ]]; then bash $FIREWALL ipBlockParser "$1" diff --git a/modules/module-go.sh b/modules/module-go.sh index 69ba1e4..7d743b9 100644 --- a/modules/module-go.sh +++ b/modules/module-go.sh @@ -2,7 +2,6 @@ FIREWALL="/opt/firewall/firewall.sh" ACCESS="/tmp/minute.log" ATTACK="module-go DDOS Attack " -echo $ATTACK GO_SPAM=$(grep $2 $ACCESS | grep -E "Go-http-client" | wc -l) if [[ "$GO_SPAM" -gt 10 ]]; then bash $FIREWALL ipBlockParser "$1" diff --git a/modules/module-lightning.sh b/modules/module-lightning.sh index bbaeb10..4e1e2e6 100644 --- a/modules/module-lightning.sh +++ b/modules/module-lightning.sh @@ -2,7 +2,6 @@ FIREWALL="/opt/firewall/firewall.sh" ACCESS="/tmp/minute.log" ATTACK="module-lightning DDOS Attack " -echo $ATTACK LN_SPAM=$(grep $2 $ACCESS | grep "lnurlp/verita84" | wc -l) if [[ "$LN_SPAM" -gt 5 ]]; then bash $FIREWALL ipBlockParser "$1" diff --git a/modules/module-php.sh b/modules/module-php.sh index 004b6ec..3e6ee5d 100644 --- a/modules/module-php.sh +++ b/modules/module-php.sh @@ -2,7 +2,6 @@ FIREWALL="/opt/firewall/firewall.sh" ACCESS="/tmp/minute.log" ATTACK="module-php DDOS Attack " -echo $ATTACK PHP_SPAM=$(grep $2 $ACCESS | grep -E ".php|cgi-bin|wp-content|wp-admin|wp-includes" | wc -l) if [[ "$PHP_SPAM" -gt 10 ]]; then bash $FIREWALL ipBlockParser "$1"