From 8bfee3b8027271d50ea109b3ea48a75fb88f8e73 Mon Sep 17 00:00:00 2001 From: Bernardo Damele Date: Mon, 11 Feb 2013 18:07:58 +0000 Subject: [PATCH] started to work on #373 to improve usability when user is not DBA --- plugins/generic/users.py | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/plugins/generic/users.py b/plugins/generic/users.py index ee5cf96c8..17b7330d1 100644 --- a/plugins/generic/users.py +++ b/plugins/generic/users.py @@ -295,23 +295,23 @@ class Users: errMsg += "database users (most probably because the session " errMsg += "user has no read privileges over the relevant " errMsg += "system database table)" - raise SqlmapNoneDataException(errMsg) + logger.error(errMsg) else: for user in kb.data.cachedUsersPasswords: kb.data.cachedUsersPasswords[user] = list(set(kb.data.cachedUsersPasswords[user])) - storeHashesToFile(kb.data.cachedUsersPasswords) + storeHashesToFile(kb.data.cachedUsersPasswords) - message = "do you want to perform a dictionary-based attack " - message += "against retrieved password hashes? [Y/n/q]" - test = readInput(message, default="Y") + message = "do you want to perform a dictionary-based attack " + message += "against retrieved password hashes? [Y/n/q]" + test = readInput(message, default="Y") - if test[0] in ("n", "N"): - pass - elif test[0] in ("q", "Q"): - raise SqlmapUserQuitException - else: - attackCachedUsersPasswords() + if test[0] in ("n", "N"): + pass + elif test[0] in ("q", "Q"): + raise SqlmapUserQuitException + else: + attackCachedUsersPasswords() return kb.data.cachedUsersPasswords