Module: RouteDataProxy

Defined in:
lib/metasploit/framework/data_service/proxy/route_data_proxy.rb

Instance Method Summary collapse

Instance Method Details

#report_session_route(opts) ⇒ Object



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

def report_session_route(opts)
  begin
    self.data_service_operation do |data_service|
      add_opts_workspace(opts)
      data_service.report_session_route(opts)
    end
  rescue => e
    self.log_error(e, "Problem reporting route")
  end
end

#report_session_route_remove(opts) ⇒ Object



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

def report_session_route_remove(opts)
  begin
    self.data_service_operation do |data_service|
      add_opts_workspace(opts)
      data_service.report_session_route_remove(opts)
    end
  rescue => e
    self.log_error(e, "Problem removing route")
  end
end