Land #3490, @Meatballs1 tns listener verbose output
commit
b15297eee0
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue