
_ _ _ _
(_) | (_) | |
_ __ ___ ___ ___ _ _ ___ ______ __ _ _ __ _ ______ ___| |_ ___ _ __ | |_
| '_ \ / _ / __/ __| | | / __|______/ _` | '_ \| |______/ __| | |/ _ | '_ \| __|
| | | | __\__ \__ | |_| \__ \ | (_| | |_) | | | (__| | | __| | | | |_
|_| |_|\___|___|___/\__,_|___/ \__,_| .__/|_| \___|_|_|\___|_| |_|\__|
| |
|_|
NodeJS based Nessus Scan API client
Usage
The client's Run method returns a promise so it must either be awaited or have a chained series of thens.
Once the promise resolves you'll get back an array of objects with the scan's name and raw JSON scan results.
let a = new NessusApiClient('http://localhost:3000/', '', '', false);
a.Run()
.then(function(response) {
let firstScanObject = response[0];
})
.catch(function(error) {
console.log(error);
});
OR
let a = new NessusApiClient('http://localhost:3000/', '', '', false),
scans = await a.Run(),
firstScanObject = scans[0];