Display the fetched whois data.
(data)
| 96 | |
| 97 | |
| 98 | def display_whois_info(data): |
| 99 | """Display the fetched whois data.""" |
| 100 | if not data: |
| 101 | return |
| 102 | |
| 103 | print(f"[!] Country: {data.get('country', 'N/A')}") |
| 104 | print(f"[!] Country Code: {data.get('countryCode', 'N/A')}") |
| 105 | print(f"[!] Region: {data.get('region', 'N/A')}") |
| 106 | print(f"[!] Region Name: {data.get('regionName', 'N/A')}") |
| 107 | print(f"[!] City: {data.get('city', 'N/A')}") |
| 108 | print(f"[!] Zip Code: {data.get('zip', 'N/A')}") |
| 109 | print(f"[!] Latitude: {data.get('lat', 'N/A')}") |
| 110 | print(f"[!] Longitude: {data.get('lon', 'N/A')}") |
| 111 | print(f"[!] Time Zone: {data.get('timezone', 'N/A')}") |
| 112 | print(f"[!] ISP: {data.get('isp', 'N/A')}") |
| 113 | print(f"[!] Organization: {data.get('org', 'N/A')}") |
| 114 | print(f"[!] AS: {data.get('as', 'N/A')}") |
| 115 | |
| 116 | |
| 117 | def is_excluded_ip(ip): |