Check nil

GSoC/Meterpreter_Web_Console
Wei Chen 2018-07-26 11:23:16 -05:00
parent 8e6a1d203b
commit 2dff66aacb
1 changed files with 1 additions and 1 deletions

View File

@ -61,7 +61,7 @@ class MetasploitModule < Msf::Exploit::Remote
sock.put("DOTI0000000A#{dtag}\n")
err, out = read_output
if out.index(r)
if out && out.index(r)
return Exploit::CheckCode::Vulnerable
end
return Exploit::CheckCode::Safe