Report Export module that allows users to customize content and export in a desired format.
User entered and automatically retrieve data relevant to the report. Hover over each field in the extension for tool tip.
Include/Exclude Alerts by Severity.
Include/Exclude Details of each Alert.
The dialog only shows folders and accepted file types. The ‘Files of Type’ drop down list will filter to show only folders and files of the specified extension.
The extension can be run from the command line as well and requires the following arguments to be passed in to generate a report.
See the Command Line help page for more details on the natively supported command line options.
-export_report :
-source_info :
-alert_severity :
-alert_details :
-include_passive_alerts (optional) :
#### Putting it all together! (Windows)
1. Open a command prompt
2. Navigate to location where the zap.bat file is located
3. execute the following:
* zap.bat **-export_report** "/path/to/save/report.xhtml" **-source_info** "Vulnerability Report of MyApp.com;JordanGS;Lost Souls;August 15, 2016;August 18, 2016;ZAP_D-2016-08-15;ZAP_D-2016-08-15;Lorem ipsum dolor sit amet, pri corpora ancillae adolescens in. Ea usu atomorum tincidunt, ne munere regione has. Ne sea summo tation, et sed nibh nostrum singulis. Nec causae viderer discere eu." **-alert_severity** "t;t;f;t" **-alert_details** "t;t;t;t;t;t;f;f;f;f" **-session** "/path/to/existing/session" **-cmd**
The extension can be accessed with API calls and requires the following arguments to be passed in to generate a report.
The restrictions are the same as those for Command Line above.
Map<String, String> map = new HashMap<String, String>(); String API_KEY = "ZAPROXY-PLUGIN" String absolutePath = "/path/to/save/report.xhtml"; String extension = "xhtml"; String sourceDetails = "Vulnerability Report of MyApp.com;JordanGS;Lost Souls;" + "August 15, 2016;August 18, 2016;ZAP_D-2016-08-15;ZAP_D-2016-08-15;" + "Lorem ipsum dolor sit amet, pri corpora ancillae adolescens in. Ea " + "usu atomorum tincidunt, ne munere regione has. Ne sea summo tation, " + "et sed nibh nostrum singulis. Nec causae viderer discere eu."; String alertSeverity = "t;t;f;t"; String alertDetails = "t;t;t;t;t;t;f;f;f;f"; map.put("apikey", API_KEY); // String representing the absolute path to save destination for the report map.put("absolutePath", absolutePath) // String representing the extension of the report map.put("fileExtension", extension); // String separated by ; for each entry map.put("sourceDetails", sourceDetails); // String separated by ; for each entry map.put("alertSeverity", alertSeverity); //String separated by ; for each entry map.put("alertDetails", alertDetails); ApiResponseElement val = (ApiResponseElement) clientApi.callApi("exportreport", "action", "generate", map);