Method: Msf::DBManager::Login#update_login

Defined in:
lib/msf/core/db_manager/login.rb

#update_login(opts) ⇒ Object



8
9
10
11
12
13
14
15
16
17
18
# File 'lib/msf/core/db_manager/login.rb', line 8

def (opts)
  ::ApplicationRecord.connection_pool.with_connection {
    wspace = Msf::Util::DBManager.process_opts_workspace(opts, framework, false)
    opts = opts.clone()
    opts[:workspace] = wspace if wspace
    id = opts.delete(:id)
     = Metasploit::Credential::Login.find(id)
    .update!(opts)
    return 
  }
end