hf iclass replay

This commit is contained in:
iceman1001 2020-08-12 13:00:30 +02:00
commit f13fbe32e8
3 changed files with 12 additions and 6 deletions

View file

@ -1469,12 +1469,13 @@ void ReaderIClass(uint8_t flags) {
}
// turn off afterwards
void ReaderIClass_Replay(uint8_t reader, uint8_t *mac) {
void ReaderIClass_Replay(uint8_t *rnr, uint8_t *mac) {
BigBuf_free();
uint8_t check[] = { ICLASS_CMD_CHECK, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 };
// copy mac
memcpy(check + 1, rnr, 4);
memcpy(check + 5, mac, 4);
uint8_t *card_data = BigBuf_malloc(ICLASS_16KS_SIZE);