harryhorton / node-nmap

NPM package for interfacing with local NMAP installation
MIT License
66 stars 26 forks source link

NMAP not found at command location: nmap #33

Open ameyrkale opened 6 years ago

ameyrkale commented 6 years ago

I am using nmap on Onion Omega 2 Linux OS, I have installed nmap globally, when I use following program

const nmap = require('node-nmap'); nmap.nmapLocation = 'nmap'; //default let quickscan = new nmap.QuickScan('127.0.0.1 google.com'); console.log(quickscan);

it works but when I try to run NmapScan I am getting this error when I try running following program, "NMAP not found at command location: nmap"

var nmapscan = new nmap.NmapScan('127.0.0.1 google.com', '-sn');

nmapscan.on('complete',function(data){ console.log(data); }); nmapscan.on('error', function(error){ console.log(error); });

nmapscan.startScan();

Appreciate any help and inputs

cojack commented 5 years ago

@ameyrkale is nmap available in $PATH?

jedijamez567 commented 5 years ago

I'm having the same issue. I'm running into this error on Cloud9, my windows machine, my mac and on AWS Lambda..... LMK if you figure it out :)

rcodina7 commented 2 years ago

same here

cojack commented 2 years ago

@rcodina7 Linux distribution requires to have nmap, it's not anyhow related to the package.