Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 9fc0bed

Browse files
committed
Minor bug fixes
1 parent 2a0b03e commit 9fc0bed

2 files changed

Lines changed: 9 additions & 3 deletions

File tree

doc/THANKS

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -399,7 +399,7 @@ Bedirhan Urgun <[email protected]>
399399
benchmark project, OWASP SQLiBench, http://code.google.com/p/sqlibench
400400

401401
Kyprianos Vasilopoulos <[email protected]>
402-
for reporting an unhandled connection exception
402+
for reporting a couple of minor bugs
403403

404404
Carlos Gabriel Vergara <[email protected]>
405405
for suggesting couple of good features

plugins/generic/enumeration.py

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -267,7 +267,10 @@ def getPasswordHashes(self):
267267
if parsedUser:
268268
user = parsedUser.groups()[0]
269269

270-
if user in retrievedUsers:
270+
if isinstance(user, list):
271+
user = user[0]
272+
273+
if not user or user in retrievedUsers:
271274
continue
272275

273276
infoMsg = "fetching number of password hashes "
@@ -536,7 +539,10 @@ def getPrivileges(self, query2=False):
536539
if Backend.getIdentifiedDbms() == DBMS.MYSQL and kb.data.has_information_schema:
537540
unescapedUser = unescaper.unescape(user, quote=False)
538541

539-
if user in retrievedUsers:
542+
if isinstance(user, list):
543+
user = user[0]
544+
545+
if not user or user in retrievedUsers:
540546
continue
541547

542548
infoMsg = "fetching number of privileges "

0 commit comments

Comments
 (0)