Land #9776, if data is nil, stop reading the heartbleed socket

4.x 4.16.47
Brent Cook 2018-03-29 11:23:08 -05:00 committed by Metasploit
parent 36ba1468e8
commit 9d076f6842
No known key found for this signature in database
GPG Key ID: CDFB5FA52007B954
1 changed files with 1 additions and 1 deletions

View File

@ -695,7 +695,7 @@ class MetasploitModule < Msf::Auxiliary
end end
len = hdr.unpack('Cnn')[2] len = hdr.unpack('Cnn')[2]
data = get_data(len) data = get_data(len) unless len.nil?
unless data unless data
vprint_error("No SSL record contents received after #{response_timeout} seconds...") vprint_error("No SSL record contents received after #{response_timeout} seconds...")