diff --git a/ReportToolz/repgen.php b/ReportToolz/repgen.php
index 86ac51b..cfd6b23 100755
--- a/ReportToolz/repgen.php
+++ b/ReportToolz/repgen.php
@@ -5,7 +5,8 @@
/***
* Configuration options
*/
-$template = "templates/odt/blank_template_v0.2.odt";
+$template = "templates/odt/blank_template_v0.3.odt";
+$CHECKtemplate = "templates/odt/blank_template_check_v0.2.odt";
$vulnTemplate = "templates/odt/vuln_template.xml";
/***
@@ -38,6 +39,13 @@
if(!is_dir($filter->getParam("path")))
die("[-] no such folder! \n");
+//get config file
+$config = json_decode(file_get_contents($filter->getParam("path")."config.conf"));
+if(isset($config->checkRef) && trim($config->checkRef) <> ""){
+ $template = $CHECKtemplate; // if checkRefset use CHECK template
+ echo "[+] using CHECK template\n";
+}
+
// extract doc and get contents
$rand = uniqid();
mkdir("/tmp/$rand");
@@ -48,7 +56,7 @@
die("[-] unable to extract doc\n");
}
-$config = json_decode(file_get_contents($filter->getParam("path")."config.conf"));
+
// add config into template
$source = file_get_contents("/tmp/$rand/content.xml");
@@ -81,7 +89,7 @@
$templateSource = $templateOrig;
$togo = $singlevuln['risk'];
foreach ($singlevuln as $key => $value){
- $value = str_replace("\n", "", $value);
+ $value = str_replace("\n", "", $value);
$templateSource = str_replace('{'.$key.'}', $value, $templateSource);
}
$$togo .= $templateSource;
@@ -91,11 +99,11 @@
// squash vulns into one bbig xml
$value = "";
if(!empty($Serious)){
- $value .= '
+ $value .= '
- Serious Risk Vulnerabilities
+ Serious Risk Vulnerabilities
@@ -104,11 +112,11 @@
}
if(!empty($High)){
- $value .= '
+ $value .= '
- High Risk Vulnerabilities
+ High Risk Vulnerabilities
@@ -116,11 +124,11 @@
$value .= $High;
}
if(!empty($Medium)){
- $value .= '
+ $value .= '
- Medium Risk Vulnerabilities
+ Medium Risk Vulnerabilities
@@ -128,11 +136,11 @@
$value .= $Medium;
}
if(!empty($Low)){
- $value .= '
+ $value .= '
- Low Risk Vulnerabilities
+ Low Risk Vulnerabilities
diff --git a/ReportToolz/repgen.php b/ReportToolz/repgen.php
index 86ac51b..cfd6b23 100755
--- a/ReportToolz/repgen.php
+++ b/ReportToolz/repgen.php
@@ -5,7 +5,8 @@
/***
* Configuration options
*/
-$template = "templates/odt/blank_template_v0.2.odt";
+$template = "templates/odt/blank_template_v0.3.odt";
+$CHECKtemplate = "templates/odt/blank_template_check_v0.2.odt";
$vulnTemplate = "templates/odt/vuln_template.xml";
/***
@@ -38,6 +39,13 @@
if(!is_dir($filter->getParam("path")))
die("[-] no such folder! \n");
+//get config file
+$config = json_decode(file_get_contents($filter->getParam("path")."config.conf"));
+if(isset($config->checkRef) && trim($config->checkRef) <> ""){
+ $template = $CHECKtemplate; // if checkRefset use CHECK template
+ echo "[+] using CHECK template\n";
+}
+
// extract doc and get contents
$rand = uniqid();
mkdir("/tmp/$rand");
@@ -48,7 +56,7 @@
die("[-] unable to extract doc\n");
}
-$config = json_decode(file_get_contents($filter->getParam("path")."config.conf"));
+
// add config into template
$source = file_get_contents("/tmp/$rand/content.xml");
@@ -81,7 +89,7 @@
$templateSource = $templateOrig;
$togo = $singlevuln['risk'];
foreach ($singlevuln as $key => $value){
- $value = str_replace("\n", "", $value);
+ $value = str_replace("\n", "", $value);
$templateSource = str_replace('{'.$key.'}', $value, $templateSource);
}
$$togo .= $templateSource;
@@ -91,11 +99,11 @@
// squash vulns into one bbig xml
$value = "";
if(!empty($Serious)){
- $value .= '
+ $value .= '
- Serious Risk Vulnerabilities
+ Serious Risk Vulnerabilities
@@ -104,11 +112,11 @@
}
if(!empty($High)){
- $value .= '
+ $value .= '
- High Risk Vulnerabilities
+ High Risk Vulnerabilities
@@ -116,11 +124,11 @@
$value .= $High;
}
if(!empty($Medium)){
- $value .= '
+ $value .= '
- Medium Risk Vulnerabilities
+ Medium Risk Vulnerabilities
@@ -128,11 +136,11 @@
$value .= $Medium;
}
if(!empty($Low)){
- $value .= '
+ $value .= '
- Low Risk Vulnerabilities
+ Low Risk Vulnerabilities
diff --git a/ReportToolz/templates/odt/blank_template_v0.1.odt b/ReportToolz/templates/odt/blank_template_v0.1.odt
new file mode 100755
index 0000000..6c08f56
--- /dev/null
+++ b/ReportToolz/templates/odt/blank_template_v0.1.odt
Binary files differ
diff --git a/ReportToolz/repgen.php b/ReportToolz/repgen.php
index 86ac51b..cfd6b23 100755
--- a/ReportToolz/repgen.php
+++ b/ReportToolz/repgen.php
@@ -5,7 +5,8 @@
/***
* Configuration options
*/
-$template = "templates/odt/blank_template_v0.2.odt";
+$template = "templates/odt/blank_template_v0.3.odt";
+$CHECKtemplate = "templates/odt/blank_template_check_v0.2.odt";
$vulnTemplate = "templates/odt/vuln_template.xml";
/***
@@ -38,6 +39,13 @@
if(!is_dir($filter->getParam("path")))
die("[-] no such folder! \n");
+//get config file
+$config = json_decode(file_get_contents($filter->getParam("path")."config.conf"));
+if(isset($config->checkRef) && trim($config->checkRef) <> ""){
+ $template = $CHECKtemplate; // if checkRefset use CHECK template
+ echo "[+] using CHECK template\n";
+}
+
// extract doc and get contents
$rand = uniqid();
mkdir("/tmp/$rand");
@@ -48,7 +56,7 @@
die("[-] unable to extract doc\n");
}
-$config = json_decode(file_get_contents($filter->getParam("path")."config.conf"));
+
// add config into template
$source = file_get_contents("/tmp/$rand/content.xml");
@@ -81,7 +89,7 @@
$templateSource = $templateOrig;
$togo = $singlevuln['risk'];
foreach ($singlevuln as $key => $value){
- $value = str_replace("\n", "", $value);
+ $value = str_replace("\n", "", $value);
$templateSource = str_replace('{'.$key.'}', $value, $templateSource);
}
$$togo .= $templateSource;
@@ -91,11 +99,11 @@
// squash vulns into one bbig xml
$value = "";
if(!empty($Serious)){
- $value .= '
+ $value .= '
- Serious Risk Vulnerabilities
+ Serious Risk Vulnerabilities
@@ -104,11 +112,11 @@
}
if(!empty($High)){
- $value .= '
+ $value .= '
- High Risk Vulnerabilities
+ High Risk Vulnerabilities
@@ -116,11 +124,11 @@
$value .= $High;
}
if(!empty($Medium)){
- $value .= '
+ $value .= '
- Medium Risk Vulnerabilities
+ Medium Risk Vulnerabilities
@@ -128,11 +136,11 @@
$value .= $Medium;
}
if(!empty($Low)){
- $value .= '
+ $value .= '
- Low Risk Vulnerabilities
+ Low Risk Vulnerabilities
diff --git a/ReportToolz/templates/odt/blank_template_v0.1.odt b/ReportToolz/templates/odt/blank_template_v0.1.odt
new file mode 100755
index 0000000..6c08f56
--- /dev/null
+++ b/ReportToolz/templates/odt/blank_template_v0.1.odt
Binary files differ
diff --git a/ReportToolz/templates/odt/blank_template_v0.2.odt b/ReportToolz/templates/odt/blank_template_v0.2.odt
old mode 100644
new mode 100755
index 76721c3..3010ce9
--- a/ReportToolz/templates/odt/blank_template_v0.2.odt
+++ b/ReportToolz/templates/odt/blank_template_v0.2.odt
Binary files differ
diff --git a/ReportToolz/repgen.php b/ReportToolz/repgen.php
index 86ac51b..cfd6b23 100755
--- a/ReportToolz/repgen.php
+++ b/ReportToolz/repgen.php
@@ -5,7 +5,8 @@
/***
* Configuration options
*/
-$template = "templates/odt/blank_template_v0.2.odt";
+$template = "templates/odt/blank_template_v0.3.odt";
+$CHECKtemplate = "templates/odt/blank_template_check_v0.2.odt";
$vulnTemplate = "templates/odt/vuln_template.xml";
/***
@@ -38,6 +39,13 @@
if(!is_dir($filter->getParam("path")))
die("[-] no such folder! \n");
+//get config file
+$config = json_decode(file_get_contents($filter->getParam("path")."config.conf"));
+if(isset($config->checkRef) && trim($config->checkRef) <> ""){
+ $template = $CHECKtemplate; // if checkRefset use CHECK template
+ echo "[+] using CHECK template\n";
+}
+
// extract doc and get contents
$rand = uniqid();
mkdir("/tmp/$rand");
@@ -48,7 +56,7 @@
die("[-] unable to extract doc\n");
}
-$config = json_decode(file_get_contents($filter->getParam("path")."config.conf"));
+
// add config into template
$source = file_get_contents("/tmp/$rand/content.xml");
@@ -81,7 +89,7 @@
$templateSource = $templateOrig;
$togo = $singlevuln['risk'];
foreach ($singlevuln as $key => $value){
- $value = str_replace("\n", "", $value);
+ $value = str_replace("\n", "", $value);
$templateSource = str_replace('{'.$key.'}', $value, $templateSource);
}
$$togo .= $templateSource;
@@ -91,11 +99,11 @@
// squash vulns into one bbig xml
$value = "";
if(!empty($Serious)){
- $value .= '
+ $value .= '
- Serious Risk Vulnerabilities
+ Serious Risk Vulnerabilities
@@ -104,11 +112,11 @@
}
if(!empty($High)){
- $value .= '
+ $value .= '
- High Risk Vulnerabilities
+ High Risk Vulnerabilities
@@ -116,11 +124,11 @@
$value .= $High;
}
if(!empty($Medium)){
- $value .= '
+ $value .= '
- Medium Risk Vulnerabilities
+ Medium Risk Vulnerabilities
@@ -128,11 +136,11 @@
$value .= $Medium;
}
if(!empty($Low)){
- $value .= '
+ $value .= '
- Low Risk Vulnerabilities
+ Low Risk Vulnerabilities
diff --git a/ReportToolz/templates/odt/blank_template_v0.1.odt b/ReportToolz/templates/odt/blank_template_v0.1.odt
new file mode 100755
index 0000000..6c08f56
--- /dev/null
+++ b/ReportToolz/templates/odt/blank_template_v0.1.odt
Binary files differ
diff --git a/ReportToolz/templates/odt/blank_template_v0.2.odt b/ReportToolz/templates/odt/blank_template_v0.2.odt
old mode 100644
new mode 100755
index 76721c3..3010ce9
--- a/ReportToolz/templates/odt/blank_template_v0.2.odt
+++ b/ReportToolz/templates/odt/blank_template_v0.2.odt
Binary files differ
diff --git a/ReportToolz/templates/odt/blank_template_v0.3.odt b/ReportToolz/templates/odt/blank_template_v0.3.odt
new file mode 100755
index 0000000..f2d55ae
--- /dev/null
+++ b/ReportToolz/templates/odt/blank_template_v0.3.odt
Binary files differ
diff --git a/ReportToolz/repgen.php b/ReportToolz/repgen.php
index 86ac51b..cfd6b23 100755
--- a/ReportToolz/repgen.php
+++ b/ReportToolz/repgen.php
@@ -5,7 +5,8 @@
/***
* Configuration options
*/
-$template = "templates/odt/blank_template_v0.2.odt";
+$template = "templates/odt/blank_template_v0.3.odt";
+$CHECKtemplate = "templates/odt/blank_template_check_v0.2.odt";
$vulnTemplate = "templates/odt/vuln_template.xml";
/***
@@ -38,6 +39,13 @@
if(!is_dir($filter->getParam("path")))
die("[-] no such folder! \n");
+//get config file
+$config = json_decode(file_get_contents($filter->getParam("path")."config.conf"));
+if(isset($config->checkRef) && trim($config->checkRef) <> ""){
+ $template = $CHECKtemplate; // if checkRefset use CHECK template
+ echo "[+] using CHECK template\n";
+}
+
// extract doc and get contents
$rand = uniqid();
mkdir("/tmp/$rand");
@@ -48,7 +56,7 @@
die("[-] unable to extract doc\n");
}
-$config = json_decode(file_get_contents($filter->getParam("path")."config.conf"));
+
// add config into template
$source = file_get_contents("/tmp/$rand/content.xml");
@@ -81,7 +89,7 @@
$templateSource = $templateOrig;
$togo = $singlevuln['risk'];
foreach ($singlevuln as $key => $value){
- $value = str_replace("\n", "", $value);
+ $value = str_replace("\n", "", $value);
$templateSource = str_replace('{'.$key.'}', $value, $templateSource);
}
$$togo .= $templateSource;
@@ -91,11 +99,11 @@
// squash vulns into one bbig xml
$value = "";
if(!empty($Serious)){
- $value .= '
+ $value .= '
- Serious Risk Vulnerabilities
+ Serious Risk Vulnerabilities
@@ -104,11 +112,11 @@
}
if(!empty($High)){
- $value .= '
+ $value .= '
- High Risk Vulnerabilities
+ High Risk Vulnerabilities
@@ -116,11 +124,11 @@
$value .= $High;
}
if(!empty($Medium)){
- $value .= '
+ $value .= '
- Medium Risk Vulnerabilities
+ Medium Risk Vulnerabilities
@@ -128,11 +136,11 @@
$value .= $Medium;
}
if(!empty($Low)){
- $value .= '
+ $value .= '
- Low Risk Vulnerabilities
+ Low Risk Vulnerabilities
diff --git a/ReportToolz/templates/odt/blank_template_v0.1.odt b/ReportToolz/templates/odt/blank_template_v0.1.odt
new file mode 100755
index 0000000..6c08f56
--- /dev/null
+++ b/ReportToolz/templates/odt/blank_template_v0.1.odt
Binary files differ
diff --git a/ReportToolz/templates/odt/blank_template_v0.2.odt b/ReportToolz/templates/odt/blank_template_v0.2.odt
old mode 100644
new mode 100755
index 76721c3..3010ce9
--- a/ReportToolz/templates/odt/blank_template_v0.2.odt
+++ b/ReportToolz/templates/odt/blank_template_v0.2.odt
Binary files differ
diff --git a/ReportToolz/templates/odt/blank_template_v0.3.odt b/ReportToolz/templates/odt/blank_template_v0.3.odt
new file mode 100755
index 0000000..f2d55ae
--- /dev/null
+++ b/ReportToolz/templates/odt/blank_template_v0.3.odt
Binary files differ
diff --git a/ReportToolz/templates/odt/vuln_template.xml b/ReportToolz/templates/odt/vuln_template.xml
index ad7eb53..a5056bc 100644
--- a/ReportToolz/templates/odt/vuln_template.xml
+++ b/ReportToolz/templates/odt/vuln_template.xml
@@ -1,10 +1,10 @@
-
+
- {title}
+ {title}
@@ -12,8 +12,8 @@
-{description}
-
+{description}
+
@@ -21,7 +21,7 @@
- Description
+ Description
@@ -30,8 +30,8 @@
-{tech_description}
-
+{tech_description}
+
@@ -39,7 +39,7 @@
- Potential Impact
+ Potential Impact
@@ -48,8 +48,8 @@
-{impact}
-
+{impact}
+
@@ -57,7 +57,7 @@
- Solution
+ Solution
@@ -66,8 +66,8 @@
-{solution}
-
+{solution}
+
@@ -75,7 +75,7 @@
- Remediation
+ Remediation
@@ -84,8 +84,8 @@
-{remediation}
-
+{remediation}
+
@@ -93,7 +93,7 @@
- CVSS Base Score
+ CVSS Base Score
@@ -102,8 +102,8 @@
-{cvss_score}
-
+{cvss_score}
+
@@ -111,7 +111,7 @@
- Risk Level
+ Risk Level
@@ -120,8 +120,8 @@
-{risk}: {owasp}
-
+{risk}: {owasp}
+
@@ -129,7 +129,7 @@
- Vulnerabilities Exist On
+ Vulnerabilities Exist On
@@ -138,4 +138,5 @@
-host
+host
+
\ No newline at end of file