Class: CMSScanner::Finders::InterestingFindings::SearchReplaceDB2
- Defined in:
- app/finders/interesting_findings/search_replace_db_2.rb
Overview
SearchReplaceDB2 finder
Constant Summary
Constants inherited from Finder
Instance Attribute Summary
Attributes inherited from Finder
Instance Method Summary collapse
- #aggressive(_opts = {}) ⇒ InterestingFinding
- #references ⇒ Object
-
#url ⇒ String
The url to the searchreplacedb2 PHP file.
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
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 |
#references ⇒ Object
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 |
#url ⇒ String
Returns 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 |