Class: WPScan::Finders::WpVersion::SitemapGenerator
- Inherits:
-
CMSScanner::Finders::Finder
- Object
- CMSScanner::Finders::Finder
- WPScan::Finders::WpVersion::SitemapGenerator
- Defined in:
- app/finders/wp_version/sitemap_generator.rb
Overview
Sitemap Generator Version Finder
Instance Method Summary collapse
Instance Method Details
#aggressive(_opts = {}) ⇒ WpVersion
7 8 9 10 11 12 13 14 15 16 17 18 19 |
# File 'app/finders/wp_version/sitemap_generator.rb', line 7 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 |