Sha256: 52154900f1d36cd64ce7caed0ad15f62f202868799fa8482e14686fe9b148d06
Contents?: true
Size: 1.02 KB
Versions: 10
Compression:
Stored size: 1.02 KB
Contents
module WPScan module Finders module WpVersion # Atom Generator Version Finder class AtomGenerator < CMSScanner::Finders::Finder include Finder::WpVersion::SmartURLChecker def process_urls(urls, _opts = {}) found = Findings.new urls.each do |url| res = Browser.get_and_follow_location(url) res.html.css('generator').each do |node| next unless node.text.to_s.strip.casecmp('wordpress').zero? found << create_version( node['version'], found_by: found_by, entries: ["#{res.effective_url}, #{node.to_s.strip}"] ) end end found end def passive_urls_xpath '//link[@rel="alternate" and @type="application/atom+xml"]/@href' end def aggressive_urls(_opts = {}) %w[feed/atom/ ?feed=atom].reduce([]) do |a, uri| a << target.url(uri) end end end end end end
Version data entries
10 entries across 10 versions & 1 rubygems