Module: VulnAttemptDataProxy

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

Instance Method Summary collapse

Instance Method Details

#report_vuln_attempt(vuln, opts) ⇒ Object


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

def report_vuln_attempt(vuln, opts)
  begin
    self.data_service_operation do |data_service|
      add_opts_workspace(opts)
      data_service.report_vuln_attempt(vuln, opts)
    end
  rescue => e
    self.log_error(e, "Problem reporting vulnerability attempts")
  end
end

#vuln_attempts(opts) ⇒ Object


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

def vuln_attempts(opts)
  begin
    self.data_service_operation do |data_service|
      data_service.vuln_attempts(opts)
    end
  rescue => e
    self.log_error(e, "Problem retrieving vulnerability attempts")
  end
end