Class: WPScan::Finders::InterestingFindings::PHPDisabled
- Defined in:
- app/finders/interesting_findings/php_disabled.rb
Overview
Constant Summary collapse
- PATTERN =
/\$wp_version =/
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
11 12 13 14 15 16 17 |
# File 'app/finders/interesting_findings/php_disabled.rb', line 11 def aggressive(_opts = {}) path = 'wp-includes/version.php' return unless PATTERN.match?(target.head_and_get(path).body) Model::PHPDisabled.new(target.url(path), confidence: 100, found_by: DIRECT_ACCESS) end |