mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2025-03-20 12:07:05 +08:00
fix: 'hf mf sim' - Mifare simulation now works against Android etc. Thanks to @eloff
This commit is contained in:
parent
215a4fe77e
commit
459835b5ca
1 changed files with 9 additions and 0 deletions
|
@ -3329,9 +3329,18 @@ void Mifare1ksim(uint8_t flags, uint8_t exitAfterNReads, uint8_t arg2, uint8_t *
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
/*
|
||||||
ans = prng_successor(nonce, 96) ^ crypto1_word(pcs, 0, 0);
|
ans = prng_successor(nonce, 96) ^ crypto1_word(pcs, 0, 0);
|
||||||
num_to_bytes(ans, 4, rAUTH_AT);
|
num_to_bytes(ans, 4, rAUTH_AT);
|
||||||
EmSendCmd(rAUTH_AT, sizeof(rAUTH_AT));
|
EmSendCmd(rAUTH_AT, sizeof(rAUTH_AT));
|
||||||
|
*/
|
||||||
|
|
||||||
|
ans = prng_successor(nonce, 96);
|
||||||
|
num_to_bytes(ans, 4, response);
|
||||||
|
mf_crypto1_encrypt(pcs, response, 4, response_par);
|
||||||
|
EmSendCmdPar(response, 4, response_par);
|
||||||
|
|
||||||
LED_C_ON();
|
LED_C_ON();
|
||||||
|
|
||||||
if (MF_DBGLEVEL >= 3) {
|
if (MF_DBGLEVEL >= 3) {
|
||||||
|
|
Loading…
Add table
Reference in a new issue