local-scan-fing

1.1.2 • Public • Published

local-scan-fing

Prerequisites

1- Download and install Fing CLI

2- (Optional) Run without root

You'll also need superuser privileges to run fing, you have have a few options but be sure to understand what you're doing before you do it:

  • Create /etc/sudoers.d/fing to allow user to run fing as root without a password.

    <<user>> ALL=(ALL) NOPASSWD: /usr/bin/fing

    Use $ which fing to know the location of the executable.

  • Set the SUID bit on the fing bin:

    sudo chmod u+s /usr/bin/fing

Usage

var scan = require('./index')

scan('192.168.0.1/24',function (hosts) {
  console.log(hosts);
})

Result sample

[ { Name: '',
    Hostname: '',
    HardwareAddress: '',
    Address: '192.168.0.246',
    Vendor: '',
    State: 'up',
    LastChangeTime: '' } ]

Readme

Keywords

Package Sidebar

Install

npm i local-scan-fing

Weekly Downloads

1

Version

1.1.2

License

MIT

Unpacked Size

20.3 kB

Total Files

7

Last publish

Collaborators

  • bhacaz