jas- / libzmap

node.js bindings for zmap network scanning tool

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

libzmap

node.js bindings for the zmap network scanning utility.

installation

Some libraries are necessary for zmap to compile correctly. Review the instructions for your OS.

Setup your LD_LIBRARY_PATH to accomidate the linking

%> export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:`pwd`/build/Release

Now install this module with npm

%> npm install libzmap

Example usage

var lib = require('../build/Release/zmap.node')
  , opts = {
      "iface": 'eth0',
      "ipaddr": '10.0.2.15-10.0.2.18',
      "mac": '52:54:00:12:34:56',
      "shards": 2,
      "shardotal": 4,
			"threads": 10,
      "range": '10.0.2.0/24',
      "blacklist": '/path/to/blacklist.conf',
      "whitelist": '/path/to/whitelist.conf'
    };

lib.zmap(opts, function(err, result) {
  console.log(err);
  console.log(result);
});

About

node.js bindings for zmap network scanning tool

License:Apache License 2.0


Languages

Language:C 88.8%Language:C++ 7.0%Language:Python 1.4%Language:Go 1.0%Language:JavaScript 0.6%Language:Shell 0.6%Language:Objective-C 0.5%