minor update

This commit is contained in:
Miroslav Stampar 2011-03-26 22:03:46 +00:00
parent d2eb4c6a39
commit dba32306b0

View File

@ -470,11 +470,10 @@ def dictionaryAttack(attack_dict):
found = True found = True
break break
elif hash_regex == HASH.CRYPT_GENERIC and (IS_WIN or count % 1117 == 0): elif count % 1117 == 0 or count == length or hash_regex in (HASH.ORACLE_OLD) or hash_regex == HASH.CRYPT_GENERIC and IS_WIN:
status = '%d/%d words (%d%s)' % (count, length, round(100.0*count/length), '%') status = '%d/%d words (%d%s)' % (count, length, round(100.0*count/length), '%')
dataToStdout("\r[%s] [INFO] %s" % (time.strftime("%X"), status)) if not user.startswith(DUMMY_USER_PREFIX):
elif count % 1117 == 0 or count == length or hash_regex in (HASH.ORACLE_OLD): status += ' (user: %s)' % user
status = '%d/%d words (%d%s) (user: %s)' % (count, length, round(100.0*count/length), '%', user)
dataToStdout("\r[%s] [INFO] %s" % (time.strftime("%X"), status)) dataToStdout("\r[%s] [INFO] %s" % (time.strftime("%X"), status))
except KeyboardInterrupt: except KeyboardInterrupt: