diff --git a/mscp_local_report.py b/mscp_local_report.py index 3d39da3..d541ebe 100644 --- a/mscp_local_report.py +++ b/mscp_local_report.py @@ -2,6 +2,7 @@ # description: Point to mSCP Plist Log File to make pretty graph, # required: input file and output file # ./mscp_local_report -p /Library/Preferences/org.BASELINE.audit.plist -o ~/prettyoutput.xlsx + import argparse from openpyxl import Workbook from pathlib import Path @@ -94,7 +95,19 @@ def validate_file(arg): temp_dir.cleanup() -html = '
0 = Passed
1 = Finding'.format(pngimg) +html = ''' + + + mSCP Compliance Scan Results + + + +
0 = Passed +
1 = Finding + '''.format(pngimg) +endhtml = ''' + +''' with open(htmlsavefile, 'r') as original: data = original.read() -with open(htmlsavefile, 'w') as modified: modified.write(html + data) +with open(htmlsavefile, 'w') as modified: modified.write(html + data + endhtml)