fix nil access

git-svn-id: file:///home/svn/framework3/trunk@11344 4d416f70-5f16-0410-b530-b9f4589650da
unstable
Joshua Drake 2010-12-15 19:49:40 +00:00
parent 78a62d33c5
commit 6a5ebf2d91
1 changed files with 3 additions and 1 deletions

View File

@ -85,7 +85,9 @@ class Metasploit3 < Msf::Exploit::Remote
'method' => 'GET'
}, 5)
case response['Content-Length'].to_i
clen = 0
clen ||= response['Content-Length'].to_i if response and response['Content-Length']
case clen
when 24584
print_status("[!] Found Version - Integard Home")
mytarget = targets[1]