Giter Club home page Giter Club logo

networkscan's Introduction

networkscan

Networkscan is a couple of python scripts to scan your local network and gather information about the devices on your network. It will graph ping times for devices, scan for a few common open ports and look up vendor ids from MAC addresses.

I use it on a Raspberry Pi.

Screenshots

list view detail view

Setup

Set up a webserver on your raspberry pi and create a folder in the web root folder called "networkscan". On the Raspberry Pi it will be '/var/www/html/networkscan/'

Put all the files from this repository in there.

Then edit config.py if you're running on a Raspberry Pi and using the default folder above, you don't need to change any of the paths. The main thing you'll need to change in here is ip_range. Thats usually the first 3 digits of your ip address.

Then give the scripts execute permissions with

chmod +x scan_devices.py

and

chmod +x build_html.py

Then run scan_devices.py if if it runs successfully, you should see index.html and a bunch of html files in the hosts folder.

Then you can set the script to run automatically.

Edit your crontab with

sudo crontab -e

Add the following line.

0,5,10,15,20,25,30,35,40,45,50,55 * * * * /var/www/html/networkscan/scan_devices.py >/tmp/networkscan.log 2>&1

That tells your Raspberry Pi to run the script every 5 minutes.

If everything is working as it should be you should be able to go to http://[your raspberry pi's ip or hostname]/networkscan and see a bunch of hosts with graphs.

I hope this is useful to you.

networkscan's People

Contributors

jacobwhite avatar

Stargazers

 avatar

Watchers

 avatar

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.