Loading scan2report.py +5 −6 Original line number Diff line number Diff line Loading @@ -542,14 +542,13 @@ def main(argv, reinit_global_vars: bool = False, s2r: 'Scan2ReportConfig' = None findings_json = produce_findings_json(findings, hostnames) with open(outfile, 'w', encoding="utf8") as f: json.dump(findings_json, f, indent=4, sort_keys=True) else: raise Exception('Unknown output file format:' + outfileFormat) with open(f"{outfile}.meta.json", 'w', encoding="utf8") as f: # todo: make this a CLI argument? json.dump({ 'missing': missing_as_list, 'services': services }, f, indent=4, sort_keys=True) else: raise Exception('Unknown output file format:' + outfileFormat) print('Report written:', outfile) Loading Loading
scan2report.py +5 −6 Original line number Diff line number Diff line Loading @@ -542,14 +542,13 @@ def main(argv, reinit_global_vars: bool = False, s2r: 'Scan2ReportConfig' = None findings_json = produce_findings_json(findings, hostnames) with open(outfile, 'w', encoding="utf8") as f: json.dump(findings_json, f, indent=4, sort_keys=True) else: raise Exception('Unknown output file format:' + outfileFormat) with open(f"{outfile}.meta.json", 'w', encoding="utf8") as f: # todo: make this a CLI argument? json.dump({ 'missing': missing_as_list, 'services': services }, f, indent=4, sort_keys=True) else: raise Exception('Unknown output file format:' + outfileFormat) print('Report written:', outfile) Loading