Programatically load already generated reports
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
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
1 Posted by Regis A. Despre... on 18 May, 2013 03:29 PM
n.b. : the above files do not match but even when it does i'm facing the same issue =)
Support Staff 2 Posted by Tasos Laskos on 18 May, 2013 03:35 PM
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:3 Posted by Regis A. Despre... on 18 May, 2013 03:45 PM
Great !
Like a charm :
coin = Arachni::AuditStore.load( '/tmp/test.afr')
coin.issues.count
=> 13
Many thanks !!
Support Staff 4 Posted by Tasos Laskos on 18 May, 2013 03:47 PM
No worries, let me know if anything else comes up.
Tasos Laskos closed this discussion on 18 May, 2013 03:47 PM.