fix success detection read loop

git-svn-id: file:///home/svn/framework3/trunk@11535 4d416f70-5f16-0410-b530-b9f4589650da
This commit is contained in:
Joshua Drake 2011-01-10 19:40:39 +00:00
parent 87cdaa4ea5
commit b9836dcf50
1 changed files with 2 additions and 1 deletions

View File

@ -275,7 +275,8 @@ class Metasploit3 < Msf::Auxiliary
# Allow for slow echos
1.upto(10) do
recv(self.sock, 0.10) if @recvd == recvd_sample
recv(self.sock, 0.10)
break if login_succeeded?
end
vprint_status("#{rhost}:#{rport} Result: #{@recvd.gsub(/[\r\n\e\b\a]/, ' ')}")