Recommend this page to a friend! |
Classes of Jason Gerfen | > | Node nmap | > | examples/xml.js | > | Download |
|
|
![]() |
/*! * libnmap * Copyright(c) 2013-2019 Jason Gerfen <jason.gerfen@gmail.com> * License: MIT */ 'use strict' const nmap = require('../'); const opts = { json: false, range: ['scanme.nmap.org', '192.168.0.0/26'] }; nmap.scan(opts, function(err, report) { if (err) throw new Error(err); for (let item in report) { console.log(report[item], null, 2); } }); |