From 16d9a4708e8c423614e7a8c0395afa819dc6a4d4 Mon Sep 17 00:00:00 2001 From: Valerio Capello Date: Thu, 15 Apr 2021 11:00:35 +0200 Subject: [PATCH] Add files via upload - ipcheck: Improved whois filtering --- ipcheck.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ipcheck.sh b/ipcheck.sh index 6e53cea..056e5d2 100644 --- a/ipcheck.sh +++ b/ipcheck.sh @@ -1,7 +1,7 @@ #!/bin/bash # IPcheck -xver='r2021-02-19 fr2020-09-12'; +xver='r2021-04-15 fr2020-09-12'; # by Valerio Capello - http://labs.geody.com/ - License: GPL v3.0 @@ -798,7 +798,7 @@ host $ipx if [ $whoisip -ge 1 ]; then echo; echo "Who is:" case $whoisip in -1) whois $ipx | grep -iE "^netrange:|^cidr:|^inetnum:|^route:|^netname:|^orgname:|^organisation:|^org-name:|^custname:|^owner:|^country:|^orgabuseemail:|^e-mail:|^descr:|^remarks:" ;; +1) whois $ipx | grep -iE "^\s*netrange:|^\s*netblock:|^\s*cidr:|^\s*inetnum:|^\s*route:|^\s*\s*netname:|^\s*orgname:|^\s*organisation:|^\s*organization:|^\s*org-name:|^\s*custname:|^\s*owner:|^\s*country:|^\s*orgabuseemail:|^\s*e-mail:|^\s*descr:|^\s*remarks:" ;; 2) whois $ipx ;; esac fi