From 7b326fbba38bdcecf305c5e80d93680d8ea8e39a Mon Sep 17 00:00:00 2001 From: skyanth Date: Mon, 28 Nov 2016 17:53:38 +0100 Subject: [PATCH] Added EXEC_SUMMARY switch --- xml/dtd/pentestreport.xsd | 10 ++ xml/source/conclusion.xml | 2 +- xml/source/futurework.xml | 2 +- xml/source/snippets/report/methodology.xml | 2 +- xml/xslt/generate_report.xsl | 1 + xml/xslt/inline.xslt | 2 +- xml/xslt/meta.xslt | 14 ++- xml/xslt/numbering.xslt | 94 ++++++++++++------ xml/xslt/off2rep.xsl | 6 +- xml/xslt/structure.xslt | 106 +++++++++++++++------ xml/xslt/toc.xslt | 101 ++++++++++++++++---- 11 files changed, 250 insertions(+), 90 deletions(-) diff --git a/xml/dtd/pentestreport.xsd b/xml/dtd/pentestreport.xsd index e89c3fe..487b680 100644 --- a/xml/dtd/pentestreport.xsd +++ b/xml/dtd/pentestreport.xsd @@ -167,11 +167,21 @@ + + + + + + + + + + diff --git a/xml/source/conclusion.xml b/xml/source/conclusion.xml index 6f2d24d..4af30fe 100644 --- a/xml/source/conclusion.xml +++ b/xml/source/conclusion.xml @@ -1,4 +1,4 @@ -
+
Conclusion
diff --git a/xml/source/futurework.xml b/xml/source/futurework.xml index f7ce843..41cbc6e 100644 --- a/xml/source/futurework.xml +++ b/xml/source/futurework.xml @@ -1,4 +1,4 @@ -
+
Future Work
diff --git a/xml/source/snippets/report/methodology.xml b/xml/source/snippets/report/methodology.xml index 76522c9..b2d8c92 100644 --- a/xml/source/snippets/report/methodology.xml +++ b/xml/source/snippets/report/methodology.xml @@ -1,5 +1,5 @@ -
+
Methodology
Planning diff --git a/xml/xslt/generate_report.xsl b/xml/xslt/generate_report.xsl index d5020ba..d25c564 100644 --- a/xml/xslt/generate_report.xsl +++ b/xml/xslt/generate_report.xsl @@ -29,6 +29,7 @@ + diff --git a/xml/xslt/inline.xslt b/xml/xslt/inline.xslt index cd4289e..3e540cc 100644 --- a/xml/xslt/inline.xslt +++ b/xml/xslt/inline.xslt @@ -20,7 +20,7 @@ DOCUMENT + test="(starts-with(@href, '#') and //*[@id = $destination][ancestor-or-self::*[@visibility = 'hidden']]) or (starts-with(@href, '#') and $EXEC_SUMMARY=true() and //*[@id = $destination][ancestor-or-self::*[not(@inexecsummary='yes')]])"> WARNING: LINK TARGET IS HIDDEN diff --git a/xml/xslt/meta.xslt b/xml/xslt/meta.xslt index cf7160f..0f5e3ad 100644 --- a/xml/xslt/meta.xslt +++ b/xml/xslt/meta.xslt @@ -19,7 +19,12 @@ - + + + PENETRATION TEST MANAGEMENT SUMMARY + + + for @@ -90,7 +95,12 @@ - + + + PENETRATION TEST MANAGEMENT SUMMARY + + + diff --git a/xml/xslt/numbering.xslt b/xml/xslt/numbering.xslt index 0d3557d..ed0974b 100644 --- a/xml/xslt/numbering.xslt +++ b/xml/xslt/numbering.xslt @@ -1,54 +1,86 @@ - - + xmlns:xs="http://www.w3.org/2001/XMLSchema" exclude-result-prefixes="xs" + xmlns:fo="http://www.w3.org/1999/XSL/Format" version="2.0"> + + - + 0 - + - - + + - - Appendix  - - - - App . - + + + + Appendix  + + + + App . + + + + + + + + - - - + + + Appendix  + + + + App . + + + + + + + + - + - - - + + + - - \ No newline at end of file + + diff --git a/xml/xslt/off2rep.xsl b/xml/xslt/off2rep.xsl index 2150d1c..4949516 100644 --- a/xml/xslt/off2rep.xsl +++ b/xml/xslt/off2rep.xsl @@ -76,7 +76,7 @@ -
+
Executive Summary
Introduction @@ -116,7 +116,7 @@ snippets/report/methodology.xml -
+
Reconnaissance and Fingerprinting

Through automated scans we were able to gain the following information about the software and infrastructure. Detailed scan output can be found in the sections @@ -142,7 +142,7 @@

-
+
Pentest Technical Summary
Findings diff --git a/xml/xslt/structure.xslt b/xml/xslt/structure.xslt index 83fc26a..5f38d90 100644 --- a/xml/xslt/structure.xslt +++ b/xml/xslt/structure.xslt @@ -1,20 +1,33 @@ - - - - - - page - - - + xmlns:xs="http://www.w3.org/2001/XMLSchema" exclude-result-prefixes="xs" + xmlns:fo="http://www.w3.org/1999/XSL/Format" version="2.0"> + + + + + + + + + page + + + + + + + + + page + + + + + - + @@ -22,28 +35,61 @@ title- - + - - Appendix  - - - - App . - + + + + Appendix  + + + + App . + + + + + + + + - - - + + + Appendix  + + + + App . + + + + + + + +     @@ -58,5 +104,5 @@ - - \ No newline at end of file + + diff --git a/xml/xslt/toc.xslt b/xml/xslt/toc.xslt index 2806d7e..23b60fb 100644 --- a/xml/xslt/toc.xslt +++ b/xml/xslt/toc.xslt @@ -10,14 +10,32 @@ - - + + + + + + + + + + + + - + + + + + + + + + + @@ -26,7 +44,7 @@ - + - + + + + + + + + @@ -67,22 +94,56 @@ - Appendix  - + + + Appendix  + + + Appendix  + + - App . - + + + + App . + + + + + App . + + + - - - + + + + + + + + + +