Module: RemoteMsfDataService

Includes:
ResponseDataHelper
Included in:
DataServiceAutoLoader
Defined in:
lib/metasploit/framework/data_service/remote/http/remote_msf_data_service.rb

Constant Summary collapse

MSF_API_PATH =
'/api/v1/msf'
MSF_VERSION_API_PATH =
"#{MSF_API_PATH}/version"

Instance Method Summary collapse

Methods included from ResponseDataHelper

#json_to_hash, #json_to_mdm_object, #process_file, #process_response, #to_ar

Instance Method Details

#get_msf_versionObject



9
10
11
# File 'lib/metasploit/framework/data_service/remote/http/remote_msf_data_service.rb', line 9

def get_msf_version
  json_to_hash(self.get_data(MSF_VERSION_API_PATH, nil, nil))
end