1
mirror of https://github.com/rapid7/metasploit-framework synced 2024-09-18 14:00:12 +02:00

abort if retries count exceeded

git-svn-id: file:///home/svn/framework3/trunk@11263 4d416f70-5f16-0410-b530-b9f4589650da
This commit is contained in:
Joshua Drake 2010-12-08 23:57:14 +00:00
parent ac0222f73d
commit 1da08b0bdc

View File

@ -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