Problem converting arf file
ARF to Verinice .vna conversion filter.
Status: Beta
Brought to you by:
nilsum
The script works great with ARFReport.xml, the generated vna file gets imported as expected and works.
On the other hand, when I try to convert any other ARF file from openvas I get the following error:
"Traceback (most recent call last):
File "arf-to-verinice.py", line 372, in <module>
match_report_host_start(doc, children, task_id, ipaddr)
File "arf-to-verinice.py", line 225, in match_report_host_start
cpe = doc.xpath('//arf:assets/arf:asset[@id="os_h_%s_1"]/ai:software/arf:cpe/text()'%(addr),namespaces=ns)[0]
IndexError: list index out of range"
Thanks for you bug report, Mike.
Could you please send me an anonymised ARF report that the filter throws
an error on in order to facilitate the debugging? I need to find out why
the regexp for detecting Assets does not match.
Kind regards,
Nils Ulltveit-Moe
On 31. aug. 2015 15:46, Mike Iliopoulos wrote:
Related
Tickets: #1
Thanks for your fast reply.
I have attached a report that throws the error and an image of this
happening.
On Mon, Aug 31, 2015 at 10:45 PM, nilsum nilsum@users.sf.net wrote:
Related
Tickets: #1
Hi Mike,
I did not receive the attachment. Can you please send it directly to me
(nils<at>u-moe.no)? The attachment may have been stripped off by the
Sourceforge listserver.
Kind regards,
Nils
On 01. sep. 2015 12:34, Mike Iliopoulos wrote:
Related
Tickets: #1
Hi,
i'm also receiving the same error:
./arf-to-verinice.py -a report-78533642-0a8a-4d77-af39-08e8acc2ecef.xml -o "course" -f dmz.vna
Traceback (most recent call last):
File "./arf-to-verinice.py", line 372, in <module>
match_report_host_start(doc, children, task_id, ipaddr)
File "./arf-to-verinice.py", line 225, in match_report_host_start
cpe = doc.xpath('//arf:assets/arf:asset[@id="os_h_%s_1"]/ai:software/arf:cpe/text()'%(addr),namespaces=ns)[0]
IndexError: list index out of range
do you have any ideas as to why?
best
Hello Theodor,
I have unfortunately not had time to debug this, since I have been
overcommitted being involved in too many projects this autumn.
The error is basically because the regular expression on line 225 does
not match the structure of the document being converted. I have
therefore probably made some assumptions about document structure for
the .vna file in the arftoverinice.py that does not hold for all documents.
I will see if I can have a look at it during the Christmas holidays. It
should be fairly straightforward to debug this once I get started.
Kind regards,
Nils Ulltveit-Moe
Den 11. des. 2015 10:44, skrev Theodor Carp:
Related
Tickets: #1
hi Nils,
looking forward to an update from you.
many thanks,
T
Hi Theodor,
Sorry for being unresponsive.
I have not forgotten this bug report, however it has lower priority than
some of my more urgent tasks (like submitting mandatory deliverables for
an ongoing EU project).
I hope to have cleared the backlog soon, so that I can look into the
problem, perhaps during easter holidays.
Kind regards,
Nils Ulltveit-Moe
Den 11. des. 2015 12:31, skrev Theodor Carp:
Related
Tickets: #1
hi Nils,
any update?
best
T