1.1.2 • Published 6 years ago

local-scan-fing v1.1.2

Weekly downloads
-
License
MIT
Repository
-
Last release
6 years ago

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: '' } ]