X-Git-Url: https://git.zerfleddert.de/cgi-bin/gitweb.cgi/proxmark3-svn/blobdiff_plain/3e750be37cd8e3231ae02260be6899391d206cb4..d7e24e7c5f3481a45d79de49ad3de2ef0d81437e:/client/cmdhflegic.c?ds=sidebyside diff --git a/client/cmdhflegic.c b/client/cmdhflegic.c index 2200a15b..5bc24e9b 100644 --- a/client/cmdhflegic.c +++ b/client/cmdhflegic.c @@ -410,18 +410,8 @@ int CmdLegicRFRead(const char *Cmd) { IV |= 0x01; // IV must be odd PrintAndLog("LSB of IV must be SET"); } - PrintAndLog("Current IV: 0x%02x", IV); + PrintAndLog("Using IV: 0x%02x", IV); - // get some prng bytes from - uint8_t temp[32]; - legic_prng_init(IV); - for ( uint8_t j = 0; j < sizeof(temp); ++j) { - temp[j] = legic_prng_get_bit(1); - legic_prng_forward(1); - //PrintAndLog("PRNG: %s", sprint_hex(temp, sizeof(temp))); - } - PrintAndLog("PRNG: %s", sprint_bin(temp, sizeof(temp))); - UsbCommand c = {CMD_READER_LEGIC_RF, {offset, len, IV}}; clearCommandBuffer(); SendCommand(&c); @@ -843,11 +833,11 @@ int HFLegicInfo(const char *Cmd, bool verbose) { } } } else { - PrintAndLog("legic card select failed"); + if ( verbose ) PrintAndLog("legic card select failed"); return 1; } } else { - PrintAndLog("command execution time out"); + if ( verbose ) PrintAndLog("command execution time out"); return 1; } return 0;