Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
PHP wrapper functions for the Nessus API
PHP
branch: master
Failed to load latest commit information.
nessus.php
readme.md

readme.md

WARNING

This repository is no longer maintained. You should be using this one instead https://github.com/leonjza/PHPNessusNG

php-nessus-api

Information:

The Nessus Vulnerability Scanner provides an API interface via XMLRPC. See: http://static.tenable.com/documentation/nessus_5.0_XMLRPC_protocol_guide.pdf

The latest version of this wrapper has only been tested against a Nessus 5.2.1 scanner.

This class is simply a set of functions implemented using PHP-Curl to enable querying of this API using a function and then receiving an array with the applicable data.

Requires:

  • php
  • php-curl
  • php-cli if you plan on running scripts from the cli

Usage example:

Simply include nessus.php in your script. Then, create a new NessusInterface Object, like:

try {

    $api = new NessusInterface(
        $__url,
        $__port,
        $__username,
        $__password
    );

} catch(Exception $e) {

    preprint($e->getMessage());
}

Do some API calls. Most methods return some usefull information that should be inspected in your usage case.

try {

    $api->feed();
    $api->reportList();
    $api->policyList();
    $api->scanList();

} catch(Exception $e) {

    preprint($e->getMessage());
}

Current Available Methods

[1] => reportList
[2] => feed
[3] => policyList
[4] => scanList
[5] => templateList
[6] => newScanTemplate
[7] => scanPause
[8] => scanResume
[9] => scanStop
[10] => templateDelete
[11] => templateLaunch
[12] => serverLoad

Known issues:

  • There are probably bugs about.
  • Not all API call have been implemented. Coming soon(tm) as I need them.
  • Probably lack of proper documentation too.

Contact

Twitter: @leonjza

Something went wrong with that request. Please try again.