Skip to content

Simply python script to automate nmap.

Notifications You must be signed in to change notification settings

secastles/netscanner

Repository files navigation

netscanner

A simple python script to:

  • Automate scanning of local network with nmap
  • Store found hosts/mac addresses in a SQLite database
  • Send email notification when new hosts are found

Prerequisites

nmap and python-nmap

Configuration

Rename settings_example.py to settings.py.

Must be run using sudo in order to provide necessary rights to nmap.

Example running from console (verbose logging on by default): sudo python3 netscanner.py

Example running in cron (every 15 minutes):

sudo crontab -e

*/15 * * * * /home/netscanner/venv/bin/python3 /home/netscanner/netscanner.py

SQLite database is created and stored in same folder as the script.

About

Simply python script to automate nmap.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages