adds a patch from Thomas Ring.
git-svn-id: file:///home/svn/framework3/trunk@8775 4d416f70-5f16-0410-b530-b9f4589650daunstable
parent
d3da883aa2
commit
b01f9ff233
|
@ -15,7 +15,7 @@ class Metasploit3 < Msf::Auxiliary
|
|||
|
||||
def initialize(info = {})
|
||||
super(update_info(info,
|
||||
'Name' => 'SID Enumeration.',
|
||||
'Name' => 'Oracle SID Enumeration.',
|
||||
'Description' => %q{
|
||||
This module simply queries the TNS listner for the Oracle SID.
|
||||
With Oracle 9.2.0.8 and above the listener will be protected and
|
||||
|
@ -45,6 +45,9 @@ class Metasploit3 < Msf::Auxiliary
|
|||
|
||||
if ( data and data =~ /ERROR_STACK/ )
|
||||
print_error("TNS listener protected for #{ip}...")
|
||||
else
|
||||
if(not data)
|
||||
print_error("#{ip} Connection but no data")
|
||||
else
|
||||
sid = data.scan(/INSTANCE_NAME=([^\)]+)/)
|
||||
sid.uniq.each do |s|
|
||||
|
@ -57,7 +60,6 @@ class Metasploit3 < Msf::Auxiliary
|
|||
)
|
||||
print_status("Identified SID for #{ip}: #{s}")
|
||||
end
|
||||
end
|
||||
service_name = data.scan(/SERVICE_NAME=([^\)]+)/)
|
||||
service_name.each do |s|
|
||||
report_note(
|
||||
|
@ -69,6 +71,8 @@ class Metasploit3 < Msf::Auxiliary
|
|||
)
|
||||
print_status("Identified SERVICE_NAME for #{ip}: #{s}")
|
||||
end
|
||||
end
|
||||
end
|
||||
disconnect
|
||||
rescue ::Rex::ConnectionError
|
||||
rescue ::Errno::EPIPE
|
||||
|
|
Loading…
Reference in New Issue