mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2025-08-21 05:43:48 -07:00
Allow writing key B even when no key A was found
Likely a copy/paste bug Signed-off-by: Flole <Flole998@users.noreply.github.com>
This commit is contained in:
parent
ee2f5595ee
commit
4f77c18ab4
1 changed files with 1 additions and 1 deletions
|
@ -977,7 +977,7 @@ int createMfcKeyDump(const char *preferredName, uint8_t sectorsCnt, const sector
|
||||||
}
|
}
|
||||||
|
|
||||||
for (int i = 0; i < sectorsCnt; i++) {
|
for (int i = 0; i < sectorsCnt; i++) {
|
||||||
if (e_sector[i].foundKey[0])
|
if (e_sector[i].foundKey[1])
|
||||||
num_to_bytes(e_sector[i].Key[1], sizeof(tmp), tmp);
|
num_to_bytes(e_sector[i].Key[1], sizeof(tmp), tmp);
|
||||||
else
|
else
|
||||||
memcpy(tmp, empty, sizeof(tmp));
|
memcpy(tmp, empty, sizeof(tmp));
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue