Only show readme.html output when wp <= 4.8 #1127
This commit is contained in:
12
wpscan.rb
12
wpscan.rb
@@ -206,10 +206,6 @@ def main
|
||||
end
|
||||
end
|
||||
|
||||
if wp_target.has_readme?
|
||||
puts warning("The WordPress '#{wp_target.readme_url}' file exists exposing a version number")
|
||||
end
|
||||
|
||||
if wp_target.has_full_path_disclosure?
|
||||
puts warning("Full Path Disclosure (FPD) in '#{wp_target.full_path_disclosure_url}': #{wp_target.full_path_disclosure_data}")
|
||||
end
|
||||
@@ -271,7 +267,13 @@ def main
|
||||
exclude_content: wpscan_options.exclude_content_based
|
||||
}
|
||||
|
||||
if wp_version = wp_target.version(WP_VERSIONS_FILE)
|
||||
wp_version = wp_target.version(WP_VERSIONS_FILE)
|
||||
|
||||
if wp_target.has_readme? && VersionCompare::lesser_or_equal?(wp_version.identifier, '4.8')
|
||||
puts warning("The WordPress '#{wp_target.readme_url}' file exists exposing a version number")
|
||||
end
|
||||
|
||||
if wp_version
|
||||
wp_version.output(wpscan_options.verbose)
|
||||
else
|
||||
puts
|
||||
|
||||
Reference in New Issue
Block a user