mirror of
https://github.com/swisskyrepo/PayloadsAllTheThings.git
synced 2025-01-18 09:25:26 +00:00
Merge pull request #115 from nizam0906/master
Added List Database Administrator Accounts
This commit is contained in:
commit
377aad4061
@ -7,6 +7,7 @@
|
|||||||
* [PostgreSQL Current User](#postgresql-current-user)
|
* [PostgreSQL Current User](#postgresql-current-user)
|
||||||
* [PostgreSQL List Users](#postgresql-list-users)
|
* [PostgreSQL List Users](#postgresql-list-users)
|
||||||
* [PostgreSQL List Password Hashes](#postgresql-list-password-hashes)
|
* [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 List Privileges](#postgresql-list-privileges)
|
||||||
* [PostgreSQL database name](#postgresql-database-name)
|
* [PostgreSQL database name](#postgresql-database-name)
|
||||||
* [PostgreSQL List databases](#postgresql-list-database)
|
* [PostgreSQL List databases](#postgresql-list-database)
|
||||||
@ -57,7 +58,10 @@ SELECT usename FROM pg_user
|
|||||||
```sql
|
```sql
|
||||||
SELECT usename, passwd FROM pg_shadow
|
SELECT usename, passwd FROM pg_shadow
|
||||||
```
|
```
|
||||||
|
## PostgreSQL List Database Administrator Accounts
|
||||||
|
```sql
|
||||||
|
SELECT usename FROM pg_user WHERE usesuper IS TRUE
|
||||||
|
```
|
||||||
## PostgreSQL List Privileges
|
## PostgreSQL List Privileges
|
||||||
|
|
||||||
```sql
|
```sql
|
||||||
|
Loading…
Reference in New Issue
Block a user