A tool to retrieve IP Geolocation information powered by ip-api.
git clone https://github.com/maldevel/IPGeoLocation
pip3 install -r requirements.txt --user
If pip3
is missing:
apt-get install python3-setuptools
easy_install3 pip
pip3 install -r requirements.txt
$ ./ip2geolocation.py
usage: ipgeolocation.py [-h] [-m] [-t TARGET] [-T file] [-u User-Agent] [-U file]
[-g] [--noprint] [-v] [--nolog] [-x PROXY] [-X file]
[-e file] [-ec file] [-ex file]
IPGeolocation 2.0.4
--[ Retrieve IP Geolocation information from ip-api.com
--[ Copyright (c) 2015-2016 maldevel (@maldevel)
--[ ip-api.com service will automatically ban any IP addresses doing over 150 requests per minute.
optional arguments:
-h, --help show this help message and exit
-m, --my-ip Get Geolocation info for my IP address.
-t TARGET, --target TARGET
IP Address or Domain to be analyzed.
-T file, --tlist file
A list of IPs/Domains targets, each target in new line.
-u User-Agent, --user-agent User-Agent
Set the User-Agent request header (default: IP2GeoLocation 2.0.3).
-U file, --ulist file
A list of User-Agent strings, each string in new line.
-g Open IP location in Google maps with default browser.
--noprint IPGeolocation will print IP Geolocation info to terminal. It is possible to tell IPGeolocation not to print results to terminal with this option.
-v, --verbose Enable verbose output.
--nolog Do not log any information.
-x PROXY, --proxy PROXY
Set a custom proxy for the request.
-X file, --xlist file
A list of proxies, each on new line.
-e file, --elist file
Export results to csv file.
-ec file, --ecsv file
Export results to csv file and open in default browser.
-ex file, --exml file
Export results to xml file.
./ip2geolocation.py -t x.x.x.x
./ip2geolocation.py -T /path/to/targets.txt
./ip2geolocation.py -U /path/to/user/agent/strings/filename.txt
./ip2geolocation.py -X /path/to/proxies/filename.txt
./ip2geolocation.py -e /path/to/results.csv
> Visit IPGeoLocation Website <