Sha256: 69ff06182080d4abb682e48dd5cd025e55e45436d6702020052e99417a9c101c

Contents?: true

Size: 834 Bytes

Versions: 25

Compression:

Stored size: 834 Bytes

Contents

module CMSScanner
  module Finders
    module InterestingFindings
      # SearchReplaceDB2 finder
      class SearchReplaceDB2 < Finder
        # @return [ String ] The url to the searchreplacedb2 PHP file
        def url
          target.url('searchreplacedb2.php')
        end

        # @return [ InterestingFinding ]
        def aggressive(_opts = {})
          res = NS::Browser.get(url)

          return unless res&.code == 200 && res.body =~ /by interconnect/i

          NS::InterestingFinding.new(url, confidence: 100,
                                          found_by: found_by,
                                          references: references)
        end

        def references
          { url: 'https://interconnectit.com/products/search-and-replace-for-wordpress-databases/' }
        end
      end
    end
  end
end

Version data entries

25 entries across 25 versions & 1 rubygems

Version Path
cms_scanner-0.0.41.10 app/finders/interesting_findings/search_replace_db_2.rb
cms_scanner-0.0.41.9 app/finders/interesting_findings/search_replace_db_2.rb
cms_scanner-0.0.41.8 app/finders/interesting_findings/search_replace_db_2.rb
cms_scanner-0.0.41.7 app/finders/interesting_findings/search_replace_db_2.rb
cms_scanner-0.0.41.6 app/finders/interesting_findings/search_replace_db_2.rb
cms_scanner-0.0.41.5 app/finders/interesting_findings/search_replace_db_2.rb
cms_scanner-0.0.41.4 app/finders/interesting_findings/search_replace_db_2.rb
cms_scanner-0.0.41.3 app/finders/interesting_findings/search_replace_db_2.rb
cms_scanner-0.0.41.2 app/finders/interesting_findings/search_replace_db_2.rb
cms_scanner-0.0.41.1 app/finders/interesting_findings/search_replace_db_2.rb
cms_scanner-0.0.41.0 app/finders/interesting_findings/search_replace_db_2.rb
cms_scanner-0.0.40.3 app/finders/interesting_findings/search_replace_db_2.rb
cms_scanner-0.0.40.2 app/finders/interesting_findings/search_replace_db_2.rb
cms_scanner-0.0.40.1 app/finders/interesting_findings/search_replace_db_2.rb
cms_scanner-0.0.40 app/finders/interesting_findings/search_replace_db_2.rb
cms_scanner-0.0.39.4 app/finders/interesting_findings/search_replace_db_2.rb
cms_scanner-0.0.39.3 app/finders/interesting_findings/search_replace_db_2.rb
cms_scanner-0.0.39.2 app/finders/interesting_findings/search_replace_db_2.rb
cms_scanner-0.0.39.1 app/finders/interesting_findings/search_replace_db_2.rb
cms_scanner-0.0.39.0 app/finders/interesting_findings/search_replace_db_2.rb