

You will see the following as the result of the command. nmap -script ip-geolocation-ip2location -p80 -script-args ip-geolocation-ip2location.ip2location_db=/myfolder/DB25.BIN The IP address associated with will be used to query the IP2Location BIN file to get its geolocation information.

In this example, we are probing on port 80 to check its status. Run the following command to call Nmap with the IP2Location results. Download your LITE or paid BIN file and copy to whichever folder you like.Download and copy into the /usr/share/nmap/scripts/ folder.Install LuaRocks which we’ll use to install our Lua package.Install Nmap if you don’t already have it.We will show the steps required for Debian Linux.
Ip2location .com how to#
This script uses the IP2Location BIN database files which comes in the free LITE form as well as the commercial form.ĭownload paid BIN files at How to install the IP2Location script in Nmap To enhance the functionality of Nmap with IP2Location, we have created a script to return geolocation information about the Nmap target. It is a valuable tool in the arsenal of a network administrator to probe networks and much more. Nmap (Network Mapper) is a free and open-source network scanner created by Gordon Lyon.
