Vulnerability & Exploit Database

Back to search

PostgreSQL Server Generic Query

This module imports a file local on the PostgreSQL Server into a temporary table, reads it, and then drops the temporary table. It requires PostgreSQL credentials with table CREATE privileges as well as read privileges to the target file.

Free Metasploit Download

Get your copy of the world's leading penetration testing tool

 Download Now

Module Name



  • todb <todb [at]>



Module Options

To display the available options, load the module within the Metasploit console and run the commands 'show options' or 'show advanced':

msf > use auxiliary/admin/postgres/postgres_readfile msf auxiliary(postgres_readfile) > show actions ...actions... msf auxiliary(postgres_readfile) > set ACTION <action-name> msf auxiliary(postgres_readfile) > show options and set options... msf auxiliary(postgres_readfile) > run