From 53ce10ac12b90ea4e2c19d387e3479713cbd65f3 Mon Sep 17 00:00:00 2001 From: Tod Beardsley Date: Thu, 11 Feb 2010 17:57:33 +0000 Subject: [PATCH] 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 --- .../auxiliary/scanner/oracle/tnslsnr_version.rb | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/modules/auxiliary/scanner/oracle/tnslsnr_version.rb b/modules/auxiliary/scanner/oracle/tnslsnr_version.rb index a44d70902a..6ce24be015 100644 --- a/modules/auxiliary/scanner/oracle/tnslsnr_version.rb +++ b/modules/auxiliary/scanner/oracle/tnslsnr_version.rb @@ -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