mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2025-08-20 05:13:46 -07:00
zero out uid
This commit is contained in:
parent
2eac5d8dd4
commit
7884c4bcb4
1 changed files with 6 additions and 1 deletions
|
@ -2376,6 +2376,9 @@ void MifareHasStaticNonce(void) {
|
||||||
int retval = PM3_SUCCESS;
|
int retval = PM3_SUCCESS;
|
||||||
uint32_t nt = 0;
|
uint32_t nt = 0;
|
||||||
uint8_t *uid = BigBuf_malloc(10);
|
uint8_t *uid = BigBuf_malloc(10);
|
||||||
|
|
||||||
|
memset(uid, 0x00, 10);
|
||||||
|
|
||||||
uint8_t data[1] = { NONCE_FAIL };
|
uint8_t data[1] = { NONCE_FAIL };
|
||||||
struct Crypto1State mpcs = {0, 0};
|
struct Crypto1State mpcs = {0, 0};
|
||||||
struct Crypto1State *pcs;
|
struct Crypto1State *pcs;
|
||||||
|
@ -2392,7 +2395,7 @@ void MifareHasStaticNonce(void) {
|
||||||
goto OUT;
|
goto OUT;
|
||||||
}
|
}
|
||||||
|
|
||||||
uint8_t rec[1] = {0x00};
|
uint8_t rec[4] = {0x00};
|
||||||
uint8_t recpar[1] = {0x00};
|
uint8_t recpar[1] = {0x00};
|
||||||
// Transmit MIFARE_CLASSIC_AUTH 0x60, block 0
|
// Transmit MIFARE_CLASSIC_AUTH 0x60, block 0
|
||||||
int len = mifare_sendcmd_short(pcs, false, MIFARE_AUTH_KEYA, 0, rec, recpar, NULL);
|
int len = mifare_sendcmd_short(pcs, false, MIFARE_AUTH_KEYA, 0, rec, recpar, NULL);
|
||||||
|
@ -2412,6 +2415,8 @@ void MifareHasStaticNonce(void) {
|
||||||
FpgaWriteConfWord(FPGA_MAJOR_MODE_OFF);
|
FpgaWriteConfWord(FPGA_MAJOR_MODE_OFF);
|
||||||
LEDsoff();
|
LEDsoff();
|
||||||
CHK_TIMEOUT();
|
CHK_TIMEOUT();
|
||||||
|
|
||||||
|
memset(rec, 0x00, sizeof(rec));
|
||||||
}
|
}
|
||||||
|
|
||||||
if (counter) {
|
if (counter) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue