Why show `stringify_keys': wrong number of arguments (1 for 0) (ArgumentError) ?

drewz's Avatar

drewz

02 Sep, 2014 07:05 AM

Hi,
I get a below error, when use aracni 1.0. below is my code, please check .thanks

my code:

   def  launch_audit(host,path,cookie=nil)
        options = Arachni::Options.instance
        options.audit.forms = true
        options.audit.links = true
        options.audit.headers = true
        options.platforms = ["linux"]
        options.url = host.to_s
                options.scope.restrict_paths = path
        options.http.cookie_string = "#{cookie}"
        
                framework = Arachni::Framework.new(options)
                framework.checks.load("xss")

        puts framework.report.issues    
        framework.run
    end

get error:

/.rbenv/versions/1.9.3-p545/lib/ruby/gems/1.9.1/gems/activesupport-4.1.4/lib/active_support/core_ext/hash/keys.rb:31:in `stringify_keys': wrong number of arguments (1 for 0) (ArgumentError)
    from /.rbenv/versions/1.9.3-p545/lib/ruby/gems/1.9.1/gems/arachni-1.0/lib/arachni/option_group.rb:57:in `to_rpc_data'
    from /.rbenv/versions/1.9.3-p545/lib/ruby/gems/1.9.1/gems/arachni-1.0/lib/arachni/options.rb:331:in `block in to_rpc_data'
    from /.rbenv/versions/1.9.3-p545/lib/ruby/gems/1.9.1/gems/arachni-1.0/lib/arachni/options.rb:325:in `each'
    from /.rbenv/versions/1.9.3-p545/lib/ruby/gems/1.9.1/gems/arachni-1.0/lib/arachni/options.rb:325:in `to_rpc_data'
    from /.rbenv/versions/1.9.3-p545/lib/ruby/gems/1.9.1/gems/arachni-1.0/lib/arachni/ruby/object.rb:23:in `to_rpc_data_or_self'
    from /.rbenv/versions/1.9.3-p545/lib/ruby/gems/1.9.1/gems/arachni-1.0/lib/arachni/report.rb:283:in `prepare_options'
    from /.rbenv/versions/1.9.3-p545/lib/ruby/gems/1.9.1/gems/arachni-1.0/lib/arachni/report.rb:72:in `options='
    from /.rbenv/versions/1.9.3-p545/lib/ruby/gems/1.9.1/gems/arachni-1.0/lib/arachni/report.rb:42:in `block in initialize'
    from /.rbenv/versions/1.9.3-p545/lib/ruby/gems/1.9.1/gems/arachni-1.0/lib/arachni/report.rb:42:in `each'
    from /.rbenv/versions/1.9.3-p545/lib/ruby/gems/1.9.1/gems/arachni-1.0/lib/arachni/report.rb:42:in `initialize'
    from /.rbenv/versions/1.9.3-p545/lib/ruby/gems/1.9.1/gems/arachni-1.0/lib/arachni/framework.rb:437:in `new'
    from /.rbenv/versions/1.9.3-p545/lib/ruby/gems/1.9.1/gems/arachni-1.0/lib/arachni/framework.rb:437:in `report'
  1. Support Staff 1 Posted by Tasos Laskos on 02 Sep, 2014 11:14 AM

    Tasos Laskos's Avatar

    Looks like both Arachni and ActiveSupport add the same method to the Ruby Hash object, although each method expects different arguments.

    I'll sort this out and push a fix and will let you know when it's ready.

    Cheers

  2. Support Staff 2 Posted by Tasos Laskos on 02 Sep, 2014 02:55 PM

    Tasos Laskos's Avatar

    By the way, may I inquire as to the nature of your deployment of Arachni? If you're integrating it with a commercial SaaS solution you will need to acquire a commercial license.

  3. 3 Posted by drewz on 03 Sep, 2014 12:56 AM

    drewz's Avatar

    yes, I know the license. not for commerical

  4. Support Staff 4 Posted by Tasos Laskos on 03 Sep, 2014 01:11 AM

    Tasos Laskos's Avatar

    The fix has been pushed to the experimental branch and a bugfix release will likely take place over the weekend.

    I'll keep this issues open until then.

    Cheers

  5. Support Staff 5 Posted by Tasos Laskos on 07 Sep, 2014 08:57 PM

    Tasos Laskos's Avatar

    Done.

  6. Tasos Laskos closed this discussion on 07 Sep, 2014 08:57 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