From b1fb181f7171caf0605939d1180c331acff55c12 Mon Sep 17 00:00:00 2001 From: Nate Sales Date: Wed, 8 Feb 2023 20:31:40 -0500 Subject: [PATCH 1/2] feat: add standalone ICECLASS read/sim mode --- CHANGELOG.md | 1 + armsrc/Standalone/hf_iceclass.c | 15 +++++++++++++-- 2 files changed, 14 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 81df05142..a86fac6e1 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -3,6 +3,7 @@ All notable changes to this project will be documented in this file. This project uses the changelog in accordance with [keepchangelog](http://keepachangelog.com/). Please use this to write notable changes, which is not the same as git commit log... ## [unreleased][unreleased] + - Add ICECLASS standalone read/sim mode (@natesales) - Fixed `lf em 4x70 brute` - now works as expected (@adite) - Fixed the lf sampling when bits_per_sample is less than 8 (@wh201906) - Added `lf em 4x70 brute` command (@adite) diff --git a/armsrc/Standalone/hf_iceclass.c b/armsrc/Standalone/hf_iceclass.c index 7d69e867a..9b9a03ed5 100644 --- a/armsrc/Standalone/hf_iceclass.c +++ b/armsrc/Standalone/hf_iceclass.c @@ -43,9 +43,10 @@ #define ICE_STATE_ATTACK 2 #define ICE_STATE_READER 3 #define ICE_STATE_CONFIGCARD 4 -#define ICE_STATE_DUMP_SIM 5 +#define ICE_STATE_DUMP_SIM 5 +#define ICE_STATE_READ_SIM 6 -#define HF_ICLASS_NUM_MODES 6 +#define HF_ICLASS_NUM_MODES 7 // ==================================================== // Select which standalone function to be active. @@ -56,6 +57,7 @@ //#define ICE_USE ICE_STATE_READER //#define ICE_USE ICE_STATE_CONFIGCARD //#define ICE_USE ICE_STATE_DUMP_SIM +//#define ICE_USE ICE_STATE_READ_SIM // ==================================================== @@ -720,6 +722,15 @@ void RunMod(void) { mode = ICE_STATE_NONE; break; } + case ICE_STATE_READ_SIM: { + DbpString("Entering reader dump mode"); + reader_dump_mode(); + SpinDelay(1200); // debounce button press + DbpString("Entering fullsim mode"); + fullsim_mode(); + DbpString("Exiting fullsim mode"); + LEDsoff(); + } } } From c42aa99d050deff733259a98c030a86443815f47 Mon Sep 17 00:00:00 2001 From: Nate Sales Date: Fri, 10 Feb 2023 21:55:23 -0500 Subject: [PATCH 2/2] refactor: add iceclass read sim info --- armsrc/Standalone/hf_iceclass.c | 1 + 1 file changed, 1 insertion(+) diff --git a/armsrc/Standalone/hf_iceclass.c b/armsrc/Standalone/hf_iceclass.c index 9b9a03ed5..481475bbc 100644 --- a/armsrc/Standalone/hf_iceclass.c +++ b/armsrc/Standalone/hf_iceclass.c @@ -723,6 +723,7 @@ void RunMod(void) { break; } case ICE_STATE_READ_SIM: { + DbpString("-=[ enter " _CYAN_("`read & sim`") " mode, read cards, then sim after button press ]=-"); DbpString("Entering reader dump mode"); reader_dump_mode(); SpinDelay(1200); // debounce button press