Merge pull request #321 from Proxmark/iceman1001-patch-1

BUG: 'hf mf mifare'
This commit is contained in:
marshmellow42 2017-06-16 14:46:50 -04:00 committed by GitHub
commit 0c29544f64

View file

@ -224,7 +224,7 @@ int mfDarkside(uint64_t *key)
int mfCheckKeys (uint8_t blockNo, uint8_t keyType, bool clear_trace, uint8_t keycnt, uint8_t * keyBlock, uint64_t * key){
*key = 0;
*key = -1;
UsbCommand c = {CMD_MIFARE_CHKKEYS, {((blockNo & 0xff) | ((keyType&0xff)<<8)), clear_trace, keycnt}};
memcpy(c.d.asBytes, keyBlock, 6 * keycnt);