sullo / nikto

Nikto web server scanner
Other
8.36k stars 1.21k forks source link

Invalid XML when appending to the report #28

Closed sullo closed 8 years ago

sullo commented 11 years ago

Sorry to reopen this again, the XML looked OK but I've just started parsing it for the Dradis importer and realised that it still isn't valid.

The problem is that the current format is:

<niktoscan>

<scandetails>...</scandetails>

</niktoscan> <niktoscan>

<scandetails>...</scandetails>

</niktoscan>

without an overall wrapper tag. Parsers consider this invalid, it should look something like this:

<nikto>

<niktoscan>

<scandetails>...</scandetails>

</niktoscan> <niktoscan>

<scandetails>...</scandetails>

</niktoscan>

</nikto>

to be valid. For now I'm going to force in the open and close tags so that I can parse it. Adding this shouldn't be too hard I don't think but it will change the format and so probably break the file for anyone else parsing it. Not sure what to suggest.

cc @digininja

sullo commented 8 years ago

I think this is a resolved. Will require additional testing from third-parties using the XML/DTD.