Code Monkey home page Code Monkey logo

network-scanner's Introduction

network-scanner

A nodejs module which determines the status of devices on the network

Installation

Linux

In your terminal, install arp-scan:

sudo apt-get install arp-scan   

macOS

In your terminal, install arp-scan:

brew install arp-scan   

Usage

const scanner = require('local-network-scanner');
scanner.scan({arguments: ["-I", "en0"]}, devices => {
	console.log(devices);
});

Example

To run the example use:

node example.js

Scan result

  [
   {
      "ip":"10.0.2.2",
      "mac":"52:54:00:12:35:02",
      "name":"Raspberry Pi Foundation"
   },
   {
      "ip":"10.0.2.3",
      "mac":"52:54:00:12:35:03",
      "name":"VMware, Inc."
   },
   {
      "ip":"10.0.2.4",
      "mac":"52:54:00:12:35:04",
      "name":"(Unknown)"
   }
]

network-scanner's People

Contributors

koloo91 avatar hadi-codes avatar acidtib avatar kadoshita avatar

Stargazers

axi92 avatar  avatar Koen van Gilst avatar Jacob Selg avatar Stephen (Sunday) avatar

Watchers

 avatar

network-scanner's Issues

Define interface

network-scanner uses my docker0 interface to scan and not my Ethernet interface.
Can you add a parameter to define an interface?

In arp-scan it would be this:

--interface=<s> or -I <s> Use network interface <s>.
			If this option is not specified, arp-scan will search
			the system interface list for the lowest numbered,
			configured up interface (excluding loopback).
			The interface specified must support ARP.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.