Created
February 3, 2017 14:05
-
-
Save dxflatline/f46fc0488ded52c6ac3cc306f9922f86 to your computer and use it in GitHub Desktop.
IP to ASN to Range List
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
whois 1.2.3.4 | grep origin | awk -F: '{print $2}' | tr -d '[:space:]' | xargs -i whois -h whois.ripe.net -T route {} -i origin | egrep "route: " | awk '{print $NF}' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment