X-Git-Url: https://git.zerfleddert.de/cgi-bin/gitweb.cgi/proxmark3-svn/blobdiff_plain/758f5ee3e59a9a0774fb272e7fb7930c91c7ca61..a28d34f407dc172f1e5b0dc257e8fc89e67706f0:/client/cmdlfhid.c diff --git a/client/cmdlfhid.c b/client/cmdlfhid.c index f17bb58c..fd0f6eba 100644 --- a/client/cmdlfhid.c +++ b/client/cmdlfhid.c @@ -319,7 +319,8 @@ int CmdHIDWiegand(const char *Cmd) { uint32_t oem = 0, fc = 0; uint64_t cardnum = 0; - uint32_t blocks[2], wiegand[2]; + uint32_t blocks[2] = {0,0}; + uint32_t wiegand[2] = {0,0}; uint8_t bits[96]; uint8_t *bs = bits; @@ -335,14 +336,15 @@ int CmdHIDWiegand(const char *Cmd) { // uint8_t ftmlen[] = {26,33,34,35,37,38,40}; - PrintAndLog("HID | FC | CN | Wiegand | HID Formatted"); - PrintAndLog("----+-----+-------+-----------+--------------------"); + PrintAndLog("HID | OEM | FC | CN | Wiegand | HID Formatted"); + PrintAndLog("----+-----+-----+-------+-----------+--------------------"); for (uint8_t i = 0; i < sizeof(ftmlen); i++){ calcWiegand( ftmlen[i], fc, cardnum, bs); blocks[0] = bytebits_to_byte(bs,32); blocks[1] = bytebits_to_byte(bs+32,32); - PrintAndLog(" %d | %d | %llu | %08X%08X | %08X%08X ", + PrintAndLog(" %d | %d | %d | %llu | %08X%08X | %08X%08X ", ftmlen, + oem, fc, cardnum, wiegand[0], @@ -351,7 +353,7 @@ int CmdHIDWiegand(const char *Cmd) { blocks[1] ); } - PrintAndLog("----+-----+-------+-----------+--------------------"); + PrintAndLog("----+-----+-----+-------+-----------+--------------------"); return 0; }