mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2025-08-22 14:23:50 -07:00
Cherry pick POC of emv simulation
This commit is contained in:
parent
325376d7ee
commit
4a23fb05f0
9 changed files with 1297 additions and 5 deletions
|
@ -54,6 +54,7 @@
|
|||
#include "mifarecmd.h"
|
||||
#include "mifaredesfire.h"
|
||||
#include "mifaresim.h"
|
||||
#include "emvsim.h"
|
||||
#include "pcf7931.h"
|
||||
#include "Standalone/standalone.h"
|
||||
#include "util.h"
|
||||
|
@ -1628,6 +1629,19 @@ static void PacketReceived(PacketCommandNG *packet) {
|
|||
ReaderIso14443a(packet);
|
||||
break;
|
||||
}
|
||||
case CMD_HF_ISO14443A_EMV_SIMULATE: {
|
||||
struct p {
|
||||
uint16_t flags;
|
||||
uint8_t exitAfter;
|
||||
uint8_t uid[7];
|
||||
uint16_t atqa;
|
||||
uint8_t sak;
|
||||
} PACKED;
|
||||
struct p *payload = (struct p *) packet->data.asBytes;
|
||||
|
||||
EMVsim(payload->flags, payload->exitAfter, payload->uid, payload->atqa, payload->sak);
|
||||
break;
|
||||
}
|
||||
case CMD_HF_ISO14443A_SIMULATE: {
|
||||
struct p {
|
||||
uint8_t tagtype;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue