5432 - PostgreSQL
Usage
SELECT version();SELECT current_user;SELECT datname FROM pg_database;// Query only user-created tables (excluding `pg_` tables)
SELECT table_name FROM <database>.information_schema.tables WHERE table_schema='public';SELECT column_name, data_type FROM <database>.information_schema.columns WHERE table_name='<table>'psql -h 127.0.0.1 -U postgres# Listing dbs
postgres=# \l
# Connecting to a db
postgres=# \c cozyhosting
# Listing tables
cozyhosting=# \dt
# Dumping data
cozyhosting=# select * from users;SQLi
Read/Write
RCE
Last updated