Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/leonjza/php-nessus-api

PHP wrapper functions for the Nessus API
https://github.com/leonjza/php-nessus-api

Last synced: about 2 months ago
JSON representation

PHP wrapper functions for the Nessus API

Awesome Lists containing this project

README

        

#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:

```php
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.

```php
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