Created
March 16, 2023 21:56
-
-
Save protoEvangelion/9741218178646bcd4d641a0f9714660a to your computer and use it in GitHub Desktop.
Traceroute geolite2
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
traceroute npmjs.com | awk '{print $3}' | grep -oE '[0-9]+\.[0-9]+\.[0-9]+\.[0-9]+' | while read p; do u=$(mmdblookup --file ./GeoLite2-City.mmdb --ip "$p" country names en | awk -F'"' '{print $2}'); echo "$p, $u"; done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment