From 1f660557ebb080b7a7f09f8fca2ebaf7da961b53 Mon Sep 17 00:00:00 2001 From: Sebastian Meyer Date: Mon, 7 Oct 2024 10:54:47 +0200 Subject: [PATCH 1/2] Fix hf_craftbyte.c: too few arguments to function 'SimulateIso14443aTag' Signed-off-by: Sebastian Meyer --- armsrc/Standalone/hf_craftbyte.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/armsrc/Standalone/hf_craftbyte.c b/armsrc/Standalone/hf_craftbyte.c index 41d9a3503..06d032f27 100644 --- a/armsrc/Standalone/hf_craftbyte.c +++ b/armsrc/Standalone/hf_craftbyte.c @@ -94,22 +94,22 @@ void RunMod(void) { 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) { 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) { 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) { 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) { 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) { DbpString("Mifare DESFire Ev1/Plus/JCOP"); - SimulateIso14443aTag(3, flags, card.uid, 0); + SimulateIso14443aTag(3, flags, card.uid, 0, NULL); } else { 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 From 51520adc1d6b323a336b7c22f9202db9cdc0e5b8 Mon Sep 17 00:00:00 2001 From: Sebastian Meyer Date: Mon, 7 Oct 2024 10:55:34 +0200 Subject: [PATCH 2/2] Update CHANGELOG.md Signed-off-by: Sebastian Meyer --- CHANGELOG.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index d3cef45b0..46be984a6 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -32,7 +32,7 @@ This project uses the changelog in accordance with [keepchangelog](http://keepac - Added detection of a magic NTAG 215 (@iceman1001) - Fixed hardnested on AVX512F #2410 (@xianglin1998) - Added `hf 14a aidsim` - simulates a PICC (like `14a sim`), and allows you to respond to specific AIDs and getData responses (@evildaemond) -- Fixed incorrect argument count for `SimulateIso14443aTag` in `hf_young.c` and `hf_aveful.c`. +- Fixed incorrect argument count for `SimulateIso14443aTag` in `hf_young.c`, `hf_aveful.c` and `hf_craftbyte.c`. ## [Backdoor.4.18994][2024-09-10] - Changed flashing messages to be less scary (@iceman1001)