module PWN::Plugins::IBMAppscan
def self.create_scan_based_on_template(opts = {})
def self.create_scan_based_on_template(opts = {}) [:appscan_obj] [:template_id].to_i scan_name].to_s.scrub scan_desc].to_s.scrub _rest_call( scan_obj, st, eritems?templateId=#{template_id}", =#{scan_name}&description=#{scan_desc}" o Use Data Structure ng it to the End User XML on their own. ] = response ] = Nokogiri::XML(response) = scan[:xml_response].xpath( tems/xmlns:content-scan-job/@href' id] = scan[:xml_response].xpath( tems/xmlns:content-scan-job/xmlns:id' scan[:xml_response].xpath( tems/xmlns:content-scan-job/xmlns:name' scan[:xml_response].xpath( tems/xmlns:content-scan-job/xmlns:description' r_url] = scan[:xml_response].xpath( tems/xmlns:content-scan-job/xmlns:parent/@href' r_id] = scan[:xml_response].xpath( tems/xmlns:content-scan-job/xmlns:parent/xmlns:id' can[:xml_response].xpath( tems/xmlns:content-scan-job/xmlns:contact' scan[:xml_response].xpath( tems/xmlns:content-scan-job/xmlns:state/xmlns:id' = scan[:xml_response].xpath( tems/xmlns:content-scan-job/xmlns:state/xmlns:name' scan[:xml_response].xpath( tems/xmlns:content-scan-job/xmlns:action/xmlns:id' = scan[:xml_response].xpath( tems/xmlns:content-scan-job/xmlns:action/xmlns:name' = scan[:xml_response].xpath( tems/xmlns:content-scan-job/xmlns:options/@href' url] = scan[:xml_response].xpath( tems/xmlns:report-pack/@href' id] = scan[:xml_response].xpath( tems/xmlns:report-pack/xmlns:id' = scan[:xml_response].xpath( tems/xmlns:report-pack/xmlns:reports/@href' t] = scan[:xml_response].xpath( tems/xmlns:report-pack/xmlns:reports/xmlns:count' => e ror #{e}:\nREST response returned:\n#{response}")