Generated doc now has correct name
1 parent ad6df18 commit 2253f23333db368744c9bc11087097633074a2e0
root authored on 23 Jan 2020
Showing 1 changed file
View
8
ReportToolz/repgen.php
 
/***
* 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) {
Buy Me A Coffee