module PWN::Plugins::OpenVAS
def self.save_report(opts = {})
def self.save_report(opts = {}) [:report_type].to_s.scrub report_id].to_s.scrub :report_dir].to_s.scrub r} Does Not Exist." unless Dir.exist?( sername].to_s.scrub [:password].nil? Plugins::AuthenticationHelper.mask_password :password].to_s.scrub ts[:report_filter] 'apply_overrides=0 levels=hml rows=1000 min_qod=70 first=1 sort-reverse=severity' o_sym = 'CSV Results' = 'ITG' = 'PDF' = 'TXT' = 'XML' pe: \"#{report_type}\" not supported." _resp = Nokogiri::XML( _gvm -- /usr/bin/gvm-cli \ '#{username}' \ '#{password}' \ port_formats/>" y_name = report_formats_xml_resp.xpath( mats_response/report_format[name/text()='#{report_type_name}']" t_xml_resp_by_name.xpath('@id').text Nokogiri::XML( _gvm -- /usr/bin/gvm-cli \ '#{username}' \ '#{password}' \ ports report_id='#{report_id}' format_id='#{format_id}' filter='#{report_filter}' details='1' />" .parse( p.xpath('//modification_time') time( M-%S%z' port_xml_resp.xpath( ' ort_dir}/openvas_results-#{timestamp}.#{report_type}", 'w') do |f| t_dir}/openvas_results.#{report_type}", 'w') do |f| rict_decode64(base64_report) => e