From 1da08b0bdc324c055d7f561511428d15e3759b09 Mon Sep 17 00:00:00 2001 From: Joshua Drake Date: Wed, 8 Dec 2010 23:57:14 +0000 Subject: [PATCH] abort if retries count exceeded git-svn-id: file:///home/svn/framework3/trunk@11263 4d416f70-5f16-0410-b530-b9f4589650da --- modules/auxiliary/scanner/vnc/vnc_login.rb | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/modules/auxiliary/scanner/vnc/vnc_login.rb b/modules/auxiliary/scanner/vnc/vnc_login.rb index 1224e55047..a9964f0ff0 100644 --- a/modules/auxiliary/scanner/vnc/vnc_login.rb +++ b/modules/auxiliary/scanner/vnc/vnc_login.rb @@ -67,6 +67,10 @@ class Metasploit3 < Msf::Auxiliary vprint_status("Retrying in #{delay} seconds...") select(nil, nil, nil, delay) } + # If we tried all these attempts, and we still got a retry condition, + # we'll just give up.. Must be that nasty blacklist algorithm kicking + # our butt. + return :abort if ret == :retry ret } rescue ::Rex::ConnectionError