add retry for vnc4server

git-svn-id: file:///home/svn/framework3/trunk@11259 4d416f70-5f16-0410-b530-b9f4589650da
unstable
Joshua Drake 2010-12-08 23:07:10 +00:00
parent 2742475ae0
commit f788425865
1 changed files with 2 additions and 3 deletions

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