From f172064f988ebd871ce2e941cae1bee905a638c5 Mon Sep 17 00:00:00 2001 From: Philippe Teuwen Date: Fri, 17 Feb 2017 13:45:36 +0100 Subject: [PATCH] Port miLazyCracker patch: fix 4k and Mini cf https://github.com/iAmNotSuperman/miLazyCracker/blob/39658a2ac4d2d672720223c6f12533a78937a35d/mfoc_fix_4k_and_mini.diff --- src/mfoc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/mfoc.c b/src/mfoc.c index 32ef6f7..babbe15 100644 --- a/src/mfoc.c +++ b/src/mfoc.c @@ -680,7 +680,7 @@ int main(int argc, char *const argv[]) } // Finally save all keys + data to file - uint16_t dump_size = (t.num_blocks + 1) * t.num_sectors; + uint16_t dump_size = (t.num_blocks + 1) * 16; if (fwrite(&mtDump, 1, dump_size, pfDump) != dump_size) { fprintf(stdout, "Error, cannot write dump\n"); fclose(pfDump);