#!/bin/bash
rm *.txt
curl "http://140.238.19.151/down.aspx?token=5pu+56We6bih56We54uX56We5pyA54mb6YC8&asn=399566" > ofcfip.txt
curl "http://140.238.19.151/down.aspx?token=5pu+56We6bih56We54uX56We5pyA54mb6YC8&asn=206998" >> ofcfip.txt
curl "http://140.238.19.151/down.aspx?token=5pu+56We6bih56We54uX56We5pyA54mb6YC8&asn=13335" >> ofcfip.txt
curl "http://140.238.19.151/down.aspx?token=5pu+56We6bih56We54uX56We5pyA54mb6YC8&asn=209242" >> ofcfip.txt
curl "http://140.238.19.151/down.aspx?token=5pu+56We6bih56We54uX56We5pyA54mb6YC8&asn=62659" >> ofcfip.txt
curl "http://140.238.19.151/down.aspx?token=5pu+56We6bih56We54uX56We5pyA54mb6YC8&asn=14197" >> ofcfip.txt
curl "http://140.238.19.151/down.aspx?token=5pu+56We6bih56We54uX56We5pyA54mb6YC8&asn=149648" >> ofcfip.txt
curl "http://140.238.19.151/down.aspx?token=5pu+56We6bih56We54uX56We5pyA54mb6YC8&asn=31898" >> ofcfip.txt
./router.sh -r -k -s
cat ofcfip.txt | awk -F. '{print $1"."$2".0.0/16"}' | sort | uniq > ofcfsub.txt
cat ofcfsub.txt ofcfsub.txt cfip.txt | sort | uniq -u > cfip1.txt
mv cfip1.txt cfip.txt
cat ofcfip.txt log.txt | sed 's/ip=//' | awk '!x[$1]++' | grep valid | sed 's/^/ip=/' > log1.txt
mv log1.txt log.txt
