Skip to main content

IP lookup tool to avoid manual check.

Project description

Nipher: a Python script to make IP Lookups

Nipher is a simple script that make multiple IP lookups to avoid to make it manually. It suports both IPV4 and IPV6.

Installation

Nipher requires Python 3+.

Use pip to install the package from PyPI:

pip install Nipher

or:

pip3 install Nipher

Usage

usage: nipher [-h] [--ip IP [IP ...]] [--ipfile IPFILE] [--json] [-o OUTPUT] [-v]

optional arguments:
  -h, --help            show this help message and exit
  --ip IP [IP ...]      List of IPs that will be resolved.
  --ipfile IPFILE       File that contains the list of IPs that will be resolved.
  --json                Saves the lookup to a .json file on the current directory.
  -o OUTPUT, --output OUTPUT
                        The path where to save the .json files.
  -v, --verbose         Force complete output in the terminal.

-h = Show the help message.

--ip = Single or multiple IPs to make lookup. Example: --ip 47.162.238.182 218.96.78.50 26.121.88.46

--ipfile = File that contains multiple IPs to make lookup. Example: --ipfile /path/to/myfile.txt

--json = Param that tells the script to save the lookup result in a .json file in the current directory. Example file.

-o/--output = Custom path where the script should save the .json file. Example: -o /my/custom/path

-v/--verbose = Param that tells the script to force a complete verbose, showing all the informations of all IPs. Warning: can increase total lookup time with much IPs.

Additional Information

Nipher uses the Ip-api API that have some limitations, such as 45 lookups per minute. It respects the ratelimits of the API, so you don't need to worry about exploding the API and getting IP banned or think about bypass the ratelimits. Anyway, it is planned that in the future Nipher will support proxies.

Furthermore, Nipher works in a linear sequence, no multithreaded (its planned to be implemented soon too). This way, it can lookups approximately 200 IPs in 3 minutes (can change by the API response time).

TODO

  • Implement proxy usage
  • Implement multithreading
  • Implement better information logging
  • Implement API fallback to avoid Ip-api API ratelimits

Example videos

Lookup with IP file and verbose: asciicast

Lookup with IP list: asciicast

Lookup with IP file without verbose: asciicast

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

Nipher-0.1.3.tar.gz (5.7 kB view details)

Uploaded Source

File details

Details for the file Nipher-0.1.3.tar.gz.

File metadata

  • Download URL: Nipher-0.1.3.tar.gz
  • Upload date:
  • Size: 5.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/4.3.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.61.0 CPython/3.9.5

File hashes

Hashes for Nipher-0.1.3.tar.gz
Algorithm Hash digest
SHA256 fe2e9aac389a59bbbfc369c6e95673792adf2cf8d4a0e5f8e513ad43848511f0
MD5 2be815735036f230e12a783712c0541f
BLAKE2b-256 82f11cc3130e467650930ffb90494ff875ea4f0669b2e48b7f9ec32ff896fb8a

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page