Oracle Listener 1521 1522 1529

1. Nmap for Oracle Listener Enumeration:

  • Scan Oracle TNS version:

    nmap --script "oracle-tns-version" -p 1521 -T4 -sV 10.11.1.222

2. tnscmd10g for Oracle TNS Commands:

  • Install tnscmd10g:

    sudo apt install tnscmd10g
  • Check Oracle version and status of services:

    tnscmd10g version -p 1521 -h 10.11.1.222 status services debug
  • List Oracle services:

    tnscmd10g services -10g -p 1521 -h 10.11.1.222

3. oscanner for Oracle Enumeration:

  • Scan with oscanner:

    sudo oscanner -s 10.11.1.222 -P 1521

4. Metasploit Oracle Auxiliary Scanner:

  • Use the tnscmd module in Metasploit:

    msfconsole
    msf> use auxiliary/admin/oracle/tnscmd.rb

Last updated