mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2025-10-17 00:26:15 +08:00
style
This commit is contained in:
parent
315291e201
commit
03495f0b14
1 changed files with 9 additions and 9 deletions
|
@ -481,18 +481,18 @@ int createMfcKeyDump(const char *preferredName, uint8_t sectorsCnt, sector_t *e_
|
|||
uint8_t tmp[6] = {0, 0, 0, 0, 0, 0};
|
||||
|
||||
for (int i = 0; i < sectorsCnt; i++) {
|
||||
if (e_sector[i].foundKey[0])
|
||||
if (e_sector[i].foundKey[0])
|
||||
num_to_bytes(e_sector[i].Key[0], sizeof(tmp), tmp);
|
||||
else
|
||||
memcpy(tmp, empty, sizeof(tmp));
|
||||
else
|
||||
memcpy(tmp, empty, sizeof(tmp));
|
||||
fwrite(tmp, 1, sizeof(tmp), f);
|
||||
}
|
||||
|
||||
for (int i = 0; i < sectorsCnt; i++) {
|
||||
if (e_sector[i].foundKey[0])
|
||||
if (e_sector[i].foundKey[0])
|
||||
num_to_bytes(e_sector[i].Key[1], sizeof(tmp), tmp);
|
||||
else
|
||||
memcpy(tmp, empty, sizeof(tmp));
|
||||
else
|
||||
memcpy(tmp, empty, sizeof(tmp));
|
||||
fwrite(tmp, 1, sizeof(tmp), f);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue