mirror of
https://github.com/Proxmark/proxmark3.git
synced 2025-08-21 13:53:26 -07:00
Iceman's updates to MFU info and dump
This commit is contained in:
parent
f168b2633b
commit
92690507ab
3 changed files with 143 additions and 158 deletions
|
@ -326,13 +326,13 @@ void MifareUReadCard(uint8_t arg0, int arg1, uint8_t *datain)
|
|||
int Pages = arg1;
|
||||
int countpages = 0;
|
||||
byte_t dataout[176] = {0x00};;
|
||||
uint32_t cuid = 0x00;
|
||||
|
||||
LED_A_ON(); LED_B_OFF(); LED_C_OFF();
|
||||
LEDsoff();
|
||||
LED_A_ON();
|
||||
clear_trace();
|
||||
iso14443a_setup(FPGA_HF_ISO14443A_READER_LISTEN);
|
||||
|
||||
int len = iso14443a_select_card(NULL, NULL, &cuid);
|
||||
int len = iso14443a_select_card(NULL, NULL, NULL);
|
||||
if (!len) {
|
||||
if (MF_DBGLEVEL >= MF_DBG_ERROR) Dbprintf("Can't select card (RC:%d)",len);
|
||||
OnError(1);
|
||||
|
@ -359,13 +359,8 @@ void MifareUReadCard(uint8_t arg0, int arg1, uint8_t *datain)
|
|||
return;
|
||||
}
|
||||
|
||||
if (MF_DBGLEVEL >= MF_DBG_ALL) Dbprintf("Pages read %d", countpages);
|
||||
if (MF_DBGLEVEL >= MF_DBG_EXTENDED) Dbprintf("Pages read %d", countpages);
|
||||
|
||||
// len = 16*4; //64 bytes
|
||||
|
||||
// Read a UL-C
|
||||
// if (Pages == 44 && countpages > 16)
|
||||
// len = 176;
|
||||
len = Pages * 4;
|
||||
|
||||
cmd_send(CMD_ACK, 1, 0, 0, dataout, len);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue