https://github.com/jas-/libzmap
node.js bindings for zmap network scanning tool
https://github.com/jas-/libzmap
Last synced: about 2 months ago
JSON representation
node.js bindings for zmap network scanning tool
- Host: GitHub
- URL: https://github.com/jas-/libzmap
- Owner: jas-
- License: apache-2.0
- Created: 2014-08-18T14:01:00.000Z (almost 11 years ago)
- Default Branch: master
- Last Pushed: 2014-09-29T18:28:55.000Z (over 10 years ago)
- Last Synced: 2025-01-28T14:47:08.524Z (4 months ago)
- Language: C
- Size: 1.01 MB
- Stars: 3
- Watchers: 4
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# libzmap
[node.js](http://nodejs.org) bindings for the [zmap](https://zmap.io/) network scanning utility.# installation
Some libraries are necessary for zmap to compile correctly.
Review the [instructions](https://github.com/jas-/libzmap/wiki/Installation) for your OS.Setup your LD_LIBRARY_PATH to accomidate the linking
```sh
%> export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:`pwd`/build/Release
```Now install this module with `npm`
```sh
%> npm install libzmap
```Example usage
```javascript
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);
});
```