Grab session_dto workspace from host

GSoC/Meterpreter_Web_Console
James Barnett 2018-04-18 17:38:42 -05:00
parent 348eb293d0
commit aa40ef1789
No known key found for this signature in database
GPG Key ID: 647983861A4EC5EA
2 changed files with 3 additions and 3 deletions

View File

@ -1,7 +1,7 @@
module SessionDataProxy
def report_session(opts)
begin
data_service = self.get_data_service()
data_service = self.get_data_service
data_service.report_session(opts)
rescue Exception => e
self.log_error(e, "Problem reporting session")

View File

@ -119,12 +119,12 @@ module Msf::DBManager::Session
return if not active
::ActiveRecord::Base.connection_pool.with_connection {
workspace = find_workspace(session_dto[:workspace])
host_data = session_dto[:host_data]
workspace = workspaces({ name: host_data[:workspace].name })
h_opts = {}
h_opts[:host] = host_data[:host]
h_opts[:arch] = host_data[:arch]
h_opts[:workspace] = workspace
h_opts[:workspace] = host_data[:workspace]
host = find_or_create_host(h_opts)
session_data = session_dto[:session_data]