Fix #1149
This commit is contained in:
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user