Class: WPScan::Finders::WpVersion::OpmlGenerator

Inherits:
CMSScanner::Finders::Finder
  • Object
show all
Defined in:
app/finders/wp_version/opml_generator.rb

Overview

Sitemap Generator Version Finder

Instance Method Summary collapse

Instance Method Details

#aggressive(_opts = {}) ⇒ WpVersion

Returns:



7
8
9
10
11
12
13
14
15
16
17
18
19
# File 'app/finders/wp_version/opml_generator.rb', line 7

def aggressive(_opts = {})
  target.comments_from_page(%r{\Agenerator="wordpress/([^"]+)"\z}i, 'wp-links-opml.php') do |match, node|
    next unless WPScan::WpVersion.valid?(match[1])

    return WPScan::WpVersion.new(
      match[1],
      found_by: 'OPML Generator (Aggressive Detection)',
      confidence: 80,
      interesting_entries: ["#{target.url('wp-links-opml.php')}, Match: '#{node.to_s.strip}'"]
    )
  end
  nil
end