Module: SessionEventDataProxy

Included in:
DataProxyAutoLoader
Defined in:
lib/metasploit/framework/data_service/proxy/session_event_data_proxy.rb

Instance Method Summary collapse

Instance Method Details

#report_session_event(opts) ⇒ Object



13
14
15
16
17
18
19
20
21
# File 'lib/metasploit/framework/data_service/proxy/session_event_data_proxy.rb', line 13

def report_session_event(opts)
  begin
    self.data_service_operation do |data_service|
      data_service.report_session_event(opts)
    end
  rescue => e
    self.log_error(e, "Problem reporting session event")
  end
end

#session_events(opts = {}) ⇒ Object



3
4
5
6
7
8
9
10
11
# File 'lib/metasploit/framework/data_service/proxy/session_event_data_proxy.rb', line 3

def session_events(opts = {})
  begin
    self.data_service_operation do |data_service|
      data_service.session_events(opts)
    end
  rescue => e
    self.log_error(e, "Problem retrieving session events")
  end
end