mod0keecrack
mod0keecrack copied to clipboard
Cannot compile on Linux
Failed to compile using GCC on Kali Linux:
$ gcc -o keecrack helper.c mod0keecrack.c crypto-ms.c &> error.txt
In file included from mod0keecrack.c:45:0: mod0keecrack.h:41:19: error: conflicting types for ‘off_t’ typedef uintmax_t off_t; ^~~~~ In file included from mod0keecrack.c:40:0: /usr/include/stdio.h:90:17: note: previous declaration of ‘off_t’ was here typedef __off_t off_t; ^~~~~ mod0keecrack.c: In function ‘kdbx_headerentries_free’: mod0keecrack.c:58:7: warning: implicit declaration of function ‘free’ [-Wimplicit-function-declaration] free(e[i].data); ^~~~ mod0keecrack.c:58:7: warning: incompatible implicit declaration of built-in function ‘free’ mod0keecrack.c:58:7: note: include ‘<stdlib.h>’ or provide a declaration of ‘free’ mod0keecrack.c: In function ‘kdbx_headerentries_read’: mod0keecrack.c:98:35: warning: implicit declaration of function ‘malloc’ [-Wimplicit-function-declaration] entries[id].data = (uint8_t *)malloc(entries[id].len); ^~~~~~ mod0keecrack.c:98:35: warning: incompatible implicit declaration of built-in function ‘malloc’ mod0keecrack.c:98:35: note: include ‘<stdlib.h>’ or provide a declaration of ‘malloc’ mod0keecrack.c: In function ‘kdbx_payload_read’: mod0keecrack.c:182:32: warning: incompatible implicit declaration of built-in function ‘malloc’ p->encrypted = (uint8_t *)malloc(p->len); ^~~~~~ mod0keecrack.c:182:32: note: include ‘<stdlib.h>’ or provide a declaration of ‘malloc’ mod0keecrack.c: In function ‘kdbx_payload_crack’: mod0keecrack.c:226:27: warning: incompatible implicit declaration of built-in function ‘malloc’ key_hash = (uint8_t *)malloc(32); ^~~~~~ mod0keecrack.c:226:27: note: include ‘<stdlib.h>’ or provide a declaration of ‘malloc’ mod0keecrack.c: In function ‘kdbx_decrypt_payload’: mod0keecrack.c:309:36: warning: incompatible implicit declaration of built-in function ‘malloc’ masterkey_input = (uint8_t *)malloc(masterkey_input_len); ^~~~~~ mod0keecrack.c:309:36: note: include ‘<stdlib.h>’ or provide a declaration of ‘malloc’ mod0keecrack.c: In function ‘main’: mod0keecrack.c:353:28: warning: incompatible implicit declaration of built-in function ‘malloc’ kdbx_filename = (char *) malloc(filename_len + 5); ^~~~~~ mod0keecrack.c:353:28: note: include ‘<stdlib.h>’ or provide a declaration of ‘malloc’ mod0keecrack.c:357:5: warning: implicit declaration of function ‘exit’ [-Wimplicit-function-declaration]
` error.txt Here's the error in a cleaner format