Module: RemoteDbExportDataService
- Includes:
- ResponseDataHelper
- Included in:
- DataServiceAutoLoader
- Defined in:
- lib/metasploit/framework/data_service/remote/http/remote_db_export_data_service.rb
Constant Summary collapse
- DB_EXPORT_API_PATH =
'/api/v1/db-export'
Instance Method Summary collapse
Methods included from ResponseDataHelper
#json_to_hash, #json_to_mdm_object, #process_file, #to_ar
Instance Method Details
#run_db_export(opts) ⇒ Object
8 9 10 11 12 |
# File 'lib/metasploit/framework/data_service/remote/http/remote_db_export_data_service.rb', line 8 def run_db_export(opts) response = json_to_hash(self.get_data(DB_EXPORT_API_PATH, nil, opts)) process_file(response[:db_export_file], opts[:path]) end |