Sha256: a765cd20a8091e27d0265c4e93c538627ec1d1bce142fb14ed2f83870b989b4f
Contents?: true
Size: 985 Bytes
Versions: 4
Compression:
Stored size: 985 Bytes
Contents
# frozen_string_literal: true module Yawast module Scanner module Plugins module Applications module CMS class Generic def self.get_generator(body) regex = /<meta name="generator[^>]+content\s*=\s*['"]([^'"]+)['"][^>]*>/ match = body.match regex if match Yawast::Utilities.puts_info "Meta Generator: #{match[1]}" Yawast::Shared::Output.log_hash 'vulnerabilities', 'cms_meta_generator_exposed', {vulnerable: true, generator: match[1]} else Yawast::Shared::Output.log_hash 'vulnerabilities', 'cms_meta_generator_exposed', {vulnerable: false, generator: nil} end end end end end end end end
Version data entries
4 entries across 4 versions & 1 rubygems