Skip to content
leg3ndProjects & tools
01Home02Projects03Tools04Notes
GMT+8
O/ OSCP exploitation reference
Workspace controls Memory only · 0 steps
Visualize path ↗
Command values 0 filled

Temporary connection values clear on reload. Passwords, hashes and tickets remain placeholders. Check address-family syntax in the selected command.

Reference index ↗ Search all procedures & variants ↗
01Discovery02Enumeration03Initial access04Usable access05Local privilege06Active Directory07Internal access08Evidence & reporting

QUICK REFERENCE

Discovery›Services›Web mapping›Web exploitation›Credentials›Public exploits›Sessions & transfers›Linux escalation›Windows escalation›AD enumeration›AD identity attacks›Lateral movement›Pivoting & tunnels›Execution troubleshooting›Integration & evidence›
174 methods · 15 topicsFull reference on GitHub ↗Commands · scripts · next steps
Tools/OSCP/Enumeration/Services
← All services tasks

Triage Oracle listener and database identity

CommandsIf → thenExplanation & examples

Needs: Correct service/SID, reachable database transport and valid database credentials for authenticated work

Shell commands

# Baseline
nmap -Pn -sV --script oracle-tns-version -p 1521 TARGET
nmap -Pn --script oracle-sid-brute -p 1521 TARGET

A discovered SID/service name is a namespace clue, not credentials. Continue with an installed Oracle client only when a legitimate identity is available; preserve listener/version/SID evidence and do not treat a conventional port as Oracle proof. Source supplement: reviewed getSH Nmap Oracle block.

Verify → Distinguish listener identification, database login and a permitted SQL action.

If it fails → An invalid service descriptor is different from an invalid password; resolve it before further credential decisions. More detail ↓

If → then

  • A password tied to a plausible user and service → Validate known passwords and context-specific reuse

    Needs: Correct local/domain/application identity, reachable compatible service, accepted authentication and account state

  • A product/version clue, advisory or component-specific public PoC → Match a public exploit to the actual component and configuration

    Needs: Exact vulnerable build/configuration, required access and endpoint behavior; reviewable source and a verifiable expected effect

  • Scanners disagree, a result is ambiguous, or a new identity changes accessible behavior → Validate uncertain results and rebuild the service queue

    Needs: A selected endpoint and a test that can resolve the decision-changing uncertainty

No useful finding → another task in this topic. Failed check → resolve the failure before ruling out the path.

Explanation & examples

Triage Oracle listener and database identity

USE WHEN
An Oracle TNS listener or connection descriptor
STARTING ACCESS
A confirmed reachable application; anonymous context or one identified credential
RESULT
A confirmed listener/service context and permission-scoped database access

Recognize the clue

Use service discovery and an application's connection descriptor to distinguish listener identification from a valid database session.

nmap -Pn -sV -p 1521 TARGET
SYNTHETIC EXAMPLE OUTPUT
1521/tcp open oracle-tns Oracle TNS Listener
Application descriptor: SERVICE_NAME

Means: Listener/product evidence and a service name establish a connection candidate, not database credentials or DBA rights.

Confirm: Validate the exact descriptor/account and inspect its permitted database action.

After validation
The selected account logs in and grants a useful operation: enumerate within that role.
Ruled out in this context
The descriptor names a nonexistent service: reject that connection string before judging passwords.
Still inconclusive
An unidentified listener version or authentication error needs descriptor/account separation.

Troubleshooting: An invalid service descriptor is different from an invalid password; resolve it before further credential decisions.

A discovered SID/service name is a namespace clue, not credentials. Continue with an installed Oracle client only when a legitimate identity is available; preserve listener/version/SID evidence and do not treat a conventional port as Oracle proof. Source supplement: reviewed getSH Nmap Oracle block.

Why it works

A TNS listener is a connection broker; knowing its version or service name does not establish database authentication or DBA rights.

Worked example · hypothetical

Observation: TNS responds on 1521. Test: identify the configured service and validate a known credential. Illustrative output: listener identification succeeds but database authentication fails. Interpretation: retain the service clue and seek the correct account/descriptor.

New identity, privilege, host or route? Re-enumerate → All topic tasks →

Study guide ↗Full procedure ↗Cheatsheet ↗
HomeProjectsToolsNotes
Interactive toolsOSCP notes ↗Extended OSCP workspace ↗Attack-path visualizer ↗

© 2026 Armaan. Built with curiosity.

GitHub ↗GMT+8