nexporter lets you export & explore Nessus professional scan data.
Nessus is alright when working with a handful of scans. But what if you have 50 different scans and wished to collate them all into a single database? That's what I tried to do here.
The project uses sqlitebiter
and datasette
to transform all the csv
files into a single .sqlite
database and serve them locally in a browser for API integration, respectively.
Clone the repo and run:
git clone https://github.com/queencitycyber/nexporter
cd nexporter
python3 nexporter.py --help
Point nexporter at your Nessus instance and it will export all scans as csv
and transform them into a sqlite
database.
Optionally, pass the --serve
argument and you'll have a local webserver to explore the data.
Connect to your Nessus instance and download all scans in csv
format. Output results in csv
directory:
python3 nexporter.py -t https://127.0.0.1:8834 -u username -p password -o csv
If you don't want to pass credentials on the command line, source your username and password from environment variables:
export NESSUS_USER=USERNAME
export NESSUS_PASS=PASSWORD
python3 nexporter.py -t https://127.0.0.1:8834
If you don't want to export variables, omission on the command line will prompt you for your password:
python3 nexporter.py -t https://127.0.0.1:8834 -u username -o csv
Password:
- Shouts to puzzlepeaches who helped on the hard stuff
- Thanks to Simon Willison for datasette
- Thanks to Tsuyoshi Hombashi for sqlitebiter