diff --git a/CHANGELOG.md b/CHANGELOG.md index c1bda4ff5..3ddaf4801 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,6 +7,8 @@ This project uses the changelog in accordance with [keepchangelog](http://keepac - Fix 'hf iclass wrbl' - dealing with tags in unsecured vs secured pagemode now is correct (@iceman1001) - Change many commands to cliparser (@iceman1001, @tcprst, @mwalker33,...) - ... + - Change `hf iclass chk/lookup/loclass` speedups (@iceman1001) + - Change - ongoing convertion to cliparser (@tcprst, @iceman1001) - Added compilation options for 256k Proxmark versions, see doc (@doegox) - Added support for 10b UID in `hf 14a sim` (@doegox) - Added `HF_TCPRST` standalone mode which read and emulate IKEA Rothult cards (@tcprst) diff --git a/Makefile b/Makefile index 89e5b4c98..8338a6959 100644 --- a/Makefile +++ b/Makefile @@ -169,6 +169,7 @@ help: @echo "+ fpga_compress - Make tools/fpga_compress" @echo @echo "+ style - Apply some automated source code formatting rules" + @echo "+ cliparser - Generate cliparser TODO @echo "+ check - Run offline tests. Set CHECKARGS to pass arguments to the test script" @echo "+ .../check - Run offline tests against specific target. See above." @echo "+ miscchecks - Detect various encoding issues in source code" @@ -248,6 +249,14 @@ endif # easy printing of MAKE VARIABLES print-%: ; @echo $* = $($*) +cliparser: + # Get list of all commands + cat doc/commands.md | grep -e ^\|\` | cut -f 2 -d "\`" | grep -v help | awk '{$$1=$$1};1' > cliparser_all_commands.tmp + # Get list of cliparserized commands + grep -r CLIParserInit ./client/src/ | cut -f 2 -d "\"" | awk '{$$1=$$1};1' > cliparser_done.tmp + # Determine commands that still need cliparser conversion + grep -xvf cliparser_done.tmp cliparser_all_commands.tmp > ./doc/cliparser_todo.txt + style: # Make sure astyle is installed @which astyle >/dev/null || ( echo "Please install 'astyle' package first" ; exit 1 ) diff --git a/armsrc/felica.c b/armsrc/felica.c index aafdae5d8..7aa524e62 100644 --- a/armsrc/felica.c +++ b/armsrc/felica.c @@ -620,7 +620,7 @@ void felica_sniff(uint32_t samplesToSkip, uint32_t triggersToSkip) { set_tracelen(numbts); set_tracelen(BigBuf_max_traceLen()); - Dbprintf("Felica sniffing done, tracelen: %i, use hf list felica for annotations", BigBuf_get_traceLen()); + Dbprintf("Felica sniffing done, tracelen: %i, use " _YELLOW_("`hf felica list`") " for annotations", BigBuf_get_traceLen()); reply_mix(CMD_ACK, 1, numbts, 0, 0, 0); LED_D_OFF(); } diff --git a/armsrc/iso14443a.c b/armsrc/iso14443a.c index 806c63091..9852b15d5 100644 --- a/armsrc/iso14443a.c +++ b/armsrc/iso14443a.c @@ -20,6 +20,7 @@ #include "ticks.h" #include "dbprint.h" #include "util.h" +#include "util.h" #include "parity.h" #include "mifareutil.h" #include "commonutil.h" @@ -1979,9 +1980,11 @@ int EmGetCmd(uint8_t *received, uint16_t *len, uint8_t *par) { for (;;) { WDT_HIT(); - if (check == 2000) { - if (BUTTON_PRESS()) + if (check == 1000) { + if (BUTTON_PRESS() || data_available()) { + Dbprintf("----------- " _GREEN_("BREAKING") " ----------"); return 1; + } check = 0; } ++check; diff --git a/armsrc/mifaresim.c b/armsrc/mifaresim.c index 4eaf711b3..bba3132a7 100644 --- a/armsrc/mifaresim.c +++ b/armsrc/mifaresim.c @@ -535,8 +535,9 @@ void Mifare1ksim(uint16_t flags, uint8_t exitAfterNReads, uint8_t *datain, uint1 WDT_HIT(); - if (counter == 2000) { + if (counter == 1000) { if (data_available()) { + Dbprintf("----------- " _GREEN_("BREAKING") " ----------"); break; } counter = 0; diff --git a/client/dictionaries/mfc_default_keys.dic b/client/dictionaries/mfc_default_keys.dic index 38c6e2503..9f716608a 100644 --- a/client/dictionaries/mfc_default_keys.dic +++ b/client/dictionaries/mfc_default_keys.dic @@ -105,6 +105,11 @@ c934fe34d934 cccccccccccc dddddddddddd eeeeeeeeeeee +# +# elevator +# data from forum +FFFFFF545846 +# f1a97341a9fc 44ab09010845 # hotel system 85fed980ea5a # hotel system diff --git a/client/dictionaries/t55xx_default_pwds.dic b/client/dictionaries/t55xx_default_pwds.dic index 6e7a69583..afc00bddf 100644 --- a/client/dictionaries/t55xx_default_pwds.dic +++ b/client/dictionaries/t55xx_default_pwds.dic @@ -20,6 +20,11 @@ A5B4C3D2 00434343 44B44CAE 88661858 +# +# ZX-copy3 T55xx / EM4305 +# ref. http://www.proxmark.org/forum/viewtopic.php?pid=40662#p40662 +19920427 +84AC15E2 # paxton bullit? 575F4F4B # diff --git a/client/src/cmdhffelica.c b/client/src/cmdhffelica.c index 083e69b21..b051f58c0 100644 --- a/client/src/cmdhffelica.c +++ b/client/src/cmdhffelica.c @@ -49,7 +49,7 @@ static int usage_hf_felica_sim(void) { static int usage_hf_felica_sniff(void) { PrintAndLogEx(NORMAL, "\nInfo: It get data from the field and saves it into command buffer. "); - PrintAndLogEx(NORMAL, " Buffer accessible from command 'hf list felica'"); + PrintAndLogEx(NORMAL, " Buffer accessible from command 'hf felica list'"); PrintAndLogEx(NORMAL, "\nUsage: hf felica sniff [-h] [-s] [-t]"); PrintAndLogEx(NORMAL, " -h this help"); PrintAndLogEx(NORMAL, " -s samples to skip (decimal) max 9999"); diff --git a/client/src/cmdhficlass.c b/client/src/cmdhficlass.c index 49784c4f5..04382b7db 100644 --- a/client/src/cmdhficlass.c +++ b/client/src/cmdhficlass.c @@ -51,103 +51,6 @@ static uint8_t iClass_Key_Table[ICLASS_KEYS_MAX][8] = { { 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 } }; -static int usage_hf_iclass_sim(void) { - PrintAndLogEx(NORMAL, "Simulate a iCLASS legacy/standard tag\n"); - PrintAndLogEx(NORMAL, "Usage: hf iCLASS sim [h]