1modm / petereport

PeTeReport is an open-source application vulnerability reporting tool.

Home Page:https://1modm.github.io/petereport/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Import Findiings

matholiveira91 opened this issue · comments

I had problems to import a findings csv to a report, and i have another problem i have a lot of hosts and a lot of vulnerabilities to manage, add then one by one manually i'll take me a lot of time. When i try to import a csv filie with a set of vulnerabilities i receive HTTP 500 error

Same error when I generate PDF report
imagen

Same error when I generate PDF report imagen

Solved! I config debug true and detect special characters in my description

commented

@ramsal thanks for the update, do you know which character was causing the issue? I would like to take a look.

Thanks!

@ramsal thanks for the update, do you know which character was causing the issue? I would like to take a look.

Thanks!

this ☒
(U+2612)

commented

@ramsal Found the issue, some unicode chars have problems with pandoc and latex. To fix the issue you can add to the line 985 the next option: '--pdf-engine', 'xelatex' :

output_pypandoc = pypandoc.convert_text(final_markdown_output, to='pdf', outputfile=pdf_file_output, format='md', extra_args=['-H', PDF_HEADER_FILE, '--from', 'markdown+yaml_metadata_block+raw_html', '--template', PETEREPORT_LATEX_FILE, '--table-of-contents', '--toc-depth', '4', '--number-sections', '--highlight-style', 'breezedark', '--filter', 'pandoc-latex-environment', '--listings', '--pdf-engine', 'xelatex'])

Thanks! Regards!

commented

@matholiveira91 Hi, I did some updates, could you try?

First update https://1modm.github.io/petereport/django/#upgrade-petereport

If doesn't works enable debug mode in app/config/petereport_config.py and attach here the output