lynis icon indicating copy to clipboard operation
lynis copied to clipboard

managers love PDF files

Open harridu opened this issue 1 year ago • 1 comments

Managers love PDFs. I am familiar with just 2 commercial pentest companies, but both provide a detailed report as PDF. Sorry to say, but an ASCII printout of lynis might look low quality in managers' eyes. Lynis' scan results are pretty complex and hard to understand, so a nice design of the report is one of their major quality criteria.

PDF or maybe just some markdown output to generate a PDF would be a big improvement. Optional.

harridu avatar Nov 29 '22 06:11 harridu

You can probably generate a simple but good enough looking PDF Lynis report by converting the original Lynis text report to postscript and then to PDF. Here's what I did:

php convert_terminal_colors.php > lynis_report.html vim -c ':hardcopy > lynis_report.ps' -c ':q' lynis_report.html ps2pdf lynis_report.ps

I'll attach convert_terminal_colors.zip the code for convert_terminal_colors.php, but it's a very simple code that can probably be implemented in python or perl also. And you can modify it and play with different options for each terminal color.

xnoguer avatar Apr 10 '23 14:04 xnoguer