FREE
IP2Location Nmap Script
The IP2Location Nmap Script provides a fast lookup of country, region, city, latitude, longitude, ZIP code, time zone, ISP, domain name, connection type, IDD code, area code, weather station code, station name, mcc, mnc, mobile brand, elevation, and usage type from IP address by using IP2Location database with IP2Location Lua Package.
Pre-requisites
- Nmap 7.70 and above
- ip2location.lua from IP2Location Lua Package
- IP2Location Commercial or LITE Database.
Installation
- Follow the steps in the README.MD in the GitHub repository.
-
Get the geolocation information as simple as using the following command:
nmap --script ip-geolocation-ip2location <target> --script-args ip-geolocation-ip2location.ip2location_db=<database_path>
Replace the<target>
with the IP address and the<database_path>
with the file path of the database.
Note: Windows user need to replace the single backslash(\) with the double backslashes (\\) in the file path to make sure that the file path is interpreted correctly by Nmap. - Screenshot of the output: