Sha256: 4090fe0401c24c0769669ebfed827b033480ee247a8437724b1f4bc3ad41b012

Contents?: true

Size: 735 Bytes

Versions: 7

Compression:

Stored size: 735 Bytes

Contents

module WPScan
  module Finders
    module InterestingFindings
      # Readme.html finder
      class Readme < CMSScanner::Finders::Finder
        # @return [ InterestingFinding ]
        def aggressive(_opts = {})
          potential_files.each do |file|
            url = target.url(file)
            res = Browser.get(url)

            if res.code == 200 && res.body =~ /wordpress/i
              return WPScan::Readme.new(url, confidence: 100, found_by: DIRECT_ACCESS)
            end
          end
          nil
        end

        # @retun [ Array<String> ] The list of potential readme files
        def potential_files
          %w[readme.html olvasdel.html lisenssi.html liesmich.html]
        end
      end
    end
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
wpscan-3.4.5 app/finders/interesting_findings/readme.rb
wpscan-3.4.4 app/finders/interesting_findings/readme.rb
wpscan-3.4.3 app/finders/interesting_findings/readme.rb
wpscan-3.4.2 app/finders/interesting_findings/readme.rb
wpscan-3.4.1 app/finders/interesting_findings/readme.rb
wpscan-3.4.0 app/finders/interesting_findings/readme.rb
wpscan-3.3.3 app/finders/interesting_findings/readme.rb