X-Git-Url: https://git.zerfleddert.de/cgi-bin/gitweb.cgi/proxmark3-svn/blobdiff_plain/c728b2b4cf2ce9fe4eebf0e46d74ef8542e56c16..00e524aaf54ed7ba5f2b25585dc8ceec629cd8aa:/client/cmdlfguard.c diff --git a/client/cmdlfguard.c b/client/cmdlfguard.c index 686ada27..d9010a19 100644 --- a/client/cmdlfguard.c +++ b/client/cmdlfguard.c @@ -6,8 +6,7 @@ //----------------------------------------------------------------------------- // Low frequency Farpoint / Pyramid tag commands //----------------------------------------------------------------------------- -#include -#include + #include "cmdlfguard.h" static int CmdHelp(const char *Cmd); @@ -40,7 +39,6 @@ int usage_lf_guard_sim(void) { return 0; } - // Works for 26bits. int GetGuardBits(uint32_t fc, uint32_t cn, uint8_t *guardBits) { @@ -50,8 +48,6 @@ int GetGuardBits(uint32_t fc, uint32_t cn, uint8_t *guardBits) { //uint8_t xorKey = rand() % 0xFF; uint8_t xorKey = 0x66; uint8_t i; - - uint8_t pre[96]; memset(pre, 0x00, sizeof(pre)); @@ -122,7 +118,7 @@ int GetGuardBits(uint32_t fc, uint32_t cn, uint8_t *guardBits) { int CmdGuardRead(const char *Cmd) { CmdLFRead("s"); - getSamples("30000",false); + getSamples("12000", TRUE); return CmdG_Prox_II_Demod(""); } @@ -140,6 +136,7 @@ int CmdGuardClone(const char *Cmd) { uint32_t blocks[5] = {T55x7_MODULATION_BIPHASE | T55x7_BITRATE_RF_64 | 3<