mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2024-11-11 18:33:18 +08:00
changed 'emv *' - to try 14b if 14a fails. <experimental>
This commit is contained in:
parent
96ae77caf8
commit
94fc054277
1 changed files with 4 additions and 1 deletions
|
@ -18,6 +18,7 @@
|
||||||
#include "cmdsmartcard.h" // ExchangeAPDUSC
|
#include "cmdsmartcard.h" // ExchangeAPDUSC
|
||||||
#include "ui.h"
|
#include "ui.h"
|
||||||
#include "cmdhf14a.h"
|
#include "cmdhf14a.h"
|
||||||
|
#include "cmdhf14b.h"
|
||||||
#include "dol.h"
|
#include "dol.h"
|
||||||
#include "emv_tags.h"
|
#include "emv_tags.h"
|
||||||
#include "emvjson.h"
|
#include "emvjson.h"
|
||||||
|
@ -301,6 +302,8 @@ static int EMVExchangeEx(EMVCommandChannel channel, bool ActivateField, bool Lea
|
||||||
case ECC_CONTACTLESS:
|
case ECC_CONTACTLESS:
|
||||||
res = ExchangeAPDU14a(data, datalen, ActivateField, LeaveFieldON, Result, (int)MaxResultLen, (int *)ResultLen);
|
res = ExchangeAPDU14a(data, datalen, ActivateField, LeaveFieldON, Result, (int)MaxResultLen, (int *)ResultLen);
|
||||||
if (res) {
|
if (res) {
|
||||||
|
res = exchange_14b_apdu(data, datalen, ActivateField, LeaveFieldON, Result, (int)MaxResultLen, (int *)ResultLen, 4000);
|
||||||
|
if (res)
|
||||||
return res;
|
return res;
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
|
Loading…
Reference in a new issue