Try a little harder to read the full image
git-svn-id: file:///home/svn/framework3/trunk@9379 4d416f70-5f16-0410-b530-b9f4589650daunstable
parent
6dc55df402
commit
a1ee346d59
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in New Issue