Menu

#1 Problem converting arf file

1.0
open
nobody
None
2016-01-12
2015-08-31
No

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"

Related

Tickets: #1

Discussion

  • nilsum

    nilsum - 2015-08-31

    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:


    [tickets:#1] http://sourceforge.net/p/arftoverinice/tickets/1/
    Problem converting arf file

    Status: open
    Milestone: 1.0
    Created: Mon Aug 31, 2015 01:46 PM UTC by Mike Iliopoulos
    Last Updated: Mon Aug 31, 2015 01:46 PM UTC
    Owner: nobody

    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"


    Sent from sourceforge.net because you indicated interest in
    https://sourceforge.net/p/arftoverinice/tickets/1/

    To unsubscribe from further messages, please visit
    https://sourceforge.net/auth/subscriptions/

     

    Related

    Tickets: #1

    • Mike Iliopoulos

      Mike Iliopoulos - 2015-09-01

      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:

      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:


      [tickets:#1] http://sourceforge.net/p/arftoverinice/tickets/1/
      http://sourceforge.net/p/arftoverinice/tickets/1/
      http://sourceforge.net/p/arftoverinice/tickets/1/ Problem converting arf
      file

      Status: open
      Milestone: 1.0
      Created: Mon Aug 31, 2015 01:46 PM UTC by Mike Iliopoulos
      Last Updated: Mon Aug 31, 2015 01:46 PM UTC
      Owner: nobody

      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"


      Sent from sourceforge.net because you indicated interest in
      https://sourceforge.net/p/arftoverinice/tickets/1/

      To unsubscribe from further messages, please visit
      https://sourceforge.net/auth/subscriptions/


      Status: open
      Milestone: 1.0
      Created: Mon Aug 31, 2015 01:46 PM UTC by Mike Iliopoulos
      Last Updated: Mon Aug 31, 2015 01:46 PM UTC
      Owner: nobody

      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"


      Sent from sourceforge.net because you indicated interest in
      https://sourceforge.net/p/arftoverinice/tickets/1/

      To unsubscribe from further messages, please visit
      https://sourceforge.net/auth/subscriptions/

       

      Related

      Tickets: #1

      • nilsum

        nilsum - 2015-09-01

        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:

        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
        nilsum@users.sf.net wrote:

        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:
        
        ------------------------------------------------------------------------
        
        /[tickets:#1] <http://sourceforge.net/p/arftoverinice/tickets/1/>
        http://sourceforge.net/p/arftoverinice/tickets/1/
        http://sourceforge.net/p/arftoverinice/tickets/1/
        http://sourceforge.net/p/arftoverinice/tickets/1/ Problem
        converting arf
        file/
        
        /Status:/ open
        /Milestone:/ 1.0
        /Created:/ Mon Aug 31, 2015 01:46 PM UTC by Mike Iliopoulos
        /Last Updated:/ Mon Aug 31, 2015 01:46 PM UTC
        /Owner:/ nobody
        
        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"
        
        ------------------------------------------------------------------------
        
        Sent from sourceforge.net because you indicated interest in
        https://sourceforge.net/p/arftoverinice/tickets/1/
        
        To unsubscribe from further messages, please visit
        https://sourceforge.net/auth/subscriptions/
        
        ------------------------------------------------------------------------
        
          * [tickets:#1]
            <http://sourceforge.net/p/arftoverinice/tickets/1/>
            http://sourceforge.net/p/arftoverinice/tickets/1/ Problem
            converting arf file*
        
        /Status:/ open
        /Milestone:/ 1.0
        /Created:/ Mon Aug 31, 2015 01:46 PM UTC by Mike Iliopoulos
        /Last Updated:/ Mon Aug 31, 2015 01:46 PM UTC
        /Owner:/ nobody
        
        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"
        
        ------------------------------------------------------------------------
        
        Sent from sourceforge.net because you indicated interest in
        https://sourceforge.net/p/arftoverinice/tickets/1/
        
        To unsubscribe from further messages, please visit
        https://sourceforge.net/auth/subscriptions/
        

        [tickets:#1] http://sourceforge.net/p/arftoverinice/tickets/1/
        Problem converting arf file

        Status: open
        Milestone: 1.0
        Created: Mon Aug 31, 2015 01:46 PM UTC by Mike Iliopoulos
        Last Updated: Mon Aug 31, 2015 01:46 PM UTC
        Owner: nobody

        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"


        Sent from sourceforge.net because you indicated interest in
        https://sourceforge.net/p/arftoverinice/tickets/1/

        To unsubscribe from further messages, please visit
        https://sourceforge.net/auth/subscriptions/

         

        Related

        Tickets: #1

  • Theodor Carp

    Theodor Carp - 2015-12-11

    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

     
    • nilsum

      nilsum - 2015-12-11

      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:

      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


      [tickets:#1] http://sourceforge.net/p/arftoverinice/tickets/1/
      Problem converting arf file

      Status: open
      Milestone: 1.0
      Created: Mon Aug 31, 2015 01:46 PM UTC by Mike Iliopoulos
      Last Updated: Mon Aug 31, 2015 01:46 PM UTC
      Owner: nobody

      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"


      Sent from sourceforge.net because you indicated interest in
      https://sourceforge.net/p/arftoverinice/tickets/1/

      To unsubscribe from further messages, please visit
      https://sourceforge.net/auth/subscriptions/

       

      Related

      Tickets: #1

      • Theodor Carp

        Theodor Carp - 2015-12-11

        hi Nils,

        looking forward to an update from you.

        many thanks,
        T

         
        • nilsum

          nilsum - 2016-03-06

          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:

          hi Nils,

          looking forward to an update from you.

          many thanks,
          T


          [tickets:#1] http://sourceforge.net/p/arftoverinice/tickets/1/
          Problem converting arf file

          Status: open
          Milestone: 1.0
          Created: Mon Aug 31, 2015 01:46 PM UTC by Mike Iliopoulos
          Last Updated: Fri Dec 11, 2015 09:44 AM UTC
          Owner: nobody

          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"


          Sent from sourceforge.net because you indicated interest in
          https://sourceforge.net/p/arftoverinice/tickets/1/

          To unsubscribe from further messages, please visit
          https://sourceforge.net/auth/subscriptions/

           

          Related

          Tickets: #1

  • Theodor Carp

    Theodor Carp - 2016-01-12

    hi Nils,

    any update?

    best
    T

     

Log in to post a comment.