NexposeVulnExtractor
Parse a specific server nexpose response in to a table of vulnerabilities.
- Type
- javascript
- Pack
- Rapid7_Nexpose
Source
var report = args.report ? args.report : incidents[0].details;
var res = report.match(/(<test .*>)/g);
var contents = [];
for (var i =0; i < res.length; i++) {
var current = /(<test id="(.*)" key="(.*)" status="(.*)" scan-id="(.*)" vulnerable-since="(.*)" pci-compliance-status="(.*)">)/g.exec(res[i]);
contents.push({Name: current[2], Status: current[4], Since: current[6], Compliance: current[7]});
}
return {Contents: contents,
ContentsFormat: formats.table,
Type: entryTypes.note};
README
Parses a specific server Nexpose response into a table of vulnerabilities.
Script Data
| Name | Description |
|---|---|
| Script Type | javascript |
| Tags | nexpose |
Dependencies
This script uses the following commands and scripts.
- nexpose
Inputs
| Argument Name | Description |
|---|---|
| report | The Full XML contents of the Nexpose report. If not provided, it will be taken from the Incident Details. |
Outputs
There are no outputs for this script.