mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2026-08-04 14:55:40 +00:00
Minor bug fixes to --privileges for PostgreSQL query (corner case)
This commit is contained in:
parent
1879a49506
commit
74ef1e53c7
2 changed files with 3 additions and 3 deletions
|
|
@ -587,7 +587,7 @@ class Enumeration:
|
|||
|
||||
for priv in privs:
|
||||
if priv.isdigit() and int(priv) == 1:
|
||||
for position, pgsqlPriv in pgsqlPrivs:
|
||||
for position, pgsqlPriv in pgsqlPrivs.items():
|
||||
if position == i:
|
||||
privileges.add(pgsqlPriv)
|
||||
|
||||
|
|
@ -607,7 +607,7 @@ class Enumeration:
|
|||
|
||||
for priv in privs:
|
||||
if priv.upper() == "Y":
|
||||
for position, mysqlPriv in mysqlPrivs:
|
||||
for position, mysqlPriv in mysqlPrivs.items():
|
||||
if position == i:
|
||||
privileges.add(mysqlPriv)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue