Using a proper variable instead of $1 token for ora version.

git-svn-id: file:///home/svn/framework3/trunk@8456 4d416f70-5f16-0410-b530-b9f4589650da
unstable
Tod Beardsley 2010-02-11 18:29:24 +00:00
parent 53ce10ac12
commit 8a44f4b9d8
1 changed files with 3 additions and 2 deletions

View File

@ -45,13 +45,14 @@ class Metasploit3 < Msf::Auxiliary
data = sock.get_once
if ( data and data =~ /\\*.TNSLSNR for (.*)/ )
ora_version = data.match(/\\*.TNSLSNR for (.*)/)[1]
report_service(
:host => ip,
:port => datastore['RPORT'],
:name => "oracle",
:info => $1
:info => ora_version
)
print_status("#{ip}:#{datastore['RPORT']} Oracle - Version: " + $1)
print_good("#{ip}:#{datastore['RPORT']} Oracle - Version: " + ora_version)
else
print_error( "#{ip}:#{datastore['RPORT']} Orcale - Version: Unknown")
end