1
mirror of https://github.com/rapid7/metasploit-framework synced 2024-11-12 11:52:01 +01:00

add retry for vnc4server

git-svn-id: file:///home/svn/framework3/trunk@11259 4d416f70-5f16-0410-b530-b9f4589650da
This commit is contained in:
Joshua Drake 2010-12-08 23:07:10 +00:00
parent 2742475ae0
commit f788425865

View File

@ -98,9 +98,8 @@ class Metasploit3 < Msf::Auxiliary
if not vnc.authenticate(pass)
vprint_error("#{target_host}:#{rport}, #{vnc.error}")
if vnc.error =~ /connection has been rejected/
return :retry
end
return :retry if vnc.error =~ /connection has been rejected/ # UltraVNC
return :retry if vnc.error =~ /Too many security failures/ # vnc4server
return :fail
end