Make it better

bug/bundler_fix
jvazquez-r7 2014-09-26 16:01:10 -05:00
parent 3538b84693
commit 0a3735fab4
2 changed files with 6 additions and 6 deletions

View File

@ -58,10 +58,10 @@ class Metasploit4 < Msf::Auxiliary
:refs => self.references
)
Exploit::CheckCode::Vulnerable
elsif res
elsif res && res.code == 500
injected_res_code = res.code
else
Exploit::CheckCode::Unknown
Exploit::CheckCode::Safe
end
res = send_request_cgi({
@ -70,7 +70,7 @@ class Metasploit4 < Msf::Auxiliary
})
if res && injected_res_code == res.code
return Exploit::CheckCode::Safe
return Exploit::CheckCode::Unknown
elsif res && injected_res_code != res.code
return Exploit::CheckCode::Appears
end

View File

@ -70,10 +70,10 @@ class Metasploit4 < Msf::Exploit::Remote
if res && res.body.include?(marker * 3)
return Exploit::CheckCode::Vulnerable
elsif res
elsif res && res.code == 500
injected_res_code = res.code
else
return Exploit::CheckCode::Unknown
return Exploit::CheckCode::Safe
end
res = send_request_cgi({
@ -82,7 +82,7 @@ class Metasploit4 < Msf::Exploit::Remote
})
if res && injected_res_code == res.code
return Exploit::CheckCode::Safe
return Exploit::CheckCode::Unknown
elsif res && injected_res_code != res.code
return Exploit::CheckCode::Appears
end