mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2025-03-20 12:07:05 +08:00
small fix and block scan command
This commit is contained in:
parent
34b53a5b48
commit
17d0194aea
1 changed files with 11 additions and 5 deletions
|
@ -707,16 +707,16 @@ int CmdEMVExec(const char *cmd) {
|
|||
bool forceSearch = arg_get_lit(5);
|
||||
|
||||
enum TransactionType TrType = TT_MSD;
|
||||
if (arg_get_lit(6))
|
||||
TrType = TT_QVSDCMCHIP;
|
||||
if (arg_get_lit(7))
|
||||
TrType = TT_CDA;
|
||||
TrType = TT_QVSDCMCHIP;
|
||||
if (arg_get_lit(8))
|
||||
TrType = TT_CDA;
|
||||
if (arg_get_lit(9))
|
||||
TrType = TT_VSDC;
|
||||
|
||||
bool GenACGPO = arg_get_lit(9);
|
||||
bool GenACGPO = arg_get_lit(10);
|
||||
EMVCommandChannel channel = ECC_CONTACTLESS;
|
||||
if (arg_get_lit(10))
|
||||
if (arg_get_lit(11))
|
||||
channel = ECC_CONTACT;
|
||||
CLIParserFree();
|
||||
|
||||
|
@ -1167,6 +1167,12 @@ int CmdEMVScan(const char *cmd) {
|
|||
|
||||
SetAPDULogging(showAPDU);
|
||||
|
||||
// TODO
|
||||
if (channel == ECC_CONTACT) {
|
||||
PrintAndLogEx(ERR, "Do not use contact interface. Exit.");
|
||||
return 1;
|
||||
}
|
||||
|
||||
// current path + file name
|
||||
if (!strstr(crelfname, ".json"))
|
||||
strcat(crelfname, ".json");
|
||||
|
|
Loading…
Add table
Reference in a new issue