1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Unique IP Addresses

Discussion in 'Black Hat SEO' started by DTNicoll, Jul 23, 2012.

  1. DTNicoll

    DTNicoll Newbie

    Joined:
    Jul 23, 2012
    Messages:
    1
    Likes Received:
    0
    I don't suppose anyone has/knows of a tool that will scrape IP addresses for multiple URLs and export to CSV?
     
  2. sockpuppet

    sockpuppet Junior Member

    Joined:
    Nov 7, 2011
    Messages:
    155
    Likes Received:
    145
    you mean a dns lookup for urls?

    i have a bash script that does dns lookups for domains, so you have to trim your urls down to the domain
    Code:
    #!/bin/bash
    while read line
    do
    	value=0
    	value=`host $line`
    	value=${value// /_}
    	ips=""	
    	for result in $value
    	do		
    		ip=`expr "$result" : '.*has_address_\(.*\)$' `
    		if [ $ip ]; then
    			ips="$ips$ip;"
    		fi
    	done
    	echo "$line;$ips"
    done