Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

error while scanning #22

Open
dotob opened this issue Oct 14, 2016 · 4 comments
Open

error while scanning #22

dotob opened this issue Oct 14, 2016 · 4 comments
Assignees
Labels

Comments

@dotob
Copy link

dotob commented Oct 14, 2016

i get:
Unable to find nmap-services! Resorting to /etc/services
Cannot find nmap-payloads. UDP payloads are disabled.

here is my code:

            let ipaddressRange = "192.168.0.0/24";
            var scan = new nmap.nodenmap.NmapScan(ipaddressRange, '-p 5432 --open');

            scan.on('complete', function (data: any[]) {
                let hosts = _.map(data, (d) => { return { hostname: d.hostname, ip: d.ip } });
                resolve(hosts);
            });

            scan.on('error', function (error) {
                console.error(error);
                reject(error);
            });

            scan.startScan();
@harryhorton
Copy link
Owner

harryhorton commented Oct 27, 2016

I got a similar error here. Try running this command in NMAP outside of the library. It seems to fail there as well.

Apologies for the wait.

@harryhorton harryhorton self-assigned this Oct 27, 2016
@dotob
Copy link
Author

dotob commented Oct 27, 2016

hi @Johnhhorton,

yes nmap logs the same message but its not an error. On the command line it works, meaning i get the desired result. It seems to be a kind of warning that can be ignored, at least for that command. perhaps node-nmap is to strict with output of nmap.

thanks for your reply.

dotob

@harryhorton harryhorton added bug and removed invalid labels Oct 27, 2016
@harryhorton
Copy link
Owner

@dotob Not sure if you're still using this library, but try the latest version of NMAP as well as this module (note the changelog for a simple breaking change in implementation.

@sdn90
Copy link

sdn90 commented Oct 27, 2018

I got this error when placing the script in the same directory as the nmap GUI

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants