Module: ExploitDataProxy

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

Instance Method Summary collapse

Instance Method Details

#report_exploit_attempt(host, opts) ⇒ Object



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

def report_exploit_attempt(host, opts)
  begin
    self.data_service_operation do |data_service|
      data_service.report_exploit_attempt(host, opts)
    end
  rescue => e
    self.log_error(e, "Problem reporting exploit attempt")
  end
end

#report_exploit_failure(opts) ⇒ Object



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

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

#report_exploit_success(opts) ⇒ Object



24
25
26
27
28
29
30
31
32
33
# File 'lib/metasploit/framework/data_service/proxy/exploit_data_proxy.rb', line 24

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