mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2025-08-20 05:13:46 -07:00
VSDC path sketch
This commit is contained in:
parent
56c0dad966
commit
0ac728f0d4
2 changed files with 10 additions and 3 deletions
|
@ -731,9 +731,9 @@ int CmdEMVExec(const char *cmd) {
|
||||||
|
|
||||||
enum TransactionType TrType = TT_MSD;
|
enum TransactionType TrType = TT_MSD;
|
||||||
if (arg_get_lit(7))
|
if (arg_get_lit(7))
|
||||||
TrType = TT_QVSDCMCHIP;
|
TrType = TT_QVSDCMCHIP;
|
||||||
if (arg_get_lit(8))
|
if (arg_get_lit(8))
|
||||||
TrType = TT_CDA;
|
TrType = TT_CDA;
|
||||||
if (arg_get_lit(9))
|
if (arg_get_lit(9))
|
||||||
TrType = TT_VSDC;
|
TrType = TT_VSDC;
|
||||||
|
|
||||||
|
@ -1130,6 +1130,13 @@ int CmdEMVExec(const char *cmd) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// VSDC
|
||||||
|
if (GetCardPSVendor(AID, AIDlen) == CV_VISA && (TrType == TT_VSDC)){
|
||||||
|
PrintAndLogEx(NORMAL, "\n--> VSDC transaction.");
|
||||||
|
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
DropField();
|
DropField();
|
||||||
|
|
||||||
// Destroy TLV's
|
// Destroy TLV's
|
||||||
|
|
|
@ -785,7 +785,7 @@ int trDDA(EMVCommandChannel channel, bool decodeTLV, struct tlvdb *tlv) {
|
||||||
struct tlvdb *dac_db = emv_pki_recover_dac(issuer_pk, tlv, sda_tlv);
|
struct tlvdb *dac_db = emv_pki_recover_dac(issuer_pk, tlv, sda_tlv);
|
||||||
if (dac_db) {
|
if (dac_db) {
|
||||||
const struct tlv *dac_tlv = tlvdb_get(dac_db, 0x9f45, NULL);
|
const struct tlv *dac_tlv = tlvdb_get(dac_db, 0x9f45, NULL);
|
||||||
PrintAndLogEx(NORMAL, "SDA verified OK. (Data Authentication Code: %02hhx:%02hhx)\n", dac_tlv->value[0], dac_tlv->value[1]);
|
PrintAndLogEx(NORMAL, "SDAD verified OK. (Data Authentication Code: %02hhx:%02hhx)\n", dac_tlv->value[0], dac_tlv->value[1]);
|
||||||
tlvdb_add(tlv, dac_db);
|
tlvdb_add(tlv, dac_db);
|
||||||
} else {
|
} else {
|
||||||
PrintAndLogEx(WARNING, "Error: SSAD verify error");
|
PrintAndLogEx(WARNING, "Error: SSAD verify error");
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue