mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2025-08-21 13:53:55 -07:00
chg: 'hf iclass' - work in progress. running default_iclass_keys.dic against reader (pm3 as simulation)
This commit is contained in:
parent
036d050384
commit
fe9416db23
3 changed files with 171 additions and 95 deletions
|
@ -2095,10 +2095,9 @@ void iClass_Authentication(uint8_t *mac) {
|
|||
cmd_send(CMD_ACK,isOK,0,0,0,0);
|
||||
}
|
||||
|
||||
typedef struct iclass_precalc {
|
||||
//uint8_t key[8];
|
||||
typedef struct iclass_premac {
|
||||
uint8_t mac[4];
|
||||
} iclass_precalc_t;
|
||||
} iclass_premac_t;
|
||||
|
||||
/* this function works on the following assumptions.
|
||||
* - one select first, to get CSN / CC (e-purse)
|
||||
|
@ -2122,7 +2121,7 @@ void iClass_Authentication_fast(uint64_t arg0, uint64_t arg1, uint8_t *datain) {
|
|||
// select card / e-purse
|
||||
uint8_t card_data[6 * 8] = {0};
|
||||
|
||||
iclass_precalc_t *keys = (iclass_precalc_t *)datain;
|
||||
iclass_premac_t *keys = (iclass_premac_t *)datain;
|
||||
|
||||
LED_A_ON();
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue