Sha256: 952c8006715196ad556d385edb060fa8499db492a41fa7bf491ae7501023fc63

Contents?: true

Size: 745 Bytes

Versions: 49

Compression:

Stored size: 745 Bytes

Contents

# frozen_string_literal: true

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

            next unless res.code == 200 && res.body =~ /wordpress/i

            return Model::Readme.new(target.url(path), confidence: 100, found_by: DIRECT_ACCESS)
          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

49 entries across 49 versions & 1 rubygems

Version Path
wpscan-3.8.27 app/finders/interesting_findings/readme.rb
wpscan-3.8.26 app/finders/interesting_findings/readme.rb
wpscan-3.8.25 app/finders/interesting_findings/readme.rb
wpscan-3.8.24 app/finders/interesting_findings/readme.rb
wpscan-3.8.22 app/finders/interesting_findings/readme.rb
wpscan-3.8.21 app/finders/interesting_findings/readme.rb
wpscan-3.8.20 app/finders/interesting_findings/readme.rb
wpscan-3.8.19 app/finders/interesting_findings/readme.rb
wpscan-3.8.18 app/finders/interesting_findings/readme.rb
wpscan-3.8.17 app/finders/interesting_findings/readme.rb
wpscan-3.8.16 app/finders/interesting_findings/readme.rb
wpscan-3.8.15 app/finders/interesting_findings/readme.rb
wpscan-3.8.14 app/finders/interesting_findings/readme.rb
wpscan-3.8.13 app/finders/interesting_findings/readme.rb
wpscan-3.8.12 app/finders/interesting_findings/readme.rb
wpscan-3.8.11 app/finders/interesting_findings/readme.rb
wpscan-3.8.10 app/finders/interesting_findings/readme.rb
wpscan-3.8.9 app/finders/interesting_findings/readme.rb
wpscan-3.8.8 app/finders/interesting_findings/readme.rb
wpscan-3.8.7 app/finders/interesting_findings/readme.rb