Skip to content

Commit

Permalink
Merge pull request swisskyrepo#115 from nizam0906/master
Browse files Browse the repository at this point in the history
Added List Database Administrator Accounts
  • Loading branch information
swisskyrepo authored Oct 29, 2019
2 parents b256942 + bb2c247 commit 377aad4
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion SQL Injection/PostgreSQL Injection.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
* [PostgreSQL Current User](#postgresql-current-user)
* [PostgreSQL List Users](#postgresql-list-users)
* [PostgreSQL List Password Hashes](#postgresql-list-password-hashes)
* [PostgreSQL List Database Administrator Accounts](#postgresql-list-database-administrator-accounts)
* [PostgreSQL List Privileges](#postgresql-list-privileges)
* [PostgreSQL database name](#postgresql-database-name)
* [PostgreSQL List databases](#postgresql-list-database)
Expand Down Expand Up @@ -57,7 +58,10 @@ SELECT usename FROM pg_user
```sql
SELECT usename, passwd FROM pg_shadow
```

## PostgreSQL List Database Administrator Accounts
```sql
SELECT usename FROM pg_user WHERE usesuper IS TRUE
```
## PostgreSQL List Privileges

```sql
Expand Down

0 comments on commit 377aad4

Please sign in to comment.