Oracle TNS
Pentesting Oracle TNS - TCP Ports 1521,1522-1529
Theory
Practice
Enumerate version
nmap --script "oracle-tns-version" -p 1521 -T4 -sV <IP>tnscmd10g version -p 1521 -h <IP>Commands & Brute-force
# Return the current status and variables used by the listener
tnscmd10g status -p 1521 -h <IP>
# Dump service data
tnscmd10g services -p 1521 -h <IP>
# Dump debugging information to the listener log
tnscmd10g debug -p 1521 -h <IP>
# Write the listener configuration file to a backup location
tnscmd10g save_config -p 1521 -h <IP>hydra -P rockyou.txt -t 32 -s 1521 <IP> oracle-listenerTargeting SID
Targeting Accounts
Logging into a Remote Database
Remote Code Execution
Read/Write files
OracleSQL Privilege Escalation
Automation Tools
Resources
Last updated