Method: Arachni::Plugins::Script#run

Defined in:
components/plugins/script.rb

#runObject



16
17
18
19
20
21
22
23
24
25
26
# File 'components/plugins/script.rb', line 16

def run
    if defined?( Arachni::RPC::Server::Framework ) &&
        framework.is_a?( Arachni::RPC::Server::Framework )
        print_error 'Cannot be executed while running as an RPC server.'
        return
    end

    print_status "Loading #{options[:path]}"
    eval IO.read( options[:path] )
    print_status 'Done!'
end