mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2025-08-21 22:03:42 -07:00
minor
This commit is contained in:
parent
75f4a6123c
commit
74cd1bee35
1 changed files with 12 additions and 11 deletions
|
@ -1997,19 +1997,19 @@ void MifareCIdent() {
|
||||||
|
|
||||||
// Generation 1 test
|
// Generation 1 test
|
||||||
ReaderTransmitBitsPar(wupC1, 7, NULL, NULL);
|
ReaderTransmitBitsPar(wupC1, 7, NULL, NULL);
|
||||||
if (!ReaderReceive(rec, recpar) || (rec[0] != 0x0a)) {
|
|
||||||
goto TEST2;
|
if (ReaderReceive(rec, recpar) || (rec[0] != 0x0a)) {
|
||||||
};
|
|
||||||
|
|
||||||
ReaderTransmit(wupC2, sizeof(wupC2), NULL);
|
ReaderTransmit(wupC2, sizeof(wupC2), NULL);
|
||||||
|
|
||||||
if (!ReaderReceive(rec, recpar) || (rec[0] != 0x0a)) {
|
if (!ReaderReceive(rec, recpar) || (rec[0] != 0x0a)) {
|
||||||
isGen = GEN_1B;
|
isGen = GEN_1B;
|
||||||
goto OUT;
|
goto OUT;
|
||||||
};
|
};
|
||||||
isGen = GEN_1A;
|
isGen = GEN_1A;
|
||||||
goto OUT;
|
goto OUT;
|
||||||
|
}
|
||||||
|
|
||||||
TEST2:
|
|
||||||
// reset card
|
// reset card
|
||||||
FpgaWriteConfWord(FPGA_MAJOR_MODE_OFF);
|
FpgaWriteConfWord(FPGA_MAJOR_MODE_OFF);
|
||||||
SpinDelay(100);
|
SpinDelay(100);
|
||||||
|
@ -2017,6 +2017,7 @@ TEST2:
|
||||||
|
|
||||||
int res = iso14443a_select_card(uid, NULL, &cuid, true, 0, true);
|
int res = iso14443a_select_card(uid, NULL, &cuid, true, 0, true);
|
||||||
if (res == 2) {
|
if (res == 2) {
|
||||||
|
Dbprintf("cident AA55C396 == %08X", cuid);
|
||||||
if (cuid == 0xAA55C396) {
|
if (cuid == 0xAA55C396) {
|
||||||
isGen = GEN_UNFUSED;
|
isGen = GEN_UNFUSED;
|
||||||
goto OUT;
|
goto OUT;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue