Simple network scanner using database as task configuration source and results store.
Steps to set this up and running.
Run yarn install
.
Create .env
file at root of this project.
Place following in with your details
DB_DIALECT=postgres
DB_USER=
DB_HOST=
DB_DATABASE=networkscanner
DB_PASSWORD=
DB_PORT=5432
USE_TOR=false
SCAN_DELAY_MS=50
API_PORT=1234
Run process once to create db and tables via node network-scanner.js
Define ports to scan at ports
table. Use enabled to toggle will it be scanned.
Define scan tasks at scans
table like so. Finished false, process updates it as true when scanned.
Run the app to see some magic.
Basic API is listening by default at: http://localhost:1234/
API documentation available here: http://localhost:1234/api-docs
MIT