Sha256: 5a9945547bc3127249b6695523236d373f8d6d76fbf0a9d16e49dab145427b67
Contents?: true
Size: 721 Bytes
Versions: 6
Compression:
Stored size: 721 Bytes
Contents
module WPScan module Finders module WpVersion # Sitemap Generator Version Finder class SitemapGenerator < CMSScanner::Finders::Finder # @return [ WpVersion ] def aggressive(_opts = {}) target.comments_from_page(%r{\Agenerator="wordpress/([^"]+)"\z}i, 'sitemap.xml') do |match, node| next unless WPScan::WpVersion.valid?(match[1]) return WPScan::WpVersion.new( match[1], found_by: 'Sitemap Generator (Aggressive Detection)', confidence: 80, interesting_entries: ["#{target.url('sitemap.xml')}, #{node.to_s.strip}"] ) end nil end end end end end
Version data entries
6 entries across 6 versions & 1 rubygems