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

Skip to content

Commit 8bfee3b

Browse files
committed
started to work on #373 to improve usability when user is not DBA
1 parent d6db83f commit 8bfee3b

1 file changed

Lines changed: 11 additions & 11 deletions

File tree

plugins/generic/users.py

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -295,23 +295,23 @@ def getPasswordHashes(self):
295295
errMsg += "database users (most probably because the session "
296296
errMsg += "user has no read privileges over the relevant "
297297
errMsg += "system database table)"
298-
raise SqlmapNoneDataException(errMsg)
298+
logger.error(errMsg)
299299
else:
300300
for user in kb.data.cachedUsersPasswords:
301301
kb.data.cachedUsersPasswords[user] = list(set(kb.data.cachedUsersPasswords[user]))
302302

303-
storeHashesToFile(kb.data.cachedUsersPasswords)
303+
storeHashesToFile(kb.data.cachedUsersPasswords)
304304

305-
message = "do you want to perform a dictionary-based attack "
306-
message += "against retrieved password hashes? [Y/n/q]"
307-
test = readInput(message, default="Y")
305+
message = "do you want to perform a dictionary-based attack "
306+
message += "against retrieved password hashes? [Y/n/q]"
307+
test = readInput(message, default="Y")
308308

309-
if test[0] in ("n", "N"):
310-
pass
311-
elif test[0] in ("q", "Q"):
312-
raise SqlmapUserQuitException
313-
else:
314-
attackCachedUsersPasswords()
309+
if test[0] in ("n", "N"):
310+
pass
311+
elif test[0] in ("q", "Q"):
312+
raise SqlmapUserQuitException
313+
else:
314+
attackCachedUsersPasswords()
315315

316316
return kb.data.cachedUsersPasswords
317317

0 commit comments

Comments
 (0)