1.3.0 • Published 4 years ago

nessus-api-helper v1.3.0

Weekly downloads
1
License
ISC
Repository
-
Last release
4 years ago

Nessus API Helper

A simple module to help make requests to the Nessus API.

Usage

Create a client instance:

  const nessus = new Nessus({
    host: 'localhost',
    user: 'username',
    pass: 'password'
  })

Authenticate:

  await nessus.authenticate()

Make requests:

  const scanData = await nessus.getScanById(<scanId>)

Constructor Config

keydescriptiondefault
hostHostname or IP of Nessus serverlocalhost
portNessus port8834
protocolhttp or httpshttps
userNessus username
passwordNessus password

Methods

.authenticate()

Uses the user and password supplied in the constructor to set auth headers for subsequent requests.

.getFolders()

Returns the folder list

.getScans(queryObject)

Returns a list of scans Optional query object can be used to add the query parameters folder_id and/or last_modification_date

.getScanById(scanId, historyId)

Returns scan data for the given scan id

.getScanHost(scanId, hostId, historyId)

Returns host data for the the given scan and host id

.getScanHostPlugin(scanId, hostId, pluginId, historyId)

Returns the plugin data for the given scan, host and plugin id

.getScanHostCompliance(scanId, hostId, complianceId, historyId)

Returns the compliance plugin data for the given scan, host and compliance id

1.2.0

4 years ago

1.3.0

4 years ago

1.1.0

4 years ago

1.0.0

5 years ago