From 6d0d8a911d6bcda67149ba080db0b75df86b0f71 Mon Sep 17 00:00:00 2001 From: HD Moore Date: Sat, 28 Jun 2014 15:22:16 -0500 Subject: [PATCH] Fix incorrect use of sock.get() that could lead to indefinite hang --- modules/auxiliary/scanner/portscan/ftpbounce.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/auxiliary/scanner/portscan/ftpbounce.rb b/modules/auxiliary/scanner/portscan/ftpbounce.rb index 81aadece43..3f559feebf 100644 --- a/modules/auxiliary/scanner/portscan/ftpbounce.rb +++ b/modules/auxiliary/scanner/portscan/ftpbounce.rb @@ -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