This commit is contained in:
Your Name 2024-09-12 15:58:18 -06:00
parent c047c7b5d9
commit 3321076b2b
2 changed files with 36 additions and 10 deletions

View File

@ -162,3 +162,22 @@
213.180.203.113
66.249.66.4
51.222.253.13
116.179.37.130
116.179.37.234
116.179.37.92
149.102.240.82
2a03:2880:f800:e::
51.222.87.143
89.58.7.71
109.199.100.233
95.108.213.83
13.88.170.228
20.55.222.96
165.227.153.153
165.227.155.148
64.226.88.176
66.249.66.15
165.227.171.205
136.243.228.193
54.36.149.33
37.187.151.141

View File

@ -103,20 +103,27 @@ bot-search() {
done
}
drc-alert(){
toot activate $BOT_ACCOUNT
toot post ":emergency: :hacker_p: :hacker_e: :hacker_d: :hacker_o: :trans: :hacker_a: :hacker_l: :hacker_e: :hacker_r: :hacker_t: :emergency2: $1" -m /root/detroit/akkoma/blockbot/pedo.png
}
pedo-search() {
DATE="$(date +%d/%b/%Y:%H:%M -d '1 min ago' )"
echo
echo "Processing Pedo Searches into NFT....."
PEDO_SEARCH=$( grep $DATE $NGINX_ACCESS | grep -vi $MY_IP | grep -Ei 'tag|search' | grep -Evi -f $CRAWLER_DB | grep -Ei -f $PEDO_DB | head -1)
echo $PEDO_SEARCH
if [ -z "$PEDO_SEARCH" ];
then
echo "No Pedos Found"
else
IP=$(echo $PEDO_SEARCH | cut -d ' ' -f1)
$NFT add rule ip filter input position 8 ip saddr $IP $NFT_DROP
message "[Pedo Alert] $QUERY"
echo $PEDO_SEARCH
if [ "$PEDO_SEARCH" ]; then
echo "Pedo Found!"
echo "Processing Pedo Searches into NFT....."
IP=$(echo $PEDO_SEARCH | cut -d ' ' -f1)
$NFT add rule ip filter input position 8 ip saddr $IP $NFT_DROP
message "[Pedo Alert] $PEDO_SEARCH"
drc-alert "$PEDO_SEARCH"
else
echo
echo "No Pedos Found"
echo
fi
}