Sha256: 041a1dfd7cf4cfc7ff6a9ffa9d904969738d3007cc1fd47ac085931e656806f8

Contents?: true

Size: 1.08 KB

Versions: 2

Compression:

Stored size: 1.08 KB

Contents

=begin
    Copyright 2010-2017 Sarosys LLC <http://www.sarosys.com>

    This file is part of the Arachni Framework project and is subject to
    redistribution and commercial restrictions. Please see the Arachni Framework
    web site for more information on licensing and terms of use.
=end

require_relative 'server/option_parser'

module Arachni

require Options.paths.lib + 'rest/server'
require_relative '../utilities'

module UI::CLI
module Rest

# @author Tasos "Zapotek" Laskos <tasos.laskos@arachni-scanner.com>
class Server

    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

end

end
end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
arachni-1.5.1 ui/cli/rest/server.rb
arachni-1.5 ui/cli/rest/server.rb