Pentest Tools

Published on February 10th, 2016 📆 | 5479 Views ⚑


AutoNessus — Script To Communicate With Nessus API

text to speech

AutoNessus is a script that communicates only with the Nessus API. The main goal is to help with automating scans. We can easily list all the scans, all policies, start, stop, pause, and resume a scan depending on the flag issued with script.

For automating the start or pause os scans it help to create a cron job/scheduled task depend on that whether the client is having a desired testing window or not.
It is free to use and we can manipulate or modify its code also.
It requires python version 2.x and "requests" module to be installed. We can found the installation link here:
Start & Help:
python -h
It will run the help menu and display a list of options.
[adsense size='1']
This script authenticates to the Nessus server when supplying any other flag than -h. Correct URL and credentials must be placed on lines 52-56 of the script.
It List all scans and scan IDs (scan IDs to be used with other flags)
python -l
If we want Start scan 42
python -sS 42
If we want Pause scan 42
python autoNessus --pause 42
You have to add 'completed' to the list on line 272 if you would like to start an already completed scan. It ensure that scans would not re-run once completed.
We thank to Stephen Haywood for writing the example script that some of the functionality for this tool used. The example script can be found here:
[adsense size='4']
It is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. It is distributed WITHOUT ANY WARRANTY in the hope that it will be useful.
[adsense size='3']

Comments are closed.