This commit is contained in:
erwanlr
2019-07-06 14:23:34 +01:00
parent bfa89b44bc
commit 4f142985a2
7 changed files with 60 additions and 6 deletions

View File

@@ -11,7 +11,7 @@ module WPScan
# The target(plugin)#readme_url can't be used directly here
# as if the --detection-mode is passive, it will always return nil
Model::WpItem::READMES.each do |file|
target.potential_readme_filenames.each do |file|
res = target.head_and_get(file)
next unless res.code == 200 && !(numbers = version_numbers(res.body)).empty?