mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2025-08-20 21:33:47 -07:00
Quick fix on standalone modes using SimulateIso14443aTag. Still need to fix those with SimulateIso14443aInit
This commit is contained in:
parent
90c8fa03e3
commit
05ec053a38
2 changed files with 7 additions and 7 deletions
|
@ -251,7 +251,7 @@ void RunMod(void) {
|
||||||
uint16_t flags = FLAG_7B_UID_IN_DATA;
|
uint16_t flags = FLAG_7B_UID_IN_DATA;
|
||||||
|
|
||||||
Dbprintf("Starting simulation, press " _GREEN_("pm3 button") " to stop and go back to search state.");
|
Dbprintf("Starting simulation, press " _GREEN_("pm3 button") " to stop and go back to search state.");
|
||||||
SimulateIso14443aTag(7, flags, card.uid, 0);
|
SimulateIso14443aTag(7, flags, card.uid, 0, NULL);
|
||||||
|
|
||||||
// Go back to search state if user presses pm3-button
|
// Go back to search state if user presses pm3-button
|
||||||
state = STATE_SEARCH;
|
state = STATE_SEARCH;
|
||||||
|
|
|
@ -94,22 +94,22 @@ void RunMod(void) {
|
||||||
Dbprintf("Starting simulation, press " _GREEN_("pm3 button") " to stop and go back to search state.");
|
Dbprintf("Starting simulation, press " _GREEN_("pm3 button") " to stop and go back to search state.");
|
||||||
if (card.sak == 0x08 && card.atqa[0] == 0x04 && card.atqa[1] == 0) {
|
if (card.sak == 0x08 && card.atqa[0] == 0x04 && card.atqa[1] == 0) {
|
||||||
DbpString("Mifare Classic 1k");
|
DbpString("Mifare Classic 1k");
|
||||||
SimulateIso14443aTag(1, flags, card.uid, 0);
|
SimulateIso14443aTag(1, flags, card.uid, 0, NULL);
|
||||||
} else if (card.sak == 0x08 && card.atqa[0] == 0x44 && card.atqa[1] == 0) {
|
} else if (card.sak == 0x08 && card.atqa[0] == 0x44 && card.atqa[1] == 0) {
|
||||||
DbpString("Mifare Classic 4k ");
|
DbpString("Mifare Classic 4k ");
|
||||||
SimulateIso14443aTag(8, flags, card.uid, 0);
|
SimulateIso14443aTag(8, flags, card.uid, 0, NULL);
|
||||||
} else if (card.sak == 0x00 && card.atqa[0] == 0x44 && card.atqa[1] == 0) {
|
} else if (card.sak == 0x00 && card.atqa[0] == 0x44 && card.atqa[1] == 0) {
|
||||||
DbpString("Mifare Ultralight");
|
DbpString("Mifare Ultralight");
|
||||||
SimulateIso14443aTag(2, flags, card.uid, 0);
|
SimulateIso14443aTag(2, flags, card.uid, 0, NULL);
|
||||||
} else if (card.sak == 0x20 && card.atqa[0] == 0x04 && card.atqa[1] == 0x03) {
|
} else if (card.sak == 0x20 && card.atqa[0] == 0x04 && card.atqa[1] == 0x03) {
|
||||||
DbpString("Mifare DESFire");
|
DbpString("Mifare DESFire");
|
||||||
SimulateIso14443aTag(3, flags, card.uid, 0);
|
SimulateIso14443aTag(3, flags, card.uid, 0, NULL);
|
||||||
} else if (card.sak == 0x20 && card.atqa[0] == 0x44 && card.atqa[1] == 0x03) {
|
} else if (card.sak == 0x20 && card.atqa[0] == 0x44 && card.atqa[1] == 0x03) {
|
||||||
DbpString("Mifare DESFire Ev1/Plus/JCOP");
|
DbpString("Mifare DESFire Ev1/Plus/JCOP");
|
||||||
SimulateIso14443aTag(3, flags, card.uid, 0);
|
SimulateIso14443aTag(3, flags, card.uid, 0, NULL);
|
||||||
} else {
|
} else {
|
||||||
Dbprintf("Unrecognized tag type -- defaulting to Mifare Classic emulation");
|
Dbprintf("Unrecognized tag type -- defaulting to Mifare Classic emulation");
|
||||||
SimulateIso14443aTag(1, flags, card.uid, 0);
|
SimulateIso14443aTag(1, flags, card.uid, 0, NULL);
|
||||||
}
|
}
|
||||||
|
|
||||||
// Go back to search state if user presses pm3-button
|
// Go back to search state if user presses pm3-button
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue