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 = {})
|
def initialize(info = {})
|
||||||
super(update_info(info,
|
super(update_info(info,
|
||||||
'Name' => 'SID Enumeration.',
|
'Name' => 'Oracle SID Enumeration.',
|
||||||
'Description' => %q{
|
'Description' => %q{
|
||||||
This module simply queries the TNS listner for the Oracle SID.
|
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
|
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/ )
|
if ( data and data =~ /ERROR_STACK/ )
|
||||||
print_error("TNS listener protected for #{ip}...")
|
print_error("TNS listener protected for #{ip}...")
|
||||||
|
else
|
||||||
|
if(not data)
|
||||||
|
print_error("#{ip} Connection but no data")
|
||||||
else
|
else
|
||||||
sid = data.scan(/INSTANCE_NAME=([^\)]+)/)
|
sid = data.scan(/INSTANCE_NAME=([^\)]+)/)
|
||||||
sid.uniq.each do |s|
|
sid.uniq.each do |s|
|
||||||
|
@ -57,7 +60,6 @@ class Metasploit3 < Msf::Auxiliary
|
||||||
)
|
)
|
||||||
print_status("Identified SID for #{ip}: #{s}")
|
print_status("Identified SID for #{ip}: #{s}")
|
||||||
end
|
end
|
||||||
end
|
|
||||||
service_name = data.scan(/SERVICE_NAME=([^\)]+)/)
|
service_name = data.scan(/SERVICE_NAME=([^\)]+)/)
|
||||||
service_name.each do |s|
|
service_name.each do |s|
|
||||||
report_note(
|
report_note(
|
||||||
|
@ -69,6 +71,8 @@ class Metasploit3 < Msf::Auxiliary
|
||||||
)
|
)
|
||||||
print_status("Identified SERVICE_NAME for #{ip}: #{s}")
|
print_status("Identified SERVICE_NAME for #{ip}: #{s}")
|
||||||
end
|
end
|
||||||
|
end
|
||||||
|
end
|
||||||
disconnect
|
disconnect
|
||||||
rescue ::Rex::ConnectionError
|
rescue ::Rex::ConnectionError
|
||||||
rescue ::Errno::EPIPE
|
rescue ::Errno::EPIPE
|
||||||
|
|
Loading…
Reference in New Issue