NesTrace

NesTrace, available herearrow-up-right, queries Nessus via its REST API and identifies all scans in which specified hosts (domain or IP) were analyzed.

The script logs into Nessus, enumerates all scans, inspects their hosts, and generates a CSV report showing where each asset appears.

Installation

pip install -r requirements.txt

Run the script

Usage

python3 nestrace.py -n https://nessus.company.local:8834 -i assets.csv -o results.csv

Argument

Description

Required

-n

Nessus base URL

-i

Input CSV file

-o

Output CSV file (default: results.csv)

After launching the script, you will be prompted for:

Username:
Password:

The script authenticates via:

POST /session

and uses the returned API token for further requests.

Input CSV file

Output CSV file

Last updated