From 2718019bef355092a2f5e10f33c6002a1c261c2b Mon Sep 17 00:00:00 2001 From: Keuin Date: Sat, 28 May 2022 03:12:03 +0800 Subject: Bugfix: if program is not configured to save the decrypted photo, it will say 'KEY WAS NOT FOUND'. --- main.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'main.c') diff --git a/main.c b/main.c index 05eda03..1589c6a 100644 --- a/main.c +++ b/main.c @@ -393,7 +393,9 @@ int main(int argc, char *argv[]) { fclose(fout); printf("Flash photo has been saved in: %s\n", plaintext_save_path); - } else { + } + + if (crack_result.plaintext == NULL) { printf("[-] KEY WAS NOT FOUND.\n"); } -- cgit v1.2.3