Make it better
parent
3538b84693
commit
0a3735fab4
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue