Rewrote check code.
parent
f13d31c7c2
commit
d11db4edc7
|
@ -40,15 +40,7 @@ class Metasploit3 < Msf::Exploit::Remote
|
|||
end
|
||||
|
||||
def check
|
||||
res = send_request_cgi(
|
||||
'uri' => normalize_uri(wordpress_url_plugins, 'sexy-contact-form', 'includes', 'fileupload', 'index.php')
|
||||
)
|
||||
|
||||
if res && res.code == 200 && res.body =~ /files/
|
||||
return Exploit::CheckCode::Detected
|
||||
end
|
||||
|
||||
Exploit::CheckCode::Safe
|
||||
check_plugin_version_from_readme('sexy-contact-form', '0.9.7')
|
||||
end
|
||||
|
||||
def exploit
|
||||
|
|
Loading…
Reference in New Issue