Hi,
Using OpenVAS 8 under Debian 8/9, all patches applied.
I try to export some reports using the built-in report format CSV Results
omp --username=$USERNAME --password=$PASSWORD -iX "<get_reports
report_id=\"$REPORTID\" format_id=\"$FORMATID_RESULTS\"
apply_overrides=\"1\" overrides=\"1\" override_details=\"1\" notes=\"1\"
note_details=\"1\" levels=\"hmlgf\" />" >test.xml
Now I extract the report for further base64-decoding using:
xmlstarlet sel -t -v get_reports_response/report/text\(\) <test.xml
>test1.xml
Normally it works.
But with huge reports (the xml file is about 13 Mbytes) xmlstarlet crashes:
-:2.10003842: xmlSAX2Characters: huge text node: out of memory
J1bm5pbmcgYXQgdGhpcyBwb3J0LgoKIFdpbmRvd3MgUmVtb3RlIE1hbmFnZW1lbnQgKFdpblJNKS
Bpcy
^
-:2.10003842: Extra content at the end of the document
J1bm5pbmcgYXQgdGhpcyBwb3J0LgoKIFdpbmRvd3MgUmVtb3RlIE1hbmFnZW1lbnQgKFdpblJNKS
Bpcy
Any ideas how to fix this?
I found a workaround:
Export the raw xml report, extract the xml subtree und run xsltproc using
the xslt-script of the report format CSV Results.
But this is still a workaround. It would be better, if OpenVAS could deliver
the report in a form, one can extract without a crash :-/
Best regards
Christian Ebert
Chief Security Analyst, CISM, T.I.S.P.
Head of Penetration Testing
QSC AG
Mathias-Brüggen-Straße 55
50829 Köln
T +49 221 669-8950
F +49 221 669-85950
M +49 163 6698950
[email protected]
http:// <http://www.qsc.de/> www.qsc.de
Besuchen Sie auch unser Blog unter <http://blog.qsc.de/> http://blog.qsc.de
Bitte finden Sie hier die handelsrechtlichen Pflichtangaben:
<http://www.qsc.de/pflichtangaben> http://www.qsc.de/pflichtangaben
smime.p7s
Description: S/MIME cryptographic signature
_______________________________________________ Openvas-discuss mailing list [email protected] https://lists.wald.intevation.org/cgi-bin/mailman/listinfo/openvas-discuss
