X-Git-Url: https://git.zerfleddert.de/cgi-bin/gitweb.cgi/proxmark3-svn/blobdiff_plain/ff9c043da29150aa785723326537ba93ddac0614..9833360b251571f82749c352f49d712c9c8322ad:/client/cmdlfguard.c?ds=sidebyside diff --git a/client/cmdlfguard.c b/client/cmdlfguard.c index ddfd2963..66cc396b 100644 --- a/client/cmdlfguard.c +++ b/client/cmdlfguard.c @@ -21,7 +21,7 @@ int usage_lf_guard_clone(void){ PrintAndLog(" : 8-bit value facility code"); PrintAndLog(" : 16-bit value card number"); PrintAndLog(""); - PrintAndLog("Sample : lf guard clone 123 11223"); + PrintAndLog("Sample : lf guard clone 26 123 11223"); return 0; } @@ -31,13 +31,13 @@ int usage_lf_guard_sim(void) { PrintAndLog("The facility-code is 8-bit and the card number is 16-bit. Larger values are truncated."); PrintAndLog("Currently work only on 26bit"); PrintAndLog(""); - PrintAndLog("Usage: lf guard sim "); + PrintAndLog("Usage: lf guard sim "); PrintAndLog("Options :"); PrintAndLog(" : format length 26|32|36|40"); PrintAndLog(" : 8-bit value facility code"); PrintAndLog(" : 16-bit value card number"); PrintAndLog(""); - PrintAndLog("Sample : lf guard sim 123 11223"); + PrintAndLog("Sample : lf guard sim 26 123 11223"); return 0; } @@ -159,7 +159,7 @@ int CmdGuardClone(const char *Cmd) { //t5555 (Q5) BITRATE = (RF-2)/2 (iceman) blocks[0] = T5555_MODULATION_FSK2 | ((50-2)>>1) << T5555_BITRATE_SHIFT | 3 << T5555_MAXBLOCK_SHIFT; - if (sscanf(Cmd, "%u %u %u", &fmtlen, &fc, &cn ) != 2) return usage_lf_guard_clone(); + if (sscanf(Cmd, "%u %u %u", &fmtlen, &fc, &cn ) != 3) return usage_lf_guard_clone(); fmtlen &= 0x7f; facilitycode = (fc & 0x000000FF); @@ -207,7 +207,7 @@ int CmdGuardSim(const char *Cmd) { uint8_t bs[96]; memset(bs, 0x00, sizeof(bs)); - if (sscanf(Cmd, "%u %u %u", &fmtlen, &fc, &cn ) != 2) return usage_lf_guard_sim(); + if (sscanf(Cmd, "%u %u %u", &fmtlen, &fc, &cn ) != 3) return usage_lf_guard_sim(); fmtlen &= 0x7F; facilitycode = (fc & 0x000000FF);