File: examples/xml.js

Recommend this page to a friend!
  Classes of Jason Gerfen   Node nmap   examples/xml.js   Download  
File: examples/xml.js
Role: Example script
Content type: text/plain
Description: Example script
Class: Node nmap
Scan a network for computers using nmap
Author: By
Last change: Update of examples/xml.js
Date: 2 years ago
Size: 375 bytes


Class file image Download
/*! * libnmap * Copyright(c) 2013-2019 Jason Gerfen <> * License: MIT */ 'use strict' const nmap = require('../'); const opts = { json: false, range: ['', ''] }; nmap.scan(opts, function(err, report) { if (err) throw new Error(err); for (let item in report) { console.log(report[item], null, 2); } });