Skip to content

fix invalid target in scans#64

Open
FiveOFive wants to merge 1 commit intojas-:masterfrom
FiveOFive:fix-invalid-target
Open

fix invalid target in scans#64
FiveOFive wants to merge 1 commit intojas-:masterfrom
FiveOFive:fix-invalid-target

Conversation

@FiveOFive
Copy link

An extra space is causing an invalid target in every scan result. This fix is to remove the extra space from the args passed to nmap.

Details to reproduce:
Run a scan such as the code below:

const opts = {
  range: ['scanme.nmap.org']
};

nmap.scan(opts, function(err, report) {
  console.log(JSON.stringify(report, null, 2));
});

The output, contains an invalid target entry with empty specification.

"target": [
  {
    "item": {
        "specification": "",
        "status": "skipped",
        "reason": "invalid"
      }
    }
]

And there are two spaces in the args between the ports and the host

"args": "nmap --host-timeout=120s -T4 -oX - -p1-1024  scanme.nmap.org",

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant