kac89 / vulnrepo-json-to-latex-pdf

VULNREPO json report to LaTex pdf
2 stars 0 forks source link

line 135 can only concatenate str (not "list") to str #1

Closed trivarialthea closed 1 year ago

trivarialthea commented 1 year ago

Hi, i put the export in the input folder, but i am getting this error (Python 3.11.3):

line 135:

issues = issues + """
         ^^^^^^^^^^^^

TypeError: can only concatenate str (not "list") to str

kac89 commented 1 year ago

Hi,

Thanks for report. Can you maybe share these json report? ofc anonymize everything.

trivarialthea commented 1 year ago

As it is just a dummy scan and a test report i can share it as a whole. Here you go: https://anonfiles.com/QeZezd46z4/TEST_REPORT_json (github does not support uploading json files)

kac89 commented 1 year ago

Thanks, so is that input from openvas free version ?

trivarialthea commented 1 year ago

@kac89, correct

kac89 commented 1 year ago

So your JSON have different structure something seems to have changed on the openvas side.

What version are you using? is it kali linux version? can you also share XML version of report from openvas?

Thanks :-)

trivarialthea commented 1 year ago

I am using this docker deployment (https://github.com/immauss/openvas) GSA: Version 22.5.3

The xml you requested is here

kac89 commented 1 year ago

Thank you! I'll let you know when the FIX comes in.

kac89 commented 1 year ago

Hi, I made changes. Try now again.

steps:

  1. Go to vulnrepo.com
  2. import openvas 9 results-*.xml file
  3. download JSON
  4. do git clone https://github.com/kac89/vulnrepo-json-to-latex-pdf.git
  5. put vulnrepo report json to input folder on vulnrepo-json-to-latex-pdf
  6. run python generate_latex.py

it works for me.

trivarialthea commented 1 year ago

That seems to have fixed it!