mirror of
https://github.com/Proxmark/proxmark3.git
synced 2025-08-22 14:13:42 -07:00
Merge branch 'master' into argtable
This commit is contained in:
commit
bd3008d113
3 changed files with 9 additions and 4 deletions
|
@ -434,6 +434,9 @@ void FpgaDownloadAndGo(int bitstream_version)
|
||||||
|
|
||||||
inflateEnd(&compressed_fpga_stream);
|
inflateEnd(&compressed_fpga_stream);
|
||||||
|
|
||||||
|
// turn off antenna
|
||||||
|
FpgaWriteConfWord(FPGA_MAJOR_MODE_OFF);
|
||||||
|
|
||||||
// free eventually allocated BigBuf memory
|
// free eventually allocated BigBuf memory
|
||||||
BigBuf_free(); BigBuf_Clear_ext(false);
|
BigBuf_free(); BigBuf_Clear_ext(false);
|
||||||
}
|
}
|
||||||
|
|
|
@ -720,6 +720,7 @@ int ExchangeAPDU14a(uint8_t *datain, int datainlen, bool activateField, bool lea
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// ISO14443-4. 7. Half-duplex block transmission protocol
|
||||||
int CmdHF14AAPDU(const char *cmd) {
|
int CmdHF14AAPDU(const char *cmd) {
|
||||||
uint8_t data[USB_CMD_DATA_SIZE];
|
uint8_t data[USB_CMD_DATA_SIZE];
|
||||||
int datalen = 0;
|
int datalen = 0;
|
||||||
|
@ -727,7 +728,7 @@ int CmdHF14AAPDU(const char *cmd) {
|
||||||
bool leaveSignalON = false;
|
bool leaveSignalON = false;
|
||||||
bool decodeTLV = false;
|
bool decodeTLV = false;
|
||||||
|
|
||||||
CLIParserInit("hf 14a apdu", "Send ISO 14443-4 APDU to tag", "Sample:\n\thf 14a apdu -st 00A404000E325041592E5359532E444446303100\n");
|
CLIParserInit("hf 14a apdu", "Sends an ISO 7816-4 APDU via ISO 14443-4 block transmission protocol (T=CL)", "Sample:\n\thf 14a apdu -st 00A404000E325041592E5359532E444446303100\n");
|
||||||
|
|
||||||
void* argtable[] = {
|
void* argtable[] = {
|
||||||
arg_param_begin,
|
arg_param_begin,
|
||||||
|
@ -739,6 +740,7 @@ int CmdHF14AAPDU(const char *cmd) {
|
||||||
};
|
};
|
||||||
if (CLIParserParseString(cmd, argtable, sizeof(argtable) / sizeof(argtable[0]), false)){
|
if (CLIParserParseString(cmd, argtable, sizeof(argtable) / sizeof(argtable[0]), false)){
|
||||||
CLIParserFree();
|
CLIParserFree();
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -945,7 +947,7 @@ static command_t CommandTable[] =
|
||||||
{"cuids", CmdHF14ACUIDs, 0, "<n> Collect n>0 ISO14443 Type A UIDs in one go"},
|
{"cuids", CmdHF14ACUIDs, 0, "<n> Collect n>0 ISO14443 Type A UIDs in one go"},
|
||||||
{"sim", CmdHF14ASim, 0, "<UID> -- Simulate ISO 14443a tag"},
|
{"sim", CmdHF14ASim, 0, "<UID> -- Simulate ISO 14443a tag"},
|
||||||
{"snoop", CmdHF14ASnoop, 0, "Eavesdrop ISO 14443 Type A"},
|
{"snoop", CmdHF14ASnoop, 0, "Eavesdrop ISO 14443 Type A"},
|
||||||
{"apdu", CmdHF14AAPDU, 0, "Send ISO 14443-4 APDU to tag"},
|
{"apdu", CmdHF14AAPDU, 0, "Send an ISO 7816-4 APDU via ISO 14443-4 block transmission protocol"},
|
||||||
{"raw", CmdHF14ACmdRaw, 0, "Send raw hex data to tag"},
|
{"raw", CmdHF14ACmdRaw, 0, "Send raw hex data to tag"},
|
||||||
{NULL, NULL, 0, NULL}
|
{NULL, NULL, 0, NULL}
|
||||||
};
|
};
|
||||||
|
|
|
@ -77,8 +77,8 @@ static const char cfgDescriptor[] = {
|
||||||
0x02, // CbNumInterfaces
|
0x02, // CbNumInterfaces
|
||||||
0x01, // CbConfigurationValue
|
0x01, // CbConfigurationValue
|
||||||
0x00, // CiConfiguration
|
0x00, // CiConfiguration
|
||||||
0xC0, // CbmAttributes 0xA0
|
0x80, // CbmAttributes (Bus Powered)
|
||||||
0xFA, // CMaxPower
|
0x4B, // CMaxPower (150mA max current drawn from bus)
|
||||||
|
|
||||||
/* Interface 0 Descriptor: Communication Class Interface */
|
/* Interface 0 Descriptor: Communication Class Interface */
|
||||||
0x09, // bLength
|
0x09, // bLength
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue