From 83dad64b9120695adeaaeb3e8ccffa0285740af1 Mon Sep 17 00:00:00 2001 From: iceman1001 Date: Thu, 28 Jul 2016 21:16:02 +0200 Subject: [PATCH 1/1] ADD: some new usb commmands from EMV, and for LEGIC. --- client/lualibs/commands.lua | 13 +++++++++++++ include/usb_cmd.h | 13 +++++++++++++ 2 files changed, 26 insertions(+) diff --git a/client/lualibs/commands.lua b/client/lualibs/commands.lua index afdba7e7..b953562e 100644 --- a/client/lualibs/commands.lua +++ b/client/lualibs/commands.lua @@ -95,6 +95,7 @@ local _commands = { CMD_SNOOP_ISO_14443a = 0x0383, CMD_SIMULATE_TAG_ISO_14443a = 0x0384, CMD_READER_ISO_14443a = 0x0385, + CMD_RAW_WRITER_LEGIC_RF = 0x0386, CMD_SIMULATE_TAG_LEGIC_RF = 0x0387, CMD_READER_LEGIC_RF = 0x0388, CMD_WRITER_LEGIC_RF = 0x0389, @@ -169,6 +170,18 @@ local _commands = { CMD_MIFARE_DESFIRE = 0x072e, CMD_HF_SNIFFER = 0x0800, + + --// For EMV Commands + CMD_EMV_READ_RECORD = 0x0700, + CMD_EMV_TRANSACTION = 0x0701, + CMD_EMV_CLONE = 0x0702, + CMD_EMV_SIM = 0x0703, + CMD_EMV_TEST = 0x0704, + CMD_EMV_FUZZ_RATS = 0x0705, + CMD_EMV_GET_RANDOM_NUM = 0x0706, + CMD_EMV_LOAD_VALUE = 0x0707, + CMD_EMV_DUMP_CARD = 0x0708, + CMD_UNKNOWN = 0xFFFF, } diff --git a/include/usb_cmd.h b/include/usb_cmd.h index ae9d15c2..e4ec0493 100644 --- a/include/usb_cmd.h +++ b/include/usb_cmd.h @@ -138,6 +138,7 @@ typedef struct{ #define CMD_SNOOP_ISO_14443a 0x0383 #define CMD_SIMULATE_TAG_ISO_14443a 0x0384 #define CMD_READER_ISO_14443a 0x0385 +#define CMD_RAW_WRITER_LEGIC_RF 0x0386 #define CMD_SIMULATE_TAG_LEGIC_RF 0x0387 #define CMD_READER_LEGIC_RF 0x0388 #define CMD_WRITER_LEGIC_RF 0x0389 @@ -213,6 +214,18 @@ typedef struct{ #define CMD_HF_SNIFFER 0x0800 + +// For EMV Commands +#define CMD_EMV_READ_RECORD 0x0700 +#define CMD_EMV_TRANSACTION 0x0701 +#define CMD_EMV_CLONE 0x0702 +#define CMD_EMV_SIM 0x0703 +#define CMD_EMV_TEST 0x0704 +#define CMD_EMV_FUZZ_RATS 0x0705 +#define CMD_EMV_GET_RANDOM_NUM 0x0706 +#define CMD_EMV_LOAD_VALUE 0x0707 +#define CMD_EMV_DUMP_CARD 0x0708 + #define CMD_UNKNOWN 0xFFFF -- 2.39.5