This commit is contained in:
Your Name 2024-09-25 02:12:18 +00:00
parent 6d85d67705
commit 9ca6b48c99

View File

@ -366,9 +366,27 @@ module-akkoma-instance() {
fi fi
fi fi
} }
module-akkoma-timelines() {
ATTACK="module-akkoma-timelines DDOS Attack " module-akkoma-timeline-public() {
SEARCH_SPAM=$(grep $2 $ACCESS | grep -E "timelines/public|timelines/home" | grep $1 | wc -l) ATTACK="module-akkoma-timeline-public DDOS 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
echo "$IP $CHECK $COUNT"
if [ "$CHECK" = "" ]; then
ipBlockParser "$1"
redis-cli SADD tmp_block $1
message "$ATTACK $1"
echo "$ATTACK $1"
else
echo "$ATTACK Ignoring Duplicate IP: $1"
fi
fi
}
module-akkoma-timeline-home() {
ATTACK="module-akkoma-timeline-home DDOS Attack "
SEARCH_SPAM=$(grep $2 $ACCESS | grep -E "timelines/home" | grep $1 | wc -l)
CHECK=$(cat $NFT_CACHE | sort -u | grep $1) CHECK=$(cat $NFT_CACHE | sort -u | grep $1)
if [[ "$SEARCH_SPAM" -gt 30 ]]; then if [[ "$SEARCH_SPAM" -gt 30 ]]; then
echo "$IP $CHECK $COUNT" echo "$IP $CHECK $COUNT"
@ -420,7 +438,8 @@ watch() {
for i in "${IP[@]}"; do for i in "${IP[@]}"; do
module-akkoma-instance "$i" "$DATE" module-akkoma-instance "$i" "$DATE"
module-akkoma-timelines "$i" "$DATE" module-akkoma-timeline-public "$i" "$DATE"
+ module-akkoma-timeline-home "$i" "$DATE"
module-akkoma-accounts "$i" "$DATE" module-akkoma-accounts "$i" "$DATE"
module-akkoma-search "$i" "$DATE" module-akkoma-search "$i" "$DATE"
module-lightning "$i" "$DATE" module-lightning "$i" "$DATE"