httpx/scripts/asn2cidr
bauthard 2842f9cc40 Create asn2cidr
adding helper script for asn2cidr
2020-06-22 13:17:16 +05:30

4 lines
182 B
Plaintext
Executable File

# Source:- https://hackertarget.com/as-ip-lookup
# Use ./asn2cidr AS1449 or bash asn2cidr AS1449
curl -s https://api.hackertarget.com/aslookup/?q=$1 | grep -Eo "([0-9.]+){4}/[0-9]+"