Class: WPScan::Finders::InterestingFindings::TmmDbMigrate
- Defined in:
- app/finders/interesting_findings/tmm_db_migrate.rb
Overview
Tmm DB Migrate finder
Constant Summary
Constants inherited from Finder
Instance Attribute Summary
Attributes inherited from Finder
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 WPScan::Finders::Finder
Instance Method Details
#aggressive(_opts = {}) ⇒ InterestingFinding
9 10 11 12 13 14 15 16 17 |
# File 'app/finders/interesting_findings/tmm_db_migrate.rb', line 9 def aggressive(_opts = {}) path = 'wp-content/uploads/tmm_db_migrate/tmm_db_migrate.zip' url = target.url(path) res = browser.forge_request(url, target.head_or_get_request_params).run return unless res.code == 200 && res.headers['Content-Type'] =~ %r{\Aapplication/zip}i Model::TmmDbMigrate.new(url, confidence: 100, found_by: DIRECT_ACCESS) end |