NoMethodError: undefined method `platforms' for nil:NilClass
We've written some automation that runs many Arachni Scans simultaneously. (We're using Sidekiq.) Occasionally (though not reliably), we see errors like this:
NoMethodError: undefined method platforms' for
nil:NilClass
gems/arachni-1.0.6/lib/arachni/check/manager.rb:62:in
[]'
gems/arachni-1.0.6/lib/arachni/component/manager.rb:117:in
block in load'
gems/arachni-1.0.6/lib/arachni/component/manager.rb:117:in
each'
gems/arachni-1.0.6/lib/arachni/component/manager.rb:117:in
load' <app-path>/arachni_scan.rb:52:in
setup'
Here's our setup method:
def setup
@log = open(log_filepath,'a')
opts = arachni_options
@framework = Arachni::Framework.new(opts)
# need to reset the framework in order to reuse it
# https://github.com/Arachni/arachni/blob/master/lib/arachni/framework.rb#L96
@framework.reset
# TODO: make this configuraable, with a sensible default
@framework.checks.load(['*'])
@framework.plugins.load('login_script')
end
Is there anything obvious I can do to improve this?
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 10 Feb, 2015 08:20 PM
Arachni's workflow is one site per scan, one scan per process, and if I'm not mistaken Sidekiq uses threads for the jobs; this can lead to all sorts of issues.
Unless you're intimately familiar with the Framework, you should be using the RPC API in order to acquire scanner instances and perform parallel scans.
Cheers
Tasos Laskos closed this discussion on 05 Mar, 2015 06:00 PM.