Class: CMSScanner::Finders::InterestingFindings::SearchReplaceDB2

Inherits:
Finder
  • Object
show all
Defined in:
app/finders/interesting_findings/search_replace_db_2.rb

Overview

SearchReplaceDB2 finder

Constant Summary

Constants inherited from Finder

Finder::DIRECT_ACCESS

Instance Attribute Summary

Attributes inherited from Finder

#progress_bar, #target

Instance Method Summary collapse

Methods inherited from Finder

#browser, #create_progress_bar, #found_by, #hydra, #initialize, #passive, #titleize

Constructor Details

This class inherits a constructor from CMSScanner::Finders::Finder

Instance Method Details

#aggressive(_opts = {}) ⇒ InterestingFinding

Returns:



12
13
14
15
16
17
18
19
20
# File 'app/finders/interesting_findings/search_replace_db_2.rb', line 12

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

#referencesObject



22
23
24
# File 'app/finders/interesting_findings/search_replace_db_2.rb', line 22

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

#urlString

Returns The url to the searchreplacedb2 PHP file.

Returns:

  • (String)

    The url to the searchreplacedb2 PHP file



7
8
9
# File 'app/finders/interesting_findings/search_replace_db_2.rb', line 7

def url
  target.url('searchreplacedb2.php')
end