diff --git a/ReportToolz/repgen.php b/ReportToolz/repgen.php index 6b382e2..d7109d6 100755 --- a/ReportToolz/repgen.php +++ b/ReportToolz/repgen.php @@ -5,7 +5,7 @@ /*** * 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"; @@ -167,8 +167,9 @@ 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";