Module: RemoteRouteDataService
Constant Summary
collapse
- ROUTE_API_PATH =
'/api/v1/routes'
- ROUTE_MDM_CLASS =
'Mdm::Route'
Instance Method Summary
collapse
#json_to_hash, #json_to_mdm_object, #process_file, #to_ar
Instance Method Details
#report_session_route(opts) ⇒ Object
9
10
11
12
|
# File 'lib/metasploit/framework/data_service/remote/http/remote_route_data_service.rb', line 9
def report_session_route(opts)
opts[:session] = opts[:session].db_record
json_to_mdm_object(self.post_data(ROUTE_API_PATH, opts), ROUTE_MDM_CLASS).first
end
|
#report_session_route_remove(opts) ⇒ Object
14
15
16
17
18
|
# File 'lib/metasploit/framework/data_service/remote/http/remote_route_data_service.rb', line 14
def report_session_route_remove(opts)
opts[:session] = opts[:session].db_record
path = get_path_select(opts, ROUTE_API_PATH) + '/remove'
json_to_mdm_object(self.post_data(path, opts), ROUTE_MDM_CLASS).first
end
|