Switching Oracle scanner to use db_service rather than db_note to record version numbers.

git-svn-id: file:///home/svn/framework3/trunk@8455 4d416f70-5f16-0410-b530-b9f4589650da
unstable
Tod Beardsley 2010-02-11 17:57:33 +00:00
parent 6e80c7a62c
commit 53ce10ac12
1 changed files with 8 additions and 6 deletions

View File

@ -1,4 +1,7 @@
##
#
# $Id$
#
# This file is part of the Metasploit Framework and may be subject to
# redistribution and commercial restrictions. Please see the Metasploit
# Framework web site for more information on licensing and terms of use.
@ -42,16 +45,15 @@ class Metasploit3 < Msf::Auxiliary
data = sock.get_once
if ( data and data =~ /\\*.TNSLSNR for (.*)/ )
report_note(
report_service(
:host => ip,
:proto => 'tcp',
:port => datastore['RPORT'],
:type => 'VERSION',
:data => $1
:name => "oracle",
:info => $1
)
print_status("Host #{ip} is running: " + $1)
print_status("#{ip}:#{datastore['RPORT']} Oracle - Version: " + $1)
else
print_error("Unable to determine version info for #{ip}...")
print_error( "#{ip}:#{datastore['RPORT']} Orcale - Version: Unknown")
end
disconnect
rescue ::Rex::ConnectionError