Address nil

bug/bundler_fix
sinn3r 2014-01-23 11:00:28 -06:00
parent 333229ea7e
commit 0a10c1297c
1 changed files with 4 additions and 1 deletions

View File

@ -128,7 +128,10 @@ class Metasploit3 < Msf::Exploit::Remote
'uri' => normalize_uri(target_uri.path, "interface", "/"),
})
if res and res.body =~ /var currentMutinyVersion = "Version ([0-9\.-]*)/
if res.nil?
vprint_error("Connection timed out")
return Exploit::CheckCode::Unknown
if res.body =~ /var currentMutinyVersion = "Version ([0-9\.-]*)/
version = $1
end