Class: HttpDBManagerService

Inherits:
Object
  • Object
show all
Defined in:
lib/msf/core/web_services/http_db_manager_service.rb

Instance Method Summary collapse

Instance Method Details

#start(opts) ⇒ Object


8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
# File 'lib/msf/core/web_services/http_db_manager_service.rb', line 8

def start(opts)
  parsed_options = Metasploit::Framework::ParsedOptions::RemoteDB.new
  require_environment!(parsed_options)

  if opts[:ssl]
    ssl_opts = {}
    ssl_opts[:private_key_file] = opts[:ssl_key]
    ssl_opts[:cert_chain_file] = opts[:ssl_cert]
    ssl_opts[:verify_peer] = false
    opts[:ssl] = true
    opts[:ssl_opts] = ssl_opts
  end

  init_db
  start_http_server(opts)
end