Skip to content

CaseyKnauss/nmap-log-parse

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

nmap-log-parse

Logs which devices are in your local network and draws graphs

Screenshot:

Screenshot

Setup

  1. add this line to your crontab on your raspberry pi (or other device that is always on):

    */10 * * * * nmap -sn $subnet -oX - >> $outputpath/logs

    or

    */10 * * * * nmap -sn $subnet -oX - | xz >> $outputpath/logs.xz

    if you don't have a lot of space on that device.

    • $subnet is your local network, e.g. '192.168.178.*'
    • $outputpath is the path where you want your log stored
  2. create a config.json file. For the schema see Configuration.ts

    minimal example:

    {
    	"input": "../logs",
    	"macToName": {},
    	"hostToName": {},
    	"logInterval": 10,
    	"ignoreLessThan": 3000,
    	"self": "raspberry-hostname"
    }
  3. Open index.html in a browser. Firefox should directly work, for Chrome you need to open it via a server (like python3 -m http.server) because of security reasons.

About

Logs which devices are in your local network and draws graphs

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages

  • JavaScript 47.9%
  • TypeScript 42.3%
  • HTML 5.8%
  • Makefile 4.0%