From 90f4814087303f94c72a4bbab4574d9a7379a303 Mon Sep 17 00:00:00 2001 From: skyper <5938498+SkyperTHC@users.noreply.github.com> Date: Thu, 3 Aug 2023 08:48:30 +0100 Subject: [PATCH] Update README.md --- README.md | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/README.md b/README.md index 6e945e3..68c1ab8 100644 --- a/README.md +++ b/README.md @@ -513,6 +513,17 @@ curl http://ip-api.com/8.8.8.8 curl https://cli.fyi/8.8.8.8 ``` +Get ASN information by IP address: + +```sh +asn() { + [[ -n $1 ]] && { echo -e "begin\nverbose\n${1}\nend"|netcat whois.cymru.com 43| tail -n +2; return; } + (echo -e 'begin\nverbose';cat -;echo end)|netcat whois.cymru.com 43|tail -n +2 +} +asn 1.1.1.1 # Single IP Lookup +cat IPS.txt | asn # Bulk Lookup +``` + Check if TOR is working: ```sh