[[email protected] xxx]$ cat ip138.shcat ip.txt | while read mdoip= ' echo $m | awk ' {print $2} ' dizhi= ' curl -s ' http://ip138.com/ ips138.asp?ip=${ip}&action=2 " |grep <ul class=" ul1 "><li> ' |awk -f ' [ ><]+ ' ' {print $5} ' echo -e $m ${dizhi} >> ip.dz.txtdone[[email protected] xxx]$ head ip.txt 598701 11.207.128.229 98622 12.92.173.188 80462 15.208.229.76 31146 14.37.157.78 30988 11.41.24.236 28905 12.254.131.172 25674 23.156.196.236 &NBSP;24980&NBSP;22.207.236.213[[EMAIL&NBSP;PROTECTED]&NBSP;XXX]$[[EMAIL&NBSP;PROTECTED]&NBSP;XXX] $sh ip138.sh[[email protected] xxx]$ cat ip.dz.txt 598701 11.207.128.229 Main data: United States &NBSP;&NBSP;98622&NBsp;12.92.173.188 main data: US 80462 15.208.229.76 main data: USA HP 31146 14.37.157.78 main data: Korea 30988 11.41.24.236 Main data: United States 28905 12.254.131.172 main data: USA 25674 23.156.196.236 main data: Romania 24980 22.207.236.213 main data: United States [[email protected] xxx]$
This article from the "Struggle Bar" blog, reproduced please contact the author!
Bulk Query IP address attribution