Created
March 15, 2015 22:33
-
-
Save fariszacina/eed60dfbbcf91106ec98 to your computer and use it in GitHub Desktop.
Node NMAP scan with additional settings
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| var scanner = require('node-libnmap') | |
| var opts = { | |
| range: ['127.0.0.1', '192.168.0.1/24'], | |
| nmap: '/usr/local/bin/nmap', | |
| scripts: '/usr/local/bin/nmap/scripts/', | |
| flags: '-p 8080 -oG -' | |
| } | |
| scanner.nmap('scan', opts, function(err, report) { | |
| if (err) console.error(err) | |
| report.forEach(function(item){ | |
| console.log(item[0]) | |
| }) | |
| }) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment