Module: RemoteExploitDataService

Included in:
DataServiceAutoLoader
Defined in:
lib/metasploit/framework/data_service/remote/http/remote_exploit_data_service.rb

Constant Summary collapse

EXPLOIT_API_PATH =
'/api/v1/exploits'

Instance Method Summary collapse

Instance Method Details

#report_exploit_attempt(host, opts) ⇒ Object



4
5
6
7
8
# File 'lib/metasploit/framework/data_service/remote/http/remote_exploit_data_service.rb', line 4

def report_exploit_attempt(host, opts)
  opts[:host] = host
  opts[:exploit_report_type] = "attempt"
  self.post_data_async(EXPLOIT_API_PATH, opts)
end

#report_exploit_failure(opts) ⇒ Object



10
11
12
13
# File 'lib/metasploit/framework/data_service/remote/http/remote_exploit_data_service.rb', line 10

def report_exploit_failure(opts)
  opts[:exploit_report_type] = "failure"
  self.post_data_async(EXPLOIT_API_PATH, opts)
end

#report_exploit_success(opts) ⇒ Object



15
16
17
18
# File 'lib/metasploit/framework/data_service/remote/http/remote_exploit_data_service.rb', line 15

def report_exploit_success(opts)
  opts[:exploit_report_type] = "success"
  self.post_data_async(EXPLOIT_API_PATH, opts)
end