PentestPad uses Microsoft Word template to generate reports. The template is a Word document that contains placeholders for the data that will be inserted into the report. The placeholders are defined using the following format: {placeholder}
. The placeholders are replaced with the actual data when the report is generated.
To enable maximal extensibility, we have multiple formats and types of placeholders:
Simple placeholders: These are the most basic placeholders. They are replaced with the actual data when the report is generated. For example,
{project_name}
.Conditions: These are used to conditionally include or exclude content from the report. For example,
{#client.contact_phone == ββ}No contact phone{/}
. Inside a condition, you can use any other placeholder.Loops: These are used to repeat content in the report. For example,
{#vulnerabilities}Vulnerability: {title}{/}
. Inside a loop, you can use any other placeholder.Inline HTML: In order to convert HTML to Word style you need to mark that placeholder with tilda, for example,
{~description}
.HTML Block: In order to convert HTML to Word style you need to mark that placeholder with double tilda, for example,
{~~description}
.