Merge fa956e02ba7b49b4f820cbd4e83aeae159b67df4 into ba072f16f6b2a655d51da2171ecfb83e26c0ef58
This commit is contained in:
commit
5dc7f13f8b
18
src/mfoc.c
18
src/mfoc.c
@ -444,26 +444,24 @@ int main(int argc, char *const argv[])
|
||||
fprintf(stdout, "\n");
|
||||
for (i = 0; i < (t.num_sectors); ++i) {
|
||||
if (t.sectors[i].foundKeyA) {
|
||||
fprintf(stdout, "Sector %02d - Found Key A: %012llx ", i, bytes_to_num(t.sectors[i].KeyA, sizeof(t.sectors[i].KeyA)));
|
||||
memcpy(&knownKey, t.sectors[i].KeyA, 6);
|
||||
knownKey = bytes_to_num(t.sectors[i].KeyA, sizeof(t.sectors[i].KeyA));
|
||||
fprintf(stdout, "Sector %02d - Found Key A: %012llx ", i, knownKey);
|
||||
knownKeyLetter = 'A';
|
||||
knownSector = i;
|
||||
}
|
||||
else{
|
||||
} else {
|
||||
fprintf(stdout, "Sector %02d - Unknown Key A ", i);
|
||||
unknownSector = i;
|
||||
unknownKeyLetter = 'A';
|
||||
unknownSector = i;
|
||||
}
|
||||
if (t.sectors[i].foundKeyB) {
|
||||
fprintf(stdout, "Found Key B: %012llx\n", bytes_to_num(t.sectors[i].KeyB, sizeof(t.sectors[i].KeyB)));
|
||||
knownKey = bytes_to_num(t.sectors[i].KeyB, sizeof(t.sectors[i].KeyB));
|
||||
fprintf(stdout, "Found Key B: %012llx\n", knownKey);
|
||||
knownKeyLetter = 'B';
|
||||
memcpy(&knownKey, t.sectors[i].KeyB, 6);
|
||||
knownSector = i;
|
||||
}
|
||||
else{
|
||||
} else {
|
||||
fprintf(stdout, "Unknown Key B\n");
|
||||
unknownSector = i;
|
||||
unknownKeyLetter = 'B';
|
||||
unknownSector = i;
|
||||
}
|
||||
}
|
||||
fflush(stdout);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user