rapid7/metasploit-framework — pull request #3700 by ringt (2014-08-25 20:05:01+00:00)
Title: fix for oracle_login not checking connection status

Was using my resource script (oracle_login.rc) and noticed that it was taking a very long time and in investigating why discovered that oracle_login.rb doesn't check for any Oracle error messages when it rescues, so if for example the connection times out on the first brute force try, it will try N times (and have to wait through N timeouts), where N is the number of usernames/passwords you have it guessing.

This patch just has it check to see if Oracle specifically states the connection was timed out and if so, break so that the rest of the usernames/passwords are not tried, resulting in a speed up when the host is down.