Permalink
Browse files

Fix an old bug with CPstoreUTF8 vs. split hashes and --show. Some

cracked hashes with passwords containing 8-bit characters would be
output as partially uncracked in case CPstoreUTF8 was enabled.
  • Loading branch information...
1 parent 790e34a commit 0862670c003dccb1ab85ba946f9ab9aa4510950a @magnumripper committed Feb 11, 2014
Showing with 3 additions and 1 deletion.
  1. +3 −1 src/loader.c
View
@@ -1167,7 +1167,9 @@ static void ldr_show_pw_line(struct db_main *db, char *line)
if (format)
chars = format->params.plaintext_length;
if (index < count - 1 && current &&
- (int)strlen(current->plaintext) != chars)
+ (options.store_utf8 ?
+ (int)strlen8((UTF8*)current->plaintext) :
+ (int)strlen(current->plaintext)) != chars)
current = NULL;
}

0 comments on commit 0862670

Please sign in to comment.