mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2025-03-27 23:47:48 +08:00
BUG: forgot to remove
This commit is contained in:
parent
d32691f1da
commit
d24026ade8
1 changed files with 3 additions and 5 deletions
|
@ -2797,7 +2797,7 @@ void Mifare1ksim(uint8_t flags, uint8_t exitAfterNReads, uint8_t arg2, uint8_t *
|
||||||
//test if auth OK
|
//test if auth OK
|
||||||
if (cardRr != prng_successor(nonce, 64)){
|
if (cardRr != prng_successor(nonce, 64)){
|
||||||
|
|
||||||
if (MF_DBGLEVEL >= 3)
|
if (MF_DBGLEVEL >= 3) {
|
||||||
Dbprintf("AUTH FAILED for sector %d with key %c. [nr=%08x cardRr=%08x] [nt=%08x succ=%08x]"
|
Dbprintf("AUTH FAILED for sector %d with key %c. [nr=%08x cardRr=%08x] [nt=%08x succ=%08x]"
|
||||||
, cardAUTHSC
|
, cardAUTHSC
|
||||||
, (cardAUTHKEY == 0) ? 'A' : 'B'
|
, (cardAUTHKEY == 0) ? 'A' : 'B'
|
||||||
|
@ -2805,8 +2805,8 @@ void Mifare1ksim(uint8_t flags, uint8_t exitAfterNReads, uint8_t arg2, uint8_t *
|
||||||
, cardRr
|
, cardRr
|
||||||
, nonce // nt
|
, nonce // nt
|
||||||
, prng_successor(nonce, 64)
|
, prng_successor(nonce, 64)
|
||||||
|
|
||||||
);
|
);
|
||||||
|
}
|
||||||
// Shouldn't we respond anything here?
|
// Shouldn't we respond anything here?
|
||||||
// Right now, we don't nack or anything, which causes the
|
// Right now, we don't nack or anything, which causes the
|
||||||
// reader to do a WUPA after a while. /Martin
|
// reader to do a WUPA after a while. /Martin
|
||||||
|
@ -2857,8 +2857,6 @@ void Mifare1ksim(uint8_t flags, uint8_t exitAfterNReads, uint8_t arg2, uint8_t *
|
||||||
// Update crypto state init (UID ^ NONCE)
|
// Update crypto state init (UID ^ NONCE)
|
||||||
crypto1_word(pcs, cuid ^ nonce, 0);
|
crypto1_word(pcs, cuid ^ nonce, 0);
|
||||||
num_to_bytes(nonce, 4, rAUTH_AT);
|
num_to_bytes(nonce, 4, rAUTH_AT);
|
||||||
}
|
|
||||||
|
|
||||||
} else {
|
} else {
|
||||||
// nested authentication
|
// nested authentication
|
||||||
ans = nonce ^ crypto1_word(pcs, cuid ^ nonce, 0);
|
ans = nonce ^ crypto1_word(pcs, cuid ^ nonce, 0);
|
||||||
|
|
Loading…
Add table
Reference in a new issue