Saving to output directory

Patrick's Avatar

Patrick

16 Feb, 2013 11:38 AM

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:inopen' [-] /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:insave' [-] /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:inrun_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:inrun' [-] /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?

  1. Support Staff 1 Posted by Tasos Laskos on 16 Feb, 2013 02:17 PM

    Tasos Laskos's Avatar

    That's a bit strange, could you paste the CLI params please?

  2. 2 Posted by Patrick on 16 Feb, 2013 04:53 PM

    Patrick's Avatar

    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. 3 Posted by Patrick on 16 Feb, 2013 05:01 PM

    Patrick's Avatar

    That should be

    reports: 
      afr:
        outfile: output/
      xml:
        outfile: output/
    
  4. Support Staff 4 Posted by Tasos Laskos on 16 Feb, 2013 05:15 PM

    Tasos Laskos's Avatar

    Thanks, I'll try to reproduce it too.

  5. Support Staff 5 Posted by Tasos Laskos on 22 Feb, 2013 06:29 PM

    Tasos Laskos's Avatar

    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.

  6. Tasos Laskos closed this discussion on 22 Feb, 2013 06:29 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