| |
---|
| | |
---|
| | /*** |
---|
| | * Configuration options |
---|
| | */ |
---|
| | $template = "templates/odt/blank_template_v0.5.odt"; |
---|
| | $template = "/mnt/hgfs/Pentest/Misc/ReportToolz/templates/odt/blank_template_v0.5/blank_template_v0.5.odt"; |
---|
| | $CHECKtemplate = "templates/odt/blank_template_check_v0.4.odt"; |
---|
| | $vulnTemplate = "templates/odt/vuln_template.xml"; |
---|
| | |
---|
| | /*** |
---|
| |
---|
| | $source = str_replace('{vuln}', $value, $source); |
---|
| | file_put_contents("/tmp/$rand/content.xml", $source); |
---|
| | |
---|
| | // create report and tidying |
---|
| | zipFolder("/tmp/$rand", $filter->getParam("path")."repgen.odt"); |
---|
| | echo "[=] generated report: ".$filter->getParam("path")."repgen.odt\n"; |
---|
| | $repOutName = $config->ref.".3 ".$config->client ." ". $config->title1; |
---|
| | zipFolder("/tmp/$rand", $filter->getParam("path").$repOutName.".odt"); |
---|
| | echo "[=] generated report: ".$filter->getParam("path").$repOutName.".odt\n"; |
---|
| | delTree("/tmp/$rand"); |
---|
| | echo "[+] temp files removed\n"; |
---|
| | |
---|
| | function unzipFolder($zipInputFile, $outputFolder) { |
---|
| |
---|
| | |