Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to install and run the Nmap program through Cygwin in Windows?

I'm trying to get Cygwin to show what ports my laptop has open but when I try to run it, it says the command isn't found.

This is the command I'm trying: nmap -v -A <<IP address>>

like image 954
Adam Dewhurst Avatar asked Feb 26 '16 15:02

Adam Dewhurst


People also ask

How do I run Nmap on Windows?

Command-line Zip Binaries No graphical interface is included, so you need to run nmap.exe from a DOS/command window. Or you can download and install a superior command shell such as those included with the free Cygwin system available from https://www.cygwin.com .


1 Answers

This blog post has some useful info about how to get this working. Have copied it below in case it ever goes away:

  1. Download nmap
  2. Install nmap “self-installer” .exe and install Npcap when asked by the Nmap installer.
  3. Note: An alternative of adding the path to the ~/.bashrc file is suggested in the comments. Cygwin: add to ~/.bash_profile: alias nmap="/cygdrive/c/Program\ Files\ \(x86\)/Nmap/nmap.exe". Note the \ and \( are vital for Cygwin shell to interpret the command correctly.
  4. Open a new Cygwin window to start using nmap
like image 135
Steve Chambers Avatar answered Sep 28 '22 16:09

Steve Chambers