Hey Techies! In this blog, I will be showing you quick steps, following which you can install Nmap in Windows command line interface and you can use it just link Kali Linux, inside windows CLI (Command Line Interface). I’m using updated Windows 10, so you can consider this blog as latest one.

Now, I’m definitely not talking about Zenmap here. I know it is available for Windows installation. In this blog we will be setting up Nmap in Windows CLI. The feeling of using Nmap in command line interface id different and it cannot be compared with Zenmap which is a GUI version of Nmap.

Nmap is a popular network scanning tool, which is Open Source and it is used by many information security professionals for scanning Remote and Local networks. Now this tool comes pre-installed in Kali Linux, but it is not necessary that all professionals will be using Kali Linux in daily life. So, having Nmap in windows will be handy and can be used without installing Kali Linux as a secondary operating system.

Steps to get Nmap in Windows CLI:

1. Open your browser and go to Nmap official Website.

2. Now Click on Downloads, you will find it on left side. Image here

Nmap install Screen Shot from my device Dhacker Device 1
Screen Shot from my device

3. Scroll down a little bit and you will find Windows download section, with the heading “Microsoft Windows Binaries“.

4. At the bottom of that section, you will find “command-Line zipfile“. Download this zipfile.

Nmap install Screen Shot from my device Dhacker Device 2
Screen Shot from my device

5. Go to the destination where the zipfile has been downloaded and extract it.

6. Now, double-click on extracted folder. Inside it you will find another folder.

7. Rename that folder to “nmap“.

Nmap install Screen Shot from my device Dhacker Device 3

8. Copy that renamed folder and paste it in location “C:\Program Files“.

Setup variable path for Nmap in Windows (Continue..)

9. Now we have to set variable Path. For that go to “This PC” and on top menu bar click on Computer and go to Properties.

Nmap install Screen Shot from my device Dhacker Device 4
Screen Shot from my device

10. The new system Window will open. Inside it, click on “Advanced System Settings“.

Nmap install Screen Shot from my device Dhacker Device 5
Screen Shot from my device

11. A System Properties dialog box will open. Inside it, go to “Advanced” tab and click on “Environment Variables“.

Nmap install Screen Shot from my device Dhacker Device 6
Screen Shot from my device

12. Another dialog box will appear. Click on “New” inside “User variables” section.

Nmap install Screen Shot from my device Dhacker Device 7
Screen Shot from my device

13. Set Variable Name as “path” and Variable Value as “C:\Program Files\nmap

Nmap varialble setup
Screen Shot from my device

14. Click on “Ok” for every dialog boxes which are open to save it.

15. Now to check that Nmap is successfully installed, open “Run” by pressing Window + R and type “cmd” to open the command prompt.

16. Type command “$nmap -v” and it show nmap version. Scan the test site by typing command “$nmap scanme.nmap.org“.

Nmap commands to check installation
Screen Shot from my device

If you have followed the steps correctly, then you will see the results and now you can use Nmap in Windows command line to scan networks.

I’ll suggest you to read this blog for getting started with Nmap: Nmap top 10 commands

If you come up with any errors, do comment it and I’ll help you.