Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/bash
- IP=IP
- URL=URL
- for i in `cat ips.txt`; do
- RET=`curl -m 2 -s -x ${i} ${URL}`
- if [ $? -eq 0 ]; then
- GOOD=`echo $RET | grep -c ${IP}`;
- if [ $GOOD -eq 0 ]; then
- echo -n "${i} ";
- GEO=`geoiplookup ${i%:*}`;
- echo ${GEO#GeoIP Country Edition: };
- fi
- fi
- done
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement