Get information about IP addresses
To run this program, you need the following:
nmapipinfoAPI key
- Create your API key from ipinfo.io.
- Set the API key as an environment variable:
- Linux/macOS:
export IPINFO_API_KEY="your_api_key_here"
- Windows:
set IPINFO_API_KEY="your_api_key_here"
- Linux/macOS:
iputil <ip address> [options]-n: Usenmapfor scanning.-m: Usemcstatusfor mc server.-s: Useinternetdb(default option).
When using the -n option, the program will run nmap with the following options:
--top-ports 1000: Scan the top 1000 most common ports.-T4: Set the timing template to level 4 (aggressive).-Pn: Treat all hosts as online; don't ping.
iputil 192.168.1.1 -n --top-ports 3000
iputil 192.168.1.1 -mThis command will run nmap on the IP address 192.168.1.1 with --top-ports 3000.