Update check logic

This commit is contained in:
Jacob Robles
2019-04-11 06:21:40 -05:00
parent 1b2b752bef
commit 54abfcbc2c
@@ -52,11 +52,11 @@ class MetasploitModule < Msf::Auxiliary
end
def check
if send_sql_request('0xABCDABCD+0xABCDABCD').include? '5764765594'
Exploit::CheckCode::Vulnerable
else
Exploit::CheckCode::Unknown
end
body = send_sql_request('0xABCDABCD+0xABCDABCD')
return Exploit::CheckCode::Unknown if body.nil?
return Exploit::CheckCode::Vulnerable if body.include?('5764765594')
Exploit::CheckCode::Unknown
end
def run