Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix NBE report parsing with OpenVAS. #308

Merged
merged 5 commits into from
Apr 8, 2016

Conversation

randakar
Copy link
Contributor

@randakar randakar commented Apr 1, 2016

With current debian versions of OpenVAS retrieving the report breaks. Original code was very fragile, in fact.
Replaced the search for the report content with a regular expression that should not break so easily.

Note: The OpenVAS XML output does not validate as proper XML.
That's the root of this problem - since it can't be validated the script resorts to manual text parsing, which naturally breaks when the output format changes even slightly.
Note2: This code does not check if we actually got a result. That still needs to be added, but if that is going to be done it should be done with everything in this script, not just the bit that gets the report from OpenVAS's response.

With current debian versions of OpenVAS retrieving the report breaks. Original code was very fragile, in fact.
Replaced the search for the report content with a regular expression that should not break so easily.

Note: The OpenVAS XML output does not validate as proper XML.
That's the root of this problem - since it can't be validated the script resorts to manual text parsing, which naturally breaks when the output format changes even slightly.
Note2: This code does not check if we actually got a result. That still needs to be added, but if that is going to be done it should be done with *everything* in this script, not just the bit that gets the report from OpenVAS's response.
MrSeccubus added a commit that referenced this pull request Apr 8, 2016
OpenVAS6 integration now doesn;t need the omp binary and doesn't rely on manual
parsing of XML
@MrSeccubus MrSeccubus merged commit 941ea0a into seccubus:master Apr 8, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants