Class: Arachni::UI::CLI::Rest::Server

Inherits:
Object
  • Object
show all
Defined in:
ui/cli/rest/server.rb,
ui/cli/rest/server/option_parser.rb

Overview

Author:

Defined Under Namespace

Classes: OptionParser

Instance Method Summary collapse

Constructor Details

#initializeServer

Returns a new instance of Server.


22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
# File 'ui/cli/rest/server.rb', line 22

def initialize
    parser = OptionParser.new
    parser.parse

    Arachni::Rest::Server.run!(
        port:            Arachni::Options.rpc.server_port,
        bind:            Arachni::Options.rpc.server_address,

        username:        parser.username,
        password:        parser.password,

        ssl_ca:          Arachni::Options.rpc.ssl_ca,
        ssl_key:         Arachni::Options.rpc.server_ssl_private_key,
        ssl_certificate: Arachni::Options.rpc.server_ssl_certificate
    )
end