##
# This module requires Metasploit: https://metasploit.com/download
# Current source: https://github.com/rapid7/metasploit-framework
##
class MetasploitModule < Msf::Auxiliary
include Msf::Exploit::ORACLE
def initialize(info = {})
super(update_info(info,
'Name' => 'Oracle SQL Generic Query',
'Description' => %q{
This module allows for simple SQL statements to be executed
against an Oracle instance given the appropriate credentials
and sid.
},
'Author' => [ 'MC' ],
'License' => MSF_LICENSE,
'References' =>
[
[ 'URL', 'http://web.archive.org/web/20110322124810/http://www.metasploit.com:80/users/mc/' ],
],
'DisclosureDate' => '2007-12-07'))
register_options(
[
OptString.new('SQL', [ false, 'The SQL to execute.', 'select * from v$version']),
])
end
def run
return if not check_dependencies
query = datastore['SQL']
begin
print_status("Sending statement: '#{query}'...")
result = prepare_exec(query)
# Need this if statement because some statements won't return anything
if result
result.each do |line|
print_status(line)
end
end
rescue => e
return
end
end
end
Data
Build on a solid foundation with Vulners data
We provide the essential building blocks for cybersecurity solutions with comprehensive, structured, and constantly updated vulnerability and exploits data
Api
Power your application with Vulners API
The Vulners REST API offers reliable, high-performance access to vulnerability intelligence, with 99.9% SLA uptime and CDN-backed data delivery for seamless global access
App
Assess and manage vulnerabilities with Vulners tools
Built on top of Vulners' database and SDK, end-user solutions give security professionals and developers lightweight and powerful tools for vulnerability remediation