Module: PayloadDataProxy

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

Instance Method Summary collapse

Instance Method Details

#create_payload(opts) ⇒ Object



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

def create_payload(opts)
  begin
    self.data_service_operation do |data_service|
      data_service.create_payload(opts)
    end
  rescue => e
    self.log_error(e, "Problem creating payload")
  end
end

#delete_payload(opts) ⇒ Object



33
34
35
36
37
38
39
40
41
# File 'lib/metasploit/framework/data_service/proxy/payload_data_proxy.rb', line 33

def delete_payload(opts)
  begin
    self.data_service_operation do |data_service|
      data_service.delete_payload(opts)
    end
  rescue => e
    self.log_error(e, "Problem deleting payload")
  end
end

#payloads(opts) ⇒ Object



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

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

#update_payload(opts) ⇒ Object



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

def update_payload(opts)
  begin
    self.data_service_operation do |data_service|
      data_service.update_payload(opts)
    end
  rescue => e
    self.log_error(e, "Problem updating payload")
  end
end