This commit is contained in:
Erwan
2017-11-24 08:43:20 +00:00
committed by GitHub
parent b2b4eebd78
commit 0c71bce221

View File

@@ -267,13 +267,11 @@ def main
exclude_content: wpscan_options.exclude_content_based exclude_content: wpscan_options.exclude_content_based
} }
wp_version = wp_target.version(WP_VERSIONS_FILE) if (wp_version = wp_target.version(WP_VERSIONS_FILE))
if wp_target.has_readme? && VersionCompare::lesser_or_equal?(wp_version.identifier, '4.8')
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")
puts warning("The WordPress '#{wp_target.readme_url}' file exists exposing a version number") end
end
if wp_version
wp_version.output(wpscan_options.verbose) wp_version.output(wpscan_options.verbose)
else else
puts puts