From a1738aee27992602ed864a503971546a2fa21048 Mon Sep 17 00:00:00 2001 From: mwalker33 Date: Thu, 17 Sep 2020 18:26:59 +1000 Subject: [PATCH] lf t55xx sniff - option fix change level samples to "s" and from buffer to "1" --- CHANGELOG.md | 1 + client/src/cmdlft55xx.c | 14 +++++++------- 2 files changed, 8 insertions(+), 7 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index d95130493..1049fd0d0 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 lf t55xx sniff to allow extracting commands and passwords used be cloners. (@mwalker33) - Add options to `lf read` and `lf cmdread` (@doegox) - Change options of `lf read` to match `lf cmdread`, this affects historical `d` and `s` options (@doegox) - Add `hf waveshare` to upload picture to Waveshare NFC-Powered e-Paper (@doegox) diff --git a/client/src/cmdlft55xx.c b/client/src/cmdlft55xx.c index 9cc15168b..617cb4c92 100644 --- a/client/src/cmdlft55xx.c +++ b/client/src/cmdlft55xx.c @@ -401,17 +401,17 @@ static int usage_t55xx_clonehelp(void) { return PM3_SUCCESS; } static int usage_t55xx_sniff(void) { - PrintAndLogEx(NORMAL, "Usage: lf t55xx sniff [w ] [l ] [b] [h]"); + PrintAndLogEx(NORMAL, "Usage: lf t55xx sniff [w ] [l ] [s ] [1] [h]"); PrintAndLogEx(NORMAL, "Options:"); PrintAndLogEx(NORMAL, " w <0> <1> - Set samples width for 0 and 1 matching (default auto detect)"); - PrintAndLogEx(NORMAL, " l - Set minimum signal level (default 20)"); - PrintAndLogEx(NORMAL, " b - Extract from current sample buffer (default will get new samples)"); + PrintAndLogEx(NORMAL, " s - Set minimum signal level (default 20)"); + PrintAndLogEx(NORMAL, " 1 - Extract from current sample buffer (default will get new samples)"); PrintAndLogEx(NORMAL, " h - This help"); PrintAndLogEx(NORMAL, ""); PrintAndLogEx(NORMAL, "Examples:"); PrintAndLogEx(NORMAL, _YELLOW_(" lf t55xx sniff")); - PrintAndLogEx(NORMAL, _YELLOW_(" lf t55xx sniff b")); - PrintAndLogEx(NORMAL, _YELLOW_(" lf t55xx sniff w 7 14 b")); + PrintAndLogEx(NORMAL, _YELLOW_(" lf t55xx sniff 1")); + PrintAndLogEx(NORMAL, _YELLOW_(" lf t55xx sniff w 7 14 1")); PrintAndLogEx(NORMAL, ""); return PM3_SUCCESS; } @@ -3777,7 +3777,7 @@ static int CmdT55xxSniff(const char *Cmd) { switch (tolower(param_getchar(Cmd, cmdp))) { case 'h': return usage_t55xx_sniff(); - case 'b': + case '1': sampleData = false; cmdp ++; break; @@ -3793,7 +3793,7 @@ static int CmdT55xxSniff(const char *Cmd) { return usage_t55xx_sniff(); } break; - case 'l': + case 's': minLevel = param_get8ex(Cmd, cmdp + 1, 0, 10); cmdp += 2; break;