Last active
May 17, 2018 16:31
-
-
Save pfcoperez/6c58017d63808afa59a1c80071115076 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# http://xmodulo.com/geographic-location-ip-address-command-line.html | |
for ip in $(traceroute -n 9.9.9.9 | awk '{print $2}' | tail -n +2); do echo "$ip -> $(geoiplookup $ip)"; done | |
for ip in $(traceroute -n www.google.es | awk '{print $2}' | tail -n +2); do curl ipinfo.io/$ip | jq .; echo ""; done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment