Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/leonjza/php-nessus-api
- Owner: leonjza
- Archived: true
- Created: 2011-10-24T16:30:12.000Z (almost 13 years ago)
- Default Branch: master
- Last Pushed: 2014-07-08T15:40:16.000Z (about 10 years ago)
- Last Synced: 2024-06-26T12:39:18.801Z (3 months ago)
- Language: PHP
- Homepage:
- Size: 297 KB
- Stars: 8
- Watchers: 6
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
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.pdfThe 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 cliUsage 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] => serverLoadKnown 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