From 2842f9cc4044811bc050a98f3d572e74952dad44 Mon Sep 17 00:00:00 2001 From: bauthard <8293321+bauthard@users.noreply.github.com> Date: Mon, 22 Jun 2020 13:17:16 +0530 Subject: [PATCH] Create asn2cidr adding helper script for asn2cidr --- scripts/asn2cidr | 4 ++++ 1 file changed, 4 insertions(+) create mode 100755 scripts/asn2cidr diff --git a/scripts/asn2cidr b/scripts/asn2cidr new file mode 100755 index 0000000..22a4206 --- /dev/null +++ b/scripts/asn2cidr @@ -0,0 +1,4 @@ +# 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]+" \ No newline at end of file