Skip to content

Latest commit

 

History

History
42 lines (35 loc) · 1017 Bytes

README.md

File metadata and controls

42 lines (35 loc) · 1017 Bytes

ipUtil

Get information about IP addresses

Requirements

To run this program, you need the following:

  • nmap
  • ipinfo API key
  1. Create your API key from ipinfo.io.
  2. 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"

Usage

iputil <ip address> [options]

Options

  • -n: Use nmap for scanning.
  • -m: Use mcstatus for mc server.
  • -s: Use internetdb (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.

Example

iputil 192.168.1.1 -n --top-ports 3000
iputil 192.168.1.1 -m

This command will run nmap on the IP address 192.168.1.1 with --top-ports 3000.