Class: WPScan::Finders::InterestingFindings::PHPDisabled
- Inherits:
-
CMSScanner::Finders::Finder
- Object
- CMSScanner::Finders::Finder
- WPScan::Finders::InterestingFindings::PHPDisabled
- Defined in:
- app/finders/interesting_findings/php_disabled.rb
Overview
Constant Summary collapse
- PATTERN =
/\$wp_version =/.freeze
Instance Method Summary collapse
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 |