Programatically load already generated reports

Regis A. Despres's Avatar

Regis A. Despres

18 May, 2013 03:23 PM

Hello there,

I'm trying to get some old test saved in afr format back. I naivelly tried those :

coin = Arachni::Framework.new
coin.opts.repload = "/tmp/test.afr"
coin.run
coin.auditstore.issues
 => []

and

opts = Arachni::Options.instance
opts.repload = "/tmp/test.afr"
coin = Arachni::Framework.new(opts)
coin.auditstore.issues
 => []

despite the fact that:
 $ grep -C5 issues /tmp/test2.fr
- http://www.test.com/index.html
- http://www.test.com/video-admin-experience.html
- http://www.test.com/video-innovations.html
- http://www.test.com/video-the-basics.html
- http://www.test.com/video-user-experience.html
issues:
- !ruby/object:Arachni::Issue
  verification: false
  references:
    CWE: http://cwe.mitre.org/data/definitions/538.html
    OWASP: https://www.owasp.org/index.php/Forced_browsing

i might need a hand =)

--
Regis A. Despres

  1. 1 Posted by Regis A. Despre... on 18 May, 2013 03:29 PM

    Regis A. Despres's Avatar

    n.b. : the above files do not match but even when it does i'm facing the same issue =)

  2. Support Staff 2 Posted by Tasos Laskos on 18 May, 2013 03:35 PM

    Tasos Laskos's Avatar

    The repload option is for the benefit of the UIs for when you want to convert between formats. To load an AFR report programmatically you'll need to:

    Arachni::AuditStore.load( 'report.afr' ).issues
    
  3. 3 Posted by Regis A. Despre... on 18 May, 2013 03:45 PM

    Regis A. Despres's Avatar

    Great !

    Like a charm :
    coin = Arachni::AuditStore.load( '/tmp/test.afr')
    coin.issues.count
     => 13

    Many thanks !!

  4. Support Staff 4 Posted by Tasos Laskos on 18 May, 2013 03:47 PM

    Tasos Laskos's Avatar

    No worries, let me know if anything else comes up.

  5. Tasos Laskos closed this discussion on 18 May, 2013 03:47 PM.

Comments are currently closed for this discussion. You can start a new one.

Keyboard shortcuts

Generic

? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac