mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2025-08-21 05:43:48 -07:00
use Amiibo PACK if simulator PWD matches generated Amiibo PWD
This commit is contained in:
parent
37d059d56f
commit
002823dd9b
1 changed files with 11 additions and 0 deletions
|
@ -1229,6 +1229,17 @@ bool SimulateIso14443aInit(uint8_t tagType, uint16_t flags, uint8_t *data, tag_r
|
||||||
|
|
||||||
AddCrc14A(rPPS, sizeof(rPPS) - 2);
|
AddCrc14A(rPPS, sizeof(rPPS) - 2);
|
||||||
|
|
||||||
|
if (tagType == 7) {
|
||||||
|
uint8_t pwd[4];
|
||||||
|
uint8_t gen_pwd[4];
|
||||||
|
uint16_t start = (*pages - 1) * 4 + MFU_DUMP_PREFIX_LENGTH;
|
||||||
|
emlGetMemBt(pwd, start, sizeof(pwd));
|
||||||
|
Uint4byteToMemBe(gen_pwd, ul_ev1_pwdgenB(data));
|
||||||
|
if (memcmp(pwd, gen_pwd, sizeof(pwd)) == 0) {
|
||||||
|
rPACK[0] = 0x80;
|
||||||
|
rPACK[1] = 0x80;
|
||||||
|
}
|
||||||
|
}
|
||||||
AddCrc14A(rPACK, sizeof(rPACK) - 2);
|
AddCrc14A(rPACK, sizeof(rPACK) - 2);
|
||||||
|
|
||||||
static tag_response_info_t responses_init[] = {
|
static tag_response_info_t responses_init[] = {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue