Try a little harder to read the full image

git-svn-id: file:///home/svn/framework3/trunk@9379 4d416f70-5f16-0410-b530-b9f4589650da
unstable
HD Moore 2010-05-29 02:20:23 +00:00
parent 6dc55df402
commit a1ee346d59
1 changed files with 8 additions and 1 deletions

View File

@ -61,7 +61,13 @@ module Metasploit3
print_status("Downloading photo (#{photo_length} bytes)...")
photo = session.rstream.read(photo_length)
photo = ""
while(photo.length < photo_length)
buff = session.rstream.get_once(-1, 5)
break if not buff
photo << buff
end
# Extract the host and port
host,port = session.tunnel_peer.split(':')
@ -90,3 +96,4 @@ module Metasploit3
end
end