1521,1522-1529 - Pentesting Oracle TNS Listener

Basic Information

Oracle database (Oracle DB) is a relational database management system (RDBMS) from the Oracle Corporation (from here).

When enumerating Oracle the first step is to talk to the TNS-Listener that usually resides on the default port (1521/TCP, -you may also get secondary listeners on 1522–1529-).

1521/tcp open  oracle-tns    Oracle TNS Listener 9.2.0.1.0 (for 32-bit Windows)
1748/tcp open  oracle-tns    Oracle TNS Listener

Summary

  1. Version Enumeration: Identify version information to search for known vulnerabilities.

  2. TNS Listener Bruteforce: Sometimes necessary to establish communication.

  3. SID Name Enumeration/Bruteforce: Discover database names (SID).

  4. Credential Bruteforce: Attempt to access discovered SID.

  5. Code Execution: Attempt to run code on the system.

In order to user MSF oracle modules you need to install some dependencies: Installation

Posts

Check these posts:

HackTricks Automatic Commands

Last updated