Oracle SMB Relay Code Execution - Metasploit
This page contains detailed information about how to use the auxiliary/admin/oracle/ora_ntlm_stealer metasploit module. For list of all metasploit modules, visit the Metasploit Module Library.
Module Overview
Name: Oracle SMB Relay Code Execution
Module: auxiliary/admin/oracle/ora_ntlm_stealer
Source code: modules/auxiliary/admin/oracle/ora_ntlm_stealer.rb
Disclosure date: 2009-04-07
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 will help you to get Administrator access to OS using an unprivileged Oracle database user (you need only CONNECT and RESOURCE privileges). To do this you must firstly run smb_sniffer or smb_relay module on your sever. Then you must connect to Oracle database and run this module Ora_NTLM_stealer.rb which will connect to your SMB sever with credentials of Oracle RDBMS. So if smb_relay is working, you will get Administrator access to server which runs Oracle. If not than you can decrypt HALFLM hash.
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/ora_ntlm_stealer
msf auxiliary(ora_ntlm_stealer) > show targets
... a list of targets ...
msf auxiliary(ora_ntlm_stealer) > set TARGET target-id
msf auxiliary(ora_ntlm_stealer) > show options
... show and set options ...
msf auxiliary(ora_ntlm_stealer) > exploit
Go back to menu.
Msfconsole Usage
Here is how the admin/oracle/ora_ntlm_stealer auxiliary module looks in the msfconsole:
msf6 > use auxiliary/admin/oracle/ora_ntlm_stealer
msf6 auxiliary(admin/oracle/ora_ntlm_stealer) > show info
Name: Oracle SMB Relay Code Execution
Module: auxiliary/admin/oracle/ora_ntlm_stealer
License: Metasploit Framework License (BSD)
Rank: Normal
Disclosed: 2009-04-07
Provided by:
Sh2kerr <research[ad]dsecrg.com>
Check supported:
No
Basic options:
Name Current Setting Required Description
---- --------------- -------- -----------
DBPASS TIGER yes The password to authenticate with.
DBUSER SCOTT yes The username to authenticate with.
IP 0.0.0.0 no IP address of SMB proxy.
RHOST yes The Oracle host.
RPORT 1521 yes The TNS port.
SID ORCL yes The sid to authenticate with.
Description:
This module will help you to get Administrator access to OS using an
unprivileged Oracle database user (you need only CONNECT and
RESOURCE privileges). To do this you must firstly run smb_sniffer or
smb_relay module on your sever. Then you must connect to Oracle
database and run this module Ora_NTLM_stealer.rb which will connect
to your SMB sever with credentials of Oracle RDBMS. So if smb_relay
is working, you will get Administrator access to server which runs
Oracle. If not than you can decrypt HALFLM hash.
References:
http://dsecrg.com/pages/pub/show.php?id=17
Module Options
This is a complete list of options available in the admin/oracle/ora_ntlm_stealer auxiliary module:
msf6 auxiliary(admin/oracle/ora_ntlm_stealer) > show options
Module options (auxiliary/admin/oracle/ora_ntlm_stealer):
Name Current Setting Required Description
---- --------------- -------- -----------
DBPASS TIGER yes The password to authenticate with.
DBUSER SCOTT yes The username to authenticate with.
IP 0.0.0.0 no IP address of SMB proxy.
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/ora_ntlm_stealer auxiliary module:
msf6 auxiliary(admin/oracle/ora_ntlm_stealer) > show advanced
Module advanced options (auxiliary/admin/oracle/ora_ntlm_stealer):
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/ora_ntlm_stealer module can do:
msf6 auxiliary(admin/oracle/ora_ntlm_stealer) > show actions
Auxiliary actions:
Name Description
---- -----------
Evasion Options
Here is the full list of possible evasion options supported by the admin/oracle/ora_ntlm_stealer auxiliary module in order to evade defenses (e.g. Antivirus, EDR, Firewall, NIDS etc.):
msf6 auxiliary(admin/oracle/ora_ntlm_stealer) > show evasion
Module evasion options:
Name Current Setting Required Description
---- --------------- -------- -----------
Go back to menu.
Related Pull Requests
- #14213 Merged Pull Request: Add disclosure date rubocop linting rule - enforce iso8601 disclosure dates
- #12406 Merged Pull Request: adress a spelling problem
- #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
- #2525 Merged Pull Request: Change module boilerplate
- #1228 Merged Pull Request: MSFTIDY cleanup #1 - auxiliary
References
See Also
Check also the following modules related to this module:
- auxiliary/admin/oracle/oracle_index_privesc
- auxiliary/admin/oracle/oracle_login
- auxiliary/admin/oracle/oracle_sql
- auxiliary/admin/oracle/oraenum
- 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/admin/mssql/mssql_ntlm_stealer
- auxiliary/scanner/vmware/vmware_screenshot_stealer
- auxiliary/admin/mssql/mssql_ntlm_stealer_sqli
- auxiliary/fuzzers/smb/smb_ntlm1_login_corrupt
- auxiliary/scanner/http/ntlm_info_enumeration
- auxiliary/scanner/smtp/smtp_ntlm_domain
- auxiliary/server/capture/http_ntlm
- auxiliary/server/http_ntlmrelay
- exploit/linux/proxy/squid_ntlm_authenticate
- exploit/windows/local/bits_ntlm_token_impersonation
- auxiliary/scanner/oracle/emc_sid
- auxiliary/scanner/oracle/isqlplus_login
- auxiliary/scanner/oracle/isqlplus_sidbrute
- auxiliary/scanner/oracle/oracle_hashdump
- auxiliary/scanner/oracle/oracle_login
- 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
- Sh2kerr <research[ad]dsecrg.com>
Version
This page has been produced using Metasploit Framework version 6.1.24-dev. For more modules, visit the Metasploit Module Library.
Go back to menu.