Published on April 4th, 2016 | by NJ Ouchn0
AutoNessus – Python Script to Communicate with Nessus API
AutoNessus communicates with the Nessus API in an attempt to help with automating scans. Depending on the flag issued with the script, you can list all scans, list all policies, start, stop, pause, and resume a scan. It may be helpful to create a cron job/scheduled task for automating the start or pause of scans if the client has a desired testing window.
You need to modify these lines in the script with your information
# Specify credentials for Nessus and initialize vars url = 'https://localhost:8834' verify = False token = '' username = 'xxxxx' password = 'xxxxx'