Saving to output directory
Hi again
I'm using the experimental branch and saving to an output directory. Mostly it's working fine but on one of my scans arachni didn't return any output and printed the following to standard out:
[*] Dumping audit results in 'output/'. [-] Is a directory -
output/ [-]
/usr/lib64/ruby/gems/1.9.1/gems/arachni-1.0dev/lib/arachni/audit_store.rb:140:in
initialize' [-]
/usr/lib64/ruby/gems/1.9.1/gems/arachni-1.0dev/lib/arachni/audit_store.rb:140:in
open'
[-]
/usr/lib64/ruby/gems/1.9.1/gems/arachni-1.0dev/lib/arachni/audit_store.rb:140:in
rescue in save' [-]
/usr/lib64/ruby/gems/1.9.1/gems/arachni-1.0dev/lib/arachni/audit_store.rb:137:in
save'
[-]
/usr/lib64/ruby/gems/1.9.1/gems/arachni-1.0dev/reports/afr.rb:30:in
run' [-]
/usr/lib64/ruby/gems/1.9.1/gems/arachni-1.0dev/lib/arachni/report/manager.rb:68:in
run_one'
[-]
/usr/lib64/ruby/gems/1.9.1/gems/arachni-1.0dev/lib/arachni/report/manager.rb:55:in
run' [-]
/usr/lib64/ruby/gems/1.9.1/gems/arachni-1.0dev/lib/arachni/framework.rb:178:in
run'
[-]
/usr/lib64/ruby/gems/1.9.1/gems/arachni-1.0dev/lib/arachni/ui/cli/cli.rb:104:in
`block in run'
Does this mean something went wrong?
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
Support Staff 1 Posted by Tasos Laskos on 16 Feb, 2013 02:17 PM
That's a bit strange, could you paste the CLI params please?
2 Posted by Patrick on 16 Feb, 2013 04:53 PM
I'm using the load-profile option:
Here's the relevant section
reports:
afr: outfile: output/ xml: outfile: output/
It defintely worked fine sometimes, trying to figure out if there's a pattern to it going wrong.
3 Posted by Patrick on 16 Feb, 2013 05:01 PM
That should be
Support Staff 4 Posted by Tasos Laskos on 16 Feb, 2013 05:15 PM
Thanks, I'll try to reproduce it too.
Support Staff 5 Posted by Tasos Laskos on 22 Feb, 2013 06:29 PM
From what I can tell, this happens when the directory doesn't exist, so the outfile string is treaded like a filename.
However, due to the slash at the end, it is an invalid one and this this error is thrown by
File.open
when it tries to open it for writing.You better use absolute paths when passing directories as outfiles and also make sure that the dirs exist.
Tasos Laskos closed this discussion on 22 Feb, 2013 06:29 PM.