This tool allows you to search for information about an IP address using one or more CSV databases containing IP ranges and their associated data.
Python 3.x
- Clone this repository to your local machine.
- Additionally, if you want to use more databases, you can download them from here. These databases are taken from db-ip and can be used as an alternative to the default databases provided. To use these databases, simply add them to the dbs list in the config.ini file.
- Open a terminal window and navigate to the directory where you cloned the repository.
- Run the
app.py
file by enteringpython app.py
in the terminal. - Follow the prompts to search for an IP address or to check a list of IP addresses from a CSV file.
$ python app.py
This program will overwrite the data in `output.csv` if exists!
Be careful and backup the data there.
Press Enter to continue, "E" to exit:
1 For search an ip.
2 For checking from a csv file
: 1
Enter the IP: 8.8.8.8
8.8.8.8
Google LLC United States Mountain View AS15169 Google LLC
Data written to output.csv
Press Enter to continue, "E" to exit:
To add a custom CSV database, simply create a new file in the dbs
directory and add the IP ranges and their associated data in the following format:
startIP,endIP,data1,data2,data3...
Note that the startIP
and endIP
should be in dotted-decimal notation (e.g. 192.168.0.0
). Once you have created the CSV file, simply add the filename (without the .csv
extension) to the dbs
setting in the config.ini
file, separated by commas if there are multiple files.