Fix incorrect use of sock.get() that could lead to indefinite hang
This commit is contained in:
@@ -59,7 +59,7 @@ class Metasploit3 < Msf::Auxiliary
|
||||
# on the response codes. We need to do this between every
|
||||
# port scan attempt unfortunately.
|
||||
while true
|
||||
r = self.sock.get(0.25)
|
||||
r = sock.get_once(-1, 0.25)
|
||||
break if not r or r.empty?
|
||||
end
|
||||
|
||||
|
||||
Reference in New Issue
Block a user