But when I start the program, I see this message in the output xml file:
<get_reports_response status="404" status_text="Failed to find report format 'f67e70f0-4571-4aeb-ac6a-4e0846995228'"/>
Here is the whole code:
from gvm.connections import UnixSocketConnection
from gvm.protocols.gmp import GMP
from gvm.transforms import EtreeTransform
from gvm.xml import pretty_print
Thank you for your reply, it helped me. We were able to import the required report formats. Anonymous xml, xml, pdf, txt, and csv are now available to me. But another problem has arisen. This is my python script:
from gvm.connections import UnixSocketConnection
from gvm.protocols.gmp import GMP
from gvm.transforms import EtreeTransform
from gvm.xml import pretty_print
In the linux console, I run it this way: python3 script.py > test1.pdf. But after the script is running, the pdf file does not open. I can’t figure out why the script isn’t working.
#my main task is to programmatically export the report