Sha256: 2405fc8091c591049791dfa8058581d0ac2b0824a42d2068282b00e75d647e9b
Contents?: true
Size: 576 Bytes
Versions: 15
Compression:
Stored size: 576 Bytes
Contents
# frozen_string_literal: true module WPScan module Finders module InterestingFindings # See https://github.com/wpscanteam/wpscan/issues/1593 class PHPDisabled < CMSScanner::Finders::Finder PATTERN = /\$wp_version =/.freeze # @return [ InterestingFinding ] 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 end end end end
Version data entries
15 entries across 15 versions & 1 rubygems