Advertisement
josacar

anon ip tester and country

Nov 29th, 2011
65
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #!/bin/bash
  2.  
  3. IP=IP
  4. URL=URL
  5.  
  6. for i in `cat ips.txt`; do
  7.         RET=`curl -m 2 -s -x ${i} ${URL}`
  8.  
  9.         if [ $? -eq 0 ]; then
  10.                 GOOD=`echo $RET | grep -c ${IP}`;
  11.                 if [ $GOOD -eq 0 ]; then
  12.                         echo -n "${i}  ";
  13.                         GEO=`geoiplookup ${i%:*}`;
  14.                         echo ${GEO#GeoIP Country Edition: };
  15.                 fi
  16.         fi
  17. done
  18.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement