mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2024-12-31 04:39:49 +08:00
select card before trying to send apdu, makes the pm3 not get stuck
This commit is contained in:
parent
0a4c9f83ac
commit
e1bcbd8159
1 changed files with 1 additions and 1 deletions
|
@ -53,7 +53,7 @@ static bool executeCrypto(uint8_t ins, uint8_t *src, uint8_t *dest) {
|
||||||
|
|
||||||
int resp_len = 0;
|
int resp_len = 0;
|
||||||
uint8_t dec[11] = {0};
|
uint8_t dec[11] = {0};
|
||||||
ExchangeAPDUSC(false, cmd, sizeof(cmd), false, true, dec, sizeof(dec), &resp_len);
|
ExchangeAPDUSC(false, cmd, sizeof(cmd), true, true, dec, sizeof(dec), &resp_len);
|
||||||
if (resp_len == 10) {
|
if (resp_len == 10) {
|
||||||
memcpy(dest, dec, 8);
|
memcpy(dest, dec, 8);
|
||||||
return true;
|
return true;
|
||||||
|
|
Loading…
Reference in a new issue