Top Level Namespace

Defined Under Namespace

Modules: Arachni, Enumerable, Nokogiri, Typhoeus Classes: Array, Hash, IO, Object, Set, String

Instance Method Summary collapse

Instance Method Details

#ap(obj) ⇒ Object



20
21
22
# File 'lib/arachni.rb', line 20

def ap( obj )
    super obj, raw: true
end

#dispatcher_connect(*args) ⇒ RPC::Client::Dispatcher

Parameters:

  • url (String)

    URL of the Dispatcher.

  • options (Hash)

    Options for the RPC client.

Returns:

  • (RPC::Client::Dispatcher)


43
44
45
# File 'lib/arachni/processes/helpers/dispatchers.rb', line 43

def dispatcher_connect( *args )
    Arachni::Processes::Dispatchers.connect( *args )
end

#dispatcher_kill(*args) ⇒ Object

Parameters:

  • url (String)

    URL of the Dispatcher to kill.



31
32
33
# File 'lib/arachni/processes/helpers/dispatchers.rb', line 31

def dispatcher_kill( *args )
    Arachni::Processes::Dispatchers.kill( *args )
end

#dispatcher_killallObject



37
38
39
# File 'lib/arachni/processes/helpers/dispatchers.rb', line 37

def dispatcher_killall
    Arachni::Processes::Dispatchers.killall
end

#dispatcher_light_spawn(*args) ⇒ Object



25
26
27
# File 'lib/arachni/processes/helpers/dispatchers.rb', line 25

def dispatcher_light_spawn( *args )
    Arachni::Processes::Dispatchers.light_spawn( *args )
end

#dispatcher_spawn(*args) ⇒ RPC::Client::Dispatcher

Parameters:

  • options (Hash)

    To be passed to Arachni::Options#set. Allows ‘address` instead of `rpc_address` and `port` instead of `rpc_port`.

  • block (Block)

    Passed Arachni::Options to configure the Dispatcher options.

Returns:

  • (RPC::Client::Dispatcher)


19
20
21
# File 'lib/arachni/processes/helpers/dispatchers.rb', line 19

def dispatcher_spawn( *args )
    Arachni::Processes::Dispatchers.spawn( *args )
end

#instance_connect(*args) ⇒ RPC::Client::Instance

Parameters:

  • url (String)

    URL of the Dispatcher.

  • token (String)

    Authentication token – only need be provided once.

Returns:

  • (RPC::Client::Instance)


43
44
45
# File 'lib/arachni/processes/helpers/instances.rb', line 43

def instance_connect( *args )
    Arachni::Processes::Instances.connect( *args )
end

#instance_dispatcher_spawn(*args) ⇒ RPC::Client::Instance

Returns:

  • (RPC::Client::Instance)


31
32
33
# File 'lib/arachni/processes/helpers/instances.rb', line 31

def instance_dispatcher_spawn( *args )
    Arachni::Processes::Instances.dispatcher_spawn( *args )
end

#instance_grid_spawn(*args) ⇒ RPC::Client::Instance

Parameters:

Returns:

  • (RPC::Client::Instance)


25
26
27
# File 'lib/arachni/processes/helpers/instances.rb', line 25

def instance_grid_spawn( *args )
    Arachni::Processes::Instances.grid_spawn( *args )
end

#instance_killallObject



37
38
39
# File 'lib/arachni/processes/helpers/instances.rb', line 37

def instance_killall
    Arachni::Processes::Instances.killall
end

#instance_spawn(*args) ⇒ RPC::Client::Instance

Parameters:

  • options (Hash)

    To be passed to Arachni::Options#set. Allows ‘address` instead of `rpc_address` and `port` instead of `rpc_port`.

  • block (Block)

    Passed Arachni::Options to configure the Dispatcher options.

Returns:

  • (RPC::Client::Instance)


19
20
21
# File 'lib/arachni/processes/helpers/instances.rb', line 19

def instance_spawn( *args )
    Arachni::Processes::Instances.spawn( *args )
end

#instance_token_for(*args) ⇒ String

Returns Cached authentication token for the given Instance.

Parameters:

  • client_or_url (String, RPC::Client::Instance)

Returns:

  • (String)

    Cached authentication token for the given Instance.



49
50
51
# File 'lib/arachni/processes/helpers/instances.rb', line 49

def instance_token_for( *args )
    Arachni::Processes::Instances.token_for( *args )
end

#process_fork_em(*args, &block) ⇒ Object

Parameters:

  • block (Block)

    Block to fork and run inside EventMachine’s reactor thread – its output will be discarded..



49
50
51
# File 'lib/arachni/processes/helpers/processes.rb', line 49

def process_fork_em( *args, &block )
    Arachni::Processes::Manager.fork_em( *args, &block )
end

#process_kill(*args) ⇒ Object

Parameters:

  • pid (Integer)

    PID of the process to kill.



25
26
27
# File 'lib/arachni/processes/helpers/processes.rb', line 25

def process_kill( *args )
    Arachni::Processes::Manager.kill( *args )
end

#process_kill_em(*args) ⇒ Object



19
20
21
# File 'lib/arachni/processes/helpers/processes.rb', line 19

def process_kill_em( *args )
    Arachni::Processes::Manager.kill_em( *args )
end

#process_kill_many(*args) ⇒ Object

Parameters:

  • pids (Array<Integer>)

    PIDs of the process to #kill.



37
38
39
# File 'lib/arachni/processes/helpers/processes.rb', line 37

def process_kill_many( *args )
    Arachni::Processes::Manager.kill_many( *args )
end

#process_killall(*args) ⇒ Object



31
32
33
# File 'lib/arachni/processes/helpers/processes.rb', line 31

def process_killall( *args )
    Arachni::Processes::Manager.killall( *args )
end

#process_quiet_fork(*args, &block) ⇒ Object

Parameters:

  • block (Block)

    Block to fork and discard its output.



43
44
45
# File 'lib/arachni/processes/helpers/processes.rb', line 43

def process_quiet_fork( *args, &block )
    Arachni::Processes::Manager.quiet_fork( *args, &block )
end