Sha256: cc0634362f21ad17cb4770005d27c8fde630004a0902a99ffda6012de2cde7a0

Contents?: true

Size: 840 Bytes

Versions: 16

Compression:

Stored size: 840 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 && 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

16 entries across 16 versions & 1 rubygems

Version Path
cms_scanner-0.0.37.12 app/finders/interesting_findings/search_replace_db_2.rb
cms_scanner-0.0.37.11 app/finders/interesting_findings/search_replace_db_2.rb
cms_scanner-0.0.37.10 app/finders/interesting_findings/search_replace_db_2.rb
cms_scanner-0.0.37.9 app/finders/interesting_findings/search_replace_db_2.rb
cms_scanner-0.0.37.8 app/finders/interesting_findings/search_replace_db_2.rb
cms_scanner-0.0.37.7 app/finders/interesting_findings/search_replace_db_2.rb
cms_scanner-0.0.37.6 app/finders/interesting_findings/search_replace_db_2.rb
cms_scanner-0.0.37.5 app/finders/interesting_findings/search_replace_db_2.rb
cms_scanner-0.0.37.4 app/finders/interesting_findings/search_replace_db_2.rb
cms_scanner-0.0.37.3 app/finders/interesting_findings/search_replace_db_2.rb
cms_scanner-0.0.37.2 app/finders/interesting_findings/search_replace_db_2.rb
cms_scanner-0.0.37.1 app/finders/interesting_findings/search_replace_db_2.rb
cms_scanner-0.0.37 app/finders/interesting_findings/search_replace_db_2.rb
cms_scanner-0.0.36 app/finders/interesting_findings/search_replace_db_2.rb
cms_scanner-0.0.35.1 app/finders/interesting_findings/search_replace_db_2.rb
cms_scanner-0.0.35 app/finders/interesting_findings/search_replace_db_2.rb