X-Git-Url: https://git.zerfleddert.de/cgi-bin/gitweb.cgi/proxmark3-svn/blobdiff_plain/b10a759fefc33673745dd65a6b4ba11af7cf8025..14e18625377f3fd0a1e3ddd5ac8f286b78531eda:/client/cmdhf14b.c diff --git a/client/cmdhf14b.c b/client/cmdhf14b.c index d1eb9917..060656c2 100644 --- a/client/cmdhf14b.c +++ b/client/cmdhf14b.c @@ -11,7 +11,6 @@ #include #include #include -//#include #include #include "iso14443crc.h" #include "proxmark3.h" @@ -43,7 +42,7 @@ int CmdHF14BSim(const char *Cmd) int CmdHF14BSnoop(const char *Cmd) { - UsbCommand c = {CMD_SNOOP_ISO_14443B}; + UsbCommand c = {CMD_SNOOP_ISO_14443B}; clearCommandBuffer(); SendCommand(&c); return 0; @@ -225,7 +224,7 @@ int CmdHF14BCmdRaw (const char *Cmd) { // REQB if (HF14BCmdRaw(true, &crc2, true, cmd2, &cmdLen, false)==0) return rawClose(); - PrintAndLog("REQB : %s", sprint_hex(cmd2, 9)); + PrintAndLog("REQB : %s", sprint_hex(cmd2, cmdLen)); if ( SRx && (cmdLen != 3 || !crc2) ) return rawClose(); else if (cmd2[0] != 0x50 || cmdLen != 14 || !crc2) return rawClose(); @@ -251,7 +250,7 @@ int CmdHF14BCmdRaw (const char *Cmd) { // attrib if (HF14BCmdRaw(true, &crc2, true, cmd2, &cmdLen, false)==0) return rawClose(); - PrintAndLog("ATTRIB : %s", sprint_hex(cmd2, 3)); + PrintAndLog("ATTRIB : %s", sprint_hex(cmd2, cmdLen)); if (cmdLen != 3 || !crc2) return rawClose(); if (SRx && cmd2[0] != chipID) return rawClose();