Land #3490, @Meatballs1 tns listener verbose output

bug/bundler_fix
Christian Mehlmauer 2014-07-03 16:20:38 +02:00
commit b15297eee0
No known key found for this signature in database
GPG Key ID: BCFF4FA966BC32C7
1 changed files with 12 additions and 5 deletions

View File

@ -41,7 +41,7 @@ class Metasploit3 < Msf::Auxiliary
data = sock.get_once
if ( data and data =~ /\\*.TNSLSNR for (.*)/ )
if ( data && data =~ /\\*.TNSLSNR for (.*)/ )
ora_version = data.match(/\\*.TNSLSNR for (.*)/)[1]
report_service(
:host => ip,
@ -50,6 +50,13 @@ class Metasploit3 < Msf::Auxiliary
:info => ora_version
)
print_good("#{ip}:#{datastore['RPORT']} Oracle - Version: " + ora_version)
elsif ( data && data =~ /\(ERR=(\d+)\)/ )
case $1.to_i
when 1189
print_error( "#{ip}:#{datastore['RPORT']} Oracle - Version: Unknown - Error code #{$1} - The listener could not authenticate the user")
else
print_error( "#{ip}:#{datastore['RPORT']} Oracle - Version: Unknown - Error code #{$1}")
end
else
print_error( "#{ip}:#{datastore['RPORT']} Oracle - Version: Unknown")
end