1.0.5 • Published 6 years ago

netdiscover-node v1.0.5

Weekly downloads
2
License
MIT
Repository
github
Last release
6 years ago

netdiscover-node

A simple nodejs wrapper around the netdiscover tool

Installation

First ensure netdiscover is installed on your system.

Then install via npm

npm install netdiscover-node

Usage

One Time Scan

const netdiscover = require('netdiscover-node')

netdiscover.scan(options).then((hosts) => {
  console.log(hosts)
  // [{ ip: '', mac: '', count: '', len: '', vendor: ''}, ...]
})

Persistent Scan

const netdiscover = require('netdiscover-node')

netdiscover.on('newHost', (host) => {
  console.log(host)
  // { ip: '', mac: '', count: '', len: '', vendor: ''}
})
netdiscover.start(options)

Options

OptionCLI commandData TypeAbout
interface-istringWhich device to scan
range-rstringA range of ip addresses to scan
passive-pbooleanWhether or not to scan in passive mode
fastmode-fbooleanWhether or not to scan in fast mode

Read more about what these mean here

1.0.5

6 years ago

1.0.4

6 years ago

1.0.2

6 years ago

1.0.1

6 years ago