fix readme detection bug

This commit is contained in:
Christian Mehlmauer 2015-04-16 14:57:29 +02:00
parent 9df09a1d60
commit dc8f266345
No known key found for this signature in database
GPG Key ID: BCFF4FA966BC32C7
1 changed files with 4 additions and 2 deletions

View File

@ -109,8 +109,10 @@ module Msf::HTTP::Wordpress::Version
readmes = ['readme.txt', 'Readme.txt', 'README.txt']
readmes.each do |r|
readme_url = normalize_uri(target_uri.path, wp_content_dir, folder, name, 'readme.txt')
res = nil
readmes.each do |readme_name|
readme_url = normalize_uri(target_uri.path, wp_content_dir, folder, name, readme_name)
vprint_status("#{peer} - Checking #{readme_url}")
res = send_request_cgi(
'uri' => readme_url,
'method' => 'GET'