fix readme detection bug
This commit is contained in:
parent
9df09a1d60
commit
dc8f266345
|
@ -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'
|
||||
|
|
Loading…
Reference in New Issue