- PrintAndLog("Printing keys to binary file dumpkeys.bin...");\r
- for(i=0; i<16; i++) {\r
- if (e_sector[i].foundKey[0]){\r
- num_to_bytes(e_sector[i].Key[0], 6, tempkey);\r
- fwrite ( tempkey, 1, 6, fkeys );\r
- }\r
- else{\r
- fwrite ( &standart, 1, 6, fkeys );\r
- }\r
- }\r
- for(i=0; i<16; i++) {\r
- if (e_sector[i].foundKey[1]){\r
- num_to_bytes(e_sector[i].Key[1], 6, tempkey);\r
- fwrite ( tempkey, 1, 6, fkeys );\r
- }\r
- else{\r
- fwrite ( &standart, 1, 6, fkeys );\r
- }\r
+ for (uint16_t t = 0; t < 2; t++) {\r
+ fwrite(foundKey[t], 1, 6*SectorsCnt, fkeys);\r