diff --git a/armsrc/Makefile b/armsrc/Makefile index a3280a0b9..c4531d0f3 100644 --- a/armsrc/Makefile +++ b/armsrc/Makefile @@ -31,7 +31,6 @@ APP_CFLAGS = $(PLATFORM_DEFS) \ -DWITH_CRC \ -DON_DEVICE \ -DWITH_LF \ - -DWITH_HITAG \ -DWITH_ISO15693 \ -DWITH_LEGICRF \ -DWITH_ISO14443b \ @@ -43,6 +42,7 @@ APP_CFLAGS = $(PLATFORM_DEFS) \ -fno-strict-aliasing -ffunction-sections -fdata-sections ### IMPORTANT - move the commented variable below this line +# -DWITH_HITAG \ # -DWITH_FPC \ # -DWITH_LCD \ # -DWITH_EMV \ @@ -54,11 +54,11 @@ APP_CFLAGS = $(PLATFORM_DEFS) \ # -DWITH_LF_PROXBRUTE # -DWITH_LF_HIDBRUTE # -DWITH_HF_YOUNG -# -DWITH_HF_MATTYRUN - +# -DWITH_HF_MATTYRUN # -DWITH_HF_COLIN # -DWITH_HF_BOG -SRC_LF = lfops.c hitag2_crypto.c hitag2.c hitagS.c lfsampling.c pcf7931.c lfdemod.c +SRC_LF = lfops.c lfsampling.c pcf7931.c lfdemod.c SRC_ISO15693 = iso15693.c iso15693tools.c SRC_ISO14443a = iso14443a.c mifareutil.c mifarecmd.c epa.c mifaresim.c SRC_ISO14443b = iso14443b.c @@ -88,6 +88,12 @@ else SRC_FPC = endif +ifneq (,$(findstring WITH_HITAG,$(APP_CLAGS))) + SRC_HITAG = hitag2_crypto.c hitag2.c hitagS.c +else + SRC_HITAG = +endif + ifneq (,$(findstring WITH_LCD,$(APP_CLAGS))) SRC_LCD = fonts.c LCD.c else @@ -155,6 +161,7 @@ THUMBSRC = start.c \ $(SRC_FLASH) \ $(SRC_SMARTCARD) \ $(SRC_FPC) \ + $(SRC_HITAG) \ appmain.c \ printf.c \ commonutil.c \ diff --git a/armsrc/Standalone/hf_colin.h b/armsrc/Standalone/hf_colin.h index 2b7879b6b..c8f2ab8ed 100644 --- a/armsrc/Standalone/hf_colin.h +++ b/armsrc/Standalone/hf_colin.h @@ -17,7 +17,9 @@ #define __HF_COLIN_H #include "proxmark3.h" +#include "mifaresim.h" // mifare1ksim #include "mifareutil.h" +#include "mifaresim.h" #include "iso14443a.h" #include "protocols.h" #include "util.h" diff --git a/armsrc/Standalone/hf_mattyrun.c b/armsrc/Standalone/hf_mattyrun.c index 1f2fb6f11..de22d11f9 100644 --- a/armsrc/Standalone/hf_mattyrun.c +++ b/armsrc/Standalone/hf_mattyrun.c @@ -328,7 +328,7 @@ void RunMod() { /* TODO: - - Get UID from tag and set accordingly in emulator memory and call mifare1ksim with right flags (iceman) + - Get UID from tag and set accordingly in emulator memory and call mifaresim with right flags (iceman) */ if (!allKeysFound && keyFound) { Dbprintf("\t✕ There's currently no nested attack in MattyRun, sorry!"); diff --git a/armsrc/Standalone/hf_mattyrun.h b/armsrc/Standalone/hf_mattyrun.h index 6602eba54..687979162 100644 --- a/armsrc/Standalone/hf_mattyrun.h +++ b/armsrc/Standalone/hf_mattyrun.h @@ -12,11 +12,12 @@ #ifndef __HF_MATTYRUN_H #define __HF_MATTYRUN_H -//#include // for bool #include "standalone.h" // standalone definitions #include "apps.h" // debugstatements, lfops? #include "usb_cmd.h" // mifare1ksim flags +#include "mifaresim.h" // mifare1ksim #include "mifareutil.h" +#include "mifaresim.h" #define OPTS 2 diff --git a/armsrc/Standalone/readme.md b/armsrc/Standalone/readme.md index b694971a5..12fe6c145 100644 --- a/armsrc/Standalone/readme.md +++ b/armsrc/Standalone/readme.md @@ -81,7 +81,7 @@ APP_CFLAGS = -DWITH_CRC \ -DWITH_FLASH \ -DWITH_SMARTCARD \ -DWITH_HFSNOOP \ - -DWITH_HF_COLIN\ + -DWITH_HF_COLIN \ -DWITH_FPC \ -fno-strict-aliasing -ffunction-sections -fdata-sections diff --git a/client/cmdhficlass.c b/client/cmdhficlass.c index 4b02b7cc6..3c32af50a 100644 --- a/client/cmdhficlass.c +++ b/client/cmdhficlass.c @@ -2416,7 +2416,7 @@ static command_t CommandTable[] = { {"readblk", CmdHFiClass_ReadBlock, 0, "[options..] Authenticate and Read iClass block"}, {"reader", CmdHFiClassReader, 0, " Act like an iClass reader"}, {"readtagfile", CmdHFiClassReadTagFile, 1, "[options..] Display Content from tagfile"}, - {"replay", CmdHFiClassReader_Replay, 0, " Read an iClass tag via Reply Attack"}, + {"replay", CmdHFiClassReader_Replay, 0, " Read an iClass tag via Replay Attack"}, {"sim", CmdHFiClassSim, 0, "[options..] Simulate iClass tag"}, {"sniff", CmdHFiClassSniff, 0, " Eavesdrop iClass communication"}, {"writeblk", CmdHFiClass_WriteBlock, 0, "[options..] Authenticate and Write iClass block"}, diff --git a/client/emv/emv_roca.c b/client/emv/emv_roca.c index 13428826a..a3a8cb7fe 100644 --- a/client/emv/emv_roca.c +++ b/client/emv/emv_roca.c @@ -142,6 +142,7 @@ cleanup: int roca_self_test(void) { int ret = 0; + PrintAndLogEx(NORMAL, ""); PrintAndLogEx(INFO, "ROCA check vulnerability tests"); // positive diff --git a/fpga/Makefile b/fpga/Makefile index 324b48c7b..0a30cad29 100644 --- a/fpga/Makefile +++ b/fpga/Makefile @@ -1,4 +1,4 @@ -include ../common/Makefile.common +include ../common/Makefile.common # for $(DETECTED_OS) all: fpga_lf.bit fpga_hf.bit clean: diff --git a/fpga/fpga_lf.bit b/fpga/fpga_lf.bit index 7d9a840a3..a668017bf 100644 Binary files a/fpga/fpga_lf.bit and b/fpga/fpga_lf.bit differ diff --git a/fpga/lo_simulate.v b/fpga/lo_simulate.v index 57e602a2b..687bed27c 100644 --- a/fpga/lo_simulate.v +++ b/fpga/lo_simulate.v @@ -64,7 +64,7 @@ reg output_state; always @(posedge pck0) begin if((pck_divider == 8'd7) && !clk_state) begin - is_high = (adc_d >= 8'd200); + is_high = (adc_d >= 8'd191); is_low = (adc_d <= 8'd64); end end