From 0b8c6e4c81ee65423ad136ccded2bf41430c8034 Mon Sep 17 00:00:00 2001
From: Bernardo Damele <bernardo.damele@gmail.com>
Date: Tue, 12 Jul 2011 15:30:40 +0000
Subject: [PATCH] Minor bug fix

---
 lib/utils/hash.py | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/lib/utils/hash.py b/lib/utils/hash.py
index c67f44586..7b3a74f44 100644
--- a/lib/utils/hash.py
+++ b/lib/utils/hash.py
@@ -349,7 +349,7 @@ def __bruteProcessVariantA(attack_info, hash_regex, wordlist, suffix, retVal, pr
 
                         clearConsoleLine()
 
-                        infoMsg = "[%s] [INFO] found: '%s'" % (time.strftime("%X"), word)
+                        infoMsg = "[%s] [INFO] found password '%s'" % (time.strftime("%X"), word)
 
                         if user and not user.startswith(DUMMY_USER_PREFIX):
                             infoMsg += " for user '%s'\n" % user
@@ -392,14 +392,14 @@ def __bruteProcessVariantB(user, hash_, kwargs, hash_regex, wordlist, suffix, re
 
             try:
                 if hash_ == current:
-                    if regex == HASH.ORACLE_OLD: #only for cosmetic purposes
+                    if hash_regex == HASH.ORACLE_OLD: #only for cosmetic purposes
                         word = word.upper()
 
                     retVal.put((user, hash_, word))
 
                     clearConsoleLine()
 
-                    infoMsg = "[%s] [INFO] found: '%s'" % (time.strftime("%X"), word)
+                    infoMsg = "[%s] [INFO] found password '%s'" % (time.strftime("%X"), word)
 
                     if user and not user.startswith(DUMMY_USER_PREFIX):
                         infoMsg += " for user '%s'\n" % user