diff --git a/chatops/python/docbuilder.py b/chatops/python/docbuilder.py
index 03de083..8c51651 100644
--- a/chatops/python/docbuilder.py
+++ b/chatops/python/docbuilder.py
@@ -56,7 +56,7 @@ the Free Software Foundation, either version 3 of the License, or
help='overwrite output file if it already exists')
parser.add_argument('-date', action='store',
help='the invoice date')
- parser.add_argument('-execsummary', action='store',
+ parser.add_argument('-execsummary', action='store_true',
help="""create an executive summary as well as a report (true/false).
Default: false """)
parser.add_argument('--fop-config', action='store',
@@ -151,7 +151,7 @@ def to_fo(options):
if options['date']:
cmd.append('DATE=' + options['date'])
if options['execsummary']:
- cmd.append('EXEC_SUMMARY=' + options['execsummary'])
+ cmd.append('EXEC_SUMMARY=true')
process = subprocess.Popen(cmd, stdout=PIPE, stderr=PIPE)
stdout, stderr = process.communicate()
print_output(stdout, stderr)
@@ -234,7 +234,7 @@ def main():
except OSError as exception:
print_exit('[-] ERR: {0}'.format(exception.strerror),
exception.errno)
- if options['execsummary'] == 'true': # we're generating a summary as well as a report
+ if options['execsummary'] == True: # we're generating a summary as well as a report
report_output = options['output']
verboseprint('generating additional executive summary')
output_dir = os.path.dirname(options['output'])
@@ -260,4 +260,4 @@ def main():
if __name__ == "__main__":
- main()
+ main()
\ No newline at end of file
diff --git a/xml/xslt/generate_contract.xsl b/xml/xslt/generate_contract.xsl
index a4219aa..0426b98 100644
--- a/xml/xslt/generate_contract.xsl
+++ b/xml/xslt/generate_contract.xsl
@@ -58,7 +58,9 @@
-
+
+
+
diff --git a/xml/xslt/generate_document.xsl b/xml/xslt/generate_document.xsl
index 888442e..e2cbe88 100644
--- a/xml/xslt/generate_document.xsl
+++ b/xml/xslt/generate_document.xsl
@@ -49,7 +49,9 @@
-
+
+
+
diff --git a/xml/xslt/generate_invoice.xsl b/xml/xslt/generate_invoice.xsl
index 798ecdd..b2f8dc0 100644
--- a/xml/xslt/generate_invoice.xsl
+++ b/xml/xslt/generate_invoice.xsl
@@ -38,7 +38,9 @@
-
+
+
+
diff --git a/xml/xslt/generate_offerte.xsl b/xml/xslt/generate_offerte.xsl
index 39b6e67..b273bc4 100644
--- a/xml/xslt/generate_offerte.xsl
+++ b/xml/xslt/generate_offerte.xsl
@@ -69,7 +69,9 @@
-
+
+
+
diff --git a/xml/xslt/generate_ratecard.xsl b/xml/xslt/generate_ratecard.xsl
index 6204405..22ab0c3 100644
--- a/xml/xslt/generate_ratecard.xsl
+++ b/xml/xslt/generate_ratecard.xsl
@@ -59,7 +59,9 @@
-
+
+
+
diff --git a/xml/xslt/generate_report.xsl b/xml/xslt/generate_report.xsl
index fbb4e43..beebdc6 100644
--- a/xml/xslt/generate_report.xsl
+++ b/xml/xslt/generate_report.xsl
@@ -58,26 +58,28 @@
-
-
+
-
+
+
+
-
-
+
-
+
+
+
-
-
+
+
diff --git a/xml/xslt/inline.xslt b/xml/xslt/inline.xslt
index 4140f29..353b9cd 100644
--- a/xml/xslt/inline.xslt
+++ b/xml/xslt/inline.xslt
@@ -4,6 +4,7 @@
xmlns:fo="http://www.w3.org/1999/XSL/Format" version="2.0">
+
@@ -20,7 +21,7 @@
DOCUMENT
+ test="(starts-with(@href, '#') and //*[@id = $destination][ancestor-or-self::*[@visibility = 'hidden']]) or (starts-with(@href, '#') and $execsummary=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 fd6d87f..ec114bd 100644
--- a/xml/xslt/meta.xslt
+++ b/xml/xslt/meta.xslt
@@ -5,6 +5,7 @@
version="2.0">
+
@@ -20,7 +21,7 @@
-
+
PENETRATION TEST MANAGEMENT SUMMARY
@@ -61,6 +62,7 @@
+
@@ -96,7 +98,7 @@
-
+
PENETRATION TEST MANAGEMENT SUMMARY
diff --git a/xml/xslt/numbering.xslt b/xml/xslt/numbering.xslt
index 12232bd..934b863 100644
--- a/xml/xslt/numbering.xslt
+++ b/xml/xslt/numbering.xslt
@@ -36,8 +36,9 @@
+
-
+
Appendix
+
-
+
@@ -29,6 +30,7 @@
+
@@ -41,7 +43,7 @@
-
+
Appendix
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/xml/xslt/summary.xslt b/xml/xslt/summary.xslt
deleted file mode 100644
index c2850c9..0000000
--- a/xml/xslt/summary.xslt
+++ /dev/null
@@ -1,339 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- for
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- V
-
-
- Amsterdam,
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Document Properties
-
-
-
-
-
-
-
- Client
-
-
-
-
-
-
-
-
-
- Title
-
-
-
-
-
-
-
-
-
- Targets
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Version
-
-
-
-
-
-
-
-
-
- Pentesters
-
-
-
-
-
-
-
-
- ,
-
-
-
-
-
-
-
- Authors
-
-
-
-
-
- ,
-
-
-
-
-
-
-
-
- Reviewed by
-
-
-
-
-
-
-
-
-
-
-
-
-
- Approved by
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Version control
-
-
-
-
-
-
-
-
-
- Version
-
-
- Date
-
-
- Author
-
-
- Description
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- ,
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- 0.
-
-
-
-
-
-
-
-
-
-
-
- Contact
- For more information about this Document and its
- contents please contact Radically Open Security BV.
-
-
-
-
-
-
-
- Name
-
-
-
-
-
-
-
-
-
- Address
-
-
-
-
-
-
-
-
-
- Phone
-
-
-
-
-
-
-
-
-
- Email
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/xml/xslt/toc.xslt b/xml/xslt/toc.xslt
index 6ca7c0c..243eb64 100644
--- a/xml/xslt/toc.xslt
+++ b/xml/xslt/toc.xslt
@@ -25,9 +25,9 @@
-
+
-
+
@@ -40,6 +40,7 @@
+
@@ -66,7 +67,7 @@
-
+
@@ -95,10 +96,11 @@
+
-
+
Appendix
@@ -112,7 +114,7 @@
-
+
App
-
+