Oracle Account Discovery - Metasploit
This page contains detailed information about how to use the auxiliary/admin/oracle/oracle_login metasploit module. For list of all metasploit modules, visit the Metasploit Module Library.
Module Overview
Name: Oracle Account Discovery
Module: auxiliary/admin/oracle/oracle_login
Source code: modules/auxiliary/admin/oracle/oracle_login.rb
Disclosure date: 2008-11-20
Last modification time: 2020-10-02 17:38:06 +0000
Supported architecture(s): -
Supported platform(s): -
Target service / protocol: -
Target network port(s): 1521
List of CVEs: -
This module uses a list of well known default authentication credentials to discover easily guessed accounts.
Module Ranking and Traits
Module Ranking:
- normal: The exploit is otherwise reliable, but depends on a specific version and can't (or doesn't) reliably autodetect. More information about ranking can be found here.
Basic Usage
msf > use auxiliary/admin/oracle/oracle_login
msf auxiliary(oracle_login) > show targets
... a list of targets ...
msf auxiliary(oracle_login) > set TARGET target-id
msf auxiliary(oracle_login) > show options
... show and set options ...
msf auxiliary(oracle_login) > exploit
Go back to menu.
Msfconsole Usage
Here is how the admin/oracle/oracle_login auxiliary module looks in the msfconsole:
msf6 > use auxiliary/admin/oracle/oracle_login
msf6 auxiliary(admin/oracle/oracle_login) > show info
Name: Oracle Account Discovery
Module: auxiliary/admin/oracle/oracle_login
License: Metasploit Framework License (BSD)
Rank: Normal
Disclosed: 2008-11-20
Provided by:
MC <[email protected]>
Check supported:
No
Basic options:
Name Current Setting Required Description
---- --------------- -------- -----------
CSVFILE /opt/metasploit-framework/embedded/framework/data/wordlists/oracle_default_passwords.csv no The file that contains a list of default accounts.
RHOST yes The Oracle host.
RPORT 1521 yes The TNS port.
SID ORCL yes The sid to authenticate with.
Description:
This module uses a list of well known default authentication
credentials to discover easily guessed accounts.
References:
http://www.petefinnigan.com/default/oracle_default_passwords.csv
https://seclists.org/fulldisclosure/2009/Oct/261
Module Options
This is a complete list of options available in the admin/oracle/oracle_login auxiliary module:
msf6 auxiliary(admin/oracle/oracle_login) > show options
Module options (auxiliary/admin/oracle/oracle_login):
Name Current Setting Required Description
---- --------------- -------- -----------
CSVFILE /opt/metasploit-framework/embedded/framework/data/wordlists/oracle_default_passwords.csv no The file that contains a list of default accounts.
RHOST yes The Oracle host.
RPORT 1521 yes The TNS port.
SID ORCL yes The sid to authenticate with.
Advanced Options
Here is a complete list of advanced options supported by the admin/oracle/oracle_login auxiliary module:
msf6 auxiliary(admin/oracle/oracle_login) > show advanced
Module advanced options (auxiliary/admin/oracle/oracle_login):
Name Current Setting Required Description
---- --------------- -------- -----------
VERBOSE false no Enable detailed status messages
WORKSPACE no Specify the workspace for this module
Auxiliary Actions
This is a list of all auxiliary actions that the admin/oracle/oracle_login module can do:
msf6 auxiliary(admin/oracle/oracle_login) > show actions
Auxiliary actions:
Name Description
---- -----------
Evasion Options
Here is the full list of possible evasion options supported by the admin/oracle/oracle_login auxiliary module in order to evade defenses (e.g. Antivirus, EDR, Firewall, NIDS etc.):
msf6 auxiliary(admin/oracle/oracle_login) > show evasion
Module evasion options:
Name Current Setting Required Description
---- --------------- -------- -----------
Go back to menu.
Error Messages
This module may fail with the following error messages:
Check for the possible causes from the code snippets below found in the module source code. This can often times help in identifying the root cause of the problem.
<RHOST>:<RPORT> Connection timed out
Here is a relevant code snippet related to the "<RHOST>:<RPORT> Connection timed out" error message:
74: begin
75: connect
76: disconnect
77: rescue ::OCIError => e
78: if e.to_s =~ /^ORA-12170:\s/
79: print_error("#{datastore['RHOST']}:#{datastore['RPORT']} Connection timed out")
80: break
81: else
82: vprint_error("#{datastore['RHOST']}:#{datastore['RPORT']} - LOGIN FAILED: #{datastore['DBUSER']}: #{e.to_s})")
83: end
84: else
<RHOST>:<RPORT> - LOGIN FAILED: <DBUSER>: <E.TO_S>)
Here is a relevant code snippet related to the "<RHOST>:<RPORT> - LOGIN FAILED: <DBUSER>: <E.TO_S>)" error message:
77: rescue ::OCIError => e
78: if e.to_s =~ /^ORA-12170:\s/
79: print_error("#{datastore['RHOST']}:#{datastore['RPORT']} Connection timed out")
80: break
81: else
82: vprint_error("#{datastore['RHOST']}:#{datastore['RPORT']} - LOGIN FAILED: #{datastore['DBUSER']}: #{e.to_s})")
83: end
84: else
85: report_cred(
86: ip: datastore['RHOST'],
87: port: datastore['RPORT'],
Go back to menu.
Related Pull Requests
- #14213 Merged Pull Request: Add disclosure date rubocop linting rule - enforce iso8601 disclosure dates
- #11882 Merged Pull Request: oracle_login: add verbose print error when login fails
- #10649 Merged Pull Request: Fix http://seclists.org links to https://
- #8716 Merged Pull Request: Print_Status -> Print_Good (And OCD bits 'n bobs)
- #8338 Merged Pull Request: Fix msf/core and self.class msftidy warnings
- #6655 Merged Pull Request: use MetasploitModule as a class name
- #6648 Merged Pull Request: Change metasploit class names
- #5768 Merged Pull Request: Update modules to use metasploit-credential instead of report_auth_info
- #3700 Merged Pull Request: fix for oracle_login not checking connection status
- #2525 Merged Pull Request: Change module boilerplate
- #2249 Merged Pull Request: Use OptPath instead of OptString to ensure path validation
- #1228 Merged Pull Request: MSFTIDY cleanup #1 - auxiliary
References
- CVE: Not available
- http://www.petefinnigan.com/default/oracle_default_passwords.csv
- https://seclists.org/fulldisclosure/2009/Oct/261
See Also
Check also the following modules related to this module:
- auxiliary/gather/vbulletin_getindexablecontent_sqli
- exploit/multi/http/vbulletin_getindexablecontent
- exploit/windows/browser/adobe_flashplayer_arrayindexing
- exploit/windows/fileformat/hhw_hhp_indexfile_bof
- exploit/windows/misc/avidphoneticindexer
- exploit/windows/smb/ms09_050_smb2_negotiate_func_index
- auxiliary/admin/http/cisco_7937g_ssh_privesc
- auxiliary/admin/http/joomla_registration_privesc
- auxiliary/admin/http/manageengine_pmp_privesc
- auxiliary/admin/http/wp_automatic_plugin_privesc
- auxiliary/admin/http/wp_gdpr_compliance_privesc
- exploit/linux/local/ueb_bpserverd_privesc
- exploit/linux/ssh/vyos_restricted_shell_privesc
- exploit/openbsd/local/dynamic_loader_chpass_privesc
- exploit/unix/ssh/array_vxag_vapv_privkey_privesc
- exploit/unix/webapp/openemr_sqli_privesc_upload
- exploit/windows/local/appxsvc_hard_link_privesc
- exploit/windows/local/canon_driver_privesc
- exploit/windows/local/gog_galaxyclientservice_privesc
- exploit/windows/local/lexmark_driver_privesc
- exploit/windows/local/microfocus_operations_privesc
- exploit/windows/local/ms16_032_secondary_logon_handle_privesc
- exploit/windows/local/ms18_8120_win32k_privesc
- exploit/windows/local/plantronics_hub_spokesupdateservice_privesc
- exploit/windows/local/ricoh_driver_privesc
- payload/cmd/mainframe/apf_privesc_jcl
- auxiliary/admin/oracle/oracle_index_privesc
- auxiliary/admin/oracle/oracle_sql
- auxiliary/scanner/http/oracle_demantra_database_credentials_leak
- auxiliary/scanner/http/oracle_demantra_file_retrieval
- auxiliary/scanner/http/oracle_ilom_login
- auxiliary/scanner/oracle/oracle_hashdump
- auxiliary/scanner/oracle/oracle_login
- exploit/dialup/multi/login/manyargs
- auxiliary/admin/oracle/oraenum
- auxiliary/admin/oracle/ora_ntlm_stealer
- auxiliary/admin/oracle/osb_execqr
- auxiliary/admin/oracle/osb_execqr2
- auxiliary/admin/oracle/osb_execqr3
- auxiliary/admin/oracle/post_exploitation/win32exec
- auxiliary/admin/oracle/post_exploitation/win32upload
- auxiliary/admin/oracle/sid_brute
- auxiliary/admin/oracle/tnscmd
- auxiliary/scanner/oracle/emc_sid
- auxiliary/scanner/oracle/isqlplus_login
- auxiliary/scanner/oracle/isqlplus_sidbrute
- auxiliary/scanner/oracle/sid_brute
- auxiliary/scanner/oracle/sid_enum
- auxiliary/scanner/oracle/spy_sid
- auxiliary/scanner/oracle/tnslsnr_version
- auxiliary/scanner/oracle/tnspoison_checker
- auxiliary/scanner/oracle/xdb_sid
- auxiliary/scanner/oracle/xdb_sid_brute
- auxiliary/sqli/oracle/dbms_cdc_ipublish
- auxiliary/sqli/oracle/dbms_cdc_publish
- auxiliary/sqli/oracle/dbms_cdc_publish2
- auxiliary/sqli/oracle/dbms_cdc_publish3
- auxiliary/sqli/oracle/dbms_cdc_subscribe_activate_subscription
- auxiliary/sqli/oracle/dbms_export_extension
- auxiliary/sqli/oracle/dbms_metadata_get_granted_xml
- auxiliary/sqli/oracle/dbms_metadata_get_xml
- auxiliary/sqli/oracle/dbms_metadata_open
- auxiliary/sqli/oracle/droptable_trigger
- auxiliary/sqli/oracle/jvm_os_code_10g
- auxiliary/sqli/oracle/jvm_os_code_11g
- auxiliary/sqli/oracle/lt_compressworkspace
- auxiliary/sqli/oracle/lt_findricset_cursor
- auxiliary/sqli/oracle/lt_mergeworkspace
- auxiliary/sqli/oracle/lt_removeworkspace
- auxiliary/sqli/oracle/lt_rollbackworkspace
- exploit/windows/oracle/client_system_analyzer_upload
- exploit/windows/oracle/extjob
- exploit/windows/oracle/osb_ndmp_auth
- exploit/windows/oracle/tns_arguments
- exploit/windows/oracle/tns_auth_sesskey
- exploit/windows/oracle/tns_service_name
Authors
- MC
Version
This page has been produced using Metasploit Framework version 6.1.27-dev. For more modules, visit the Metasploit Module Library.
Go back to menu.