> For the complete documentation index, see [llms.txt](https://106-sam.gitbook.io/ejptv2-notes/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://106-sam.gitbook.io/ejptv2-notes/enumeration/postgresql.md).

# postgreSQL

PostgreSQL also known as Postgres, is a free and open-source relational database management system emphasizing extensibility and SQL compliance.<br>

#### Enumeration&#x20;

* &#x20;Enumerates the postgre's user credentials

```
auxiliary/scanner/postgres/postgres_login
```

* Execute command using postgre\[needs creds]

```
auxiliary/admin/postgres/postgres_sql
```

* To  dump  hashes&#x20;

```
auxiliary/scanner/postgres/postgres_hashdump
```

* Allows users to view files  of their choosing from  the server  \[authentication required]

```
auxiliary/admin/postgres/postgres_readfile
```

* Allows arbitrary command execution with the proper user credentials

```
exploit/multi/postgres/postgres_copy_from_program_cmd_exec
```
