mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2025-08-20 05:13:46 -07:00
tag unused Cmd [-Wunused-parameter]
This commit is contained in:
parent
c10e47f8a9
commit
cc0454d5d2
48 changed files with 132 additions and 27 deletions
|
@ -426,6 +426,7 @@ int CmdAnalyseCHKSUM(const char *Cmd) {
|
||||||
}
|
}
|
||||||
|
|
||||||
int CmdAnalyseDates(const char *Cmd) {
|
int CmdAnalyseDates(const char *Cmd) {
|
||||||
|
(void)Cmd; // Cmd is not used so far
|
||||||
// look for datestamps in a given array of bytes
|
// look for datestamps in a given array of bytes
|
||||||
PrintAndLogEx(NORMAL, "To be implemented. Feel free to contribute!");
|
PrintAndLogEx(NORMAL, "To be implemented. Feel free to contribute!");
|
||||||
return 0;
|
return 0;
|
||||||
|
@ -922,6 +923,7 @@ int CmdAnalyse(const char *Cmd) {
|
||||||
}
|
}
|
||||||
|
|
||||||
int CmdHelp(const char *Cmd) {
|
int CmdHelp(const char *Cmd) {
|
||||||
|
(void)Cmd; // Cmd is not used so far
|
||||||
CmdsHelp(CommandTable);
|
CmdsHelp(CommandTable);
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
|
@ -843,6 +843,7 @@ int CmdAutoCorr(const char *Cmd) {
|
||||||
}
|
}
|
||||||
|
|
||||||
int CmdBitsamples(const char *Cmd) {
|
int CmdBitsamples(const char *Cmd) {
|
||||||
|
(void)Cmd; // Cmd is not used so far
|
||||||
int cnt = 0;
|
int cnt = 0;
|
||||||
uint8_t got[12288];
|
uint8_t got[12288];
|
||||||
|
|
||||||
|
@ -876,6 +877,7 @@ int CmdBuffClear(const char *Cmd) {
|
||||||
}
|
}
|
||||||
|
|
||||||
int CmdDec(const char *Cmd) {
|
int CmdDec(const char *Cmd) {
|
||||||
|
(void)Cmd; // Cmd is not used so far
|
||||||
for (int i = 0; i < (GraphTraceLen / 2); ++i)
|
for (int i = 0; i < (GraphTraceLen / 2); ++i)
|
||||||
GraphBuffer[i] = GraphBuffer[i * 2];
|
GraphBuffer[i] = GraphBuffer[i * 2];
|
||||||
GraphTraceLen /= 2;
|
GraphTraceLen /= 2;
|
||||||
|
@ -1140,6 +1142,7 @@ int PSKDemod(const char *Cmd, bool verbose) {
|
||||||
}
|
}
|
||||||
|
|
||||||
int CmdIdteckDemod(const char *Cmd) {
|
int CmdIdteckDemod(const char *Cmd) {
|
||||||
|
(void)Cmd; // Cmd is not used so far
|
||||||
|
|
||||||
if (!PSKDemod("", false)) {
|
if (!PSKDemod("", false)) {
|
||||||
PrintAndLogEx(DEBUG, "DEBUG: Error - Idteck PSKDemod failed");
|
PrintAndLogEx(DEBUG, "DEBUG: Error - Idteck PSKDemod failed");
|
||||||
|
@ -1400,12 +1403,14 @@ int CmdHexsamples(const char *Cmd) {
|
||||||
}
|
}
|
||||||
|
|
||||||
int CmdHide(const char *Cmd) {
|
int CmdHide(const char *Cmd) {
|
||||||
|
(void)Cmd; // Cmd is not used so far
|
||||||
HideGraphWindow();
|
HideGraphWindow();
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
//zero mean GraphBuffer
|
//zero mean GraphBuffer
|
||||||
int CmdHpf(const char *Cmd) {
|
int CmdHpf(const char *Cmd) {
|
||||||
|
(void)Cmd; // Cmd is not used so far
|
||||||
uint8_t bits[GraphTraceLen];
|
uint8_t bits[GraphTraceLen];
|
||||||
size_t size = getFromGraphBuf(bits);
|
size_t size = getFromGraphBuf(bits);
|
||||||
removeSignalOffset(bits, size);
|
removeSignalOffset(bits, size);
|
||||||
|
@ -1499,6 +1504,7 @@ int CmdSamples(const char *Cmd) {
|
||||||
}
|
}
|
||||||
|
|
||||||
int CmdTuneSamples(const char *Cmd) {
|
int CmdTuneSamples(const char *Cmd) {
|
||||||
|
(void)Cmd; // Cmd is not used so far
|
||||||
#define NON_VOLTAGE 1000
|
#define NON_VOLTAGE 1000
|
||||||
#define LF_UNUSABLE_V 2000
|
#define LF_UNUSABLE_V 2000
|
||||||
#define LF_MARGINAL_V 10000
|
#define LF_MARGINAL_V 10000
|
||||||
|
@ -1684,6 +1690,7 @@ int CmdMtrim(const char *Cmd) {
|
||||||
}
|
}
|
||||||
|
|
||||||
int CmdNorm(const char *Cmd) {
|
int CmdNorm(const char *Cmd) {
|
||||||
|
(void)Cmd; // Cmd is not used so far
|
||||||
int i;
|
int i;
|
||||||
int max = INT_MIN, min = INT_MAX;
|
int max = INT_MIN, min = INT_MAX;
|
||||||
|
|
||||||
|
@ -1710,6 +1717,7 @@ int CmdNorm(const char *Cmd) {
|
||||||
}
|
}
|
||||||
|
|
||||||
int CmdPlot(const char *Cmd) {
|
int CmdPlot(const char *Cmd) {
|
||||||
|
(void)Cmd; // Cmd is not used so far
|
||||||
ShowGraphWindow();
|
ShowGraphWindow();
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
@ -1797,6 +1805,7 @@ int CmdDirectionalThreshold(const char *Cmd) {
|
||||||
}
|
}
|
||||||
|
|
||||||
int CmdZerocrossings(const char *Cmd) {
|
int CmdZerocrossings(const char *Cmd) {
|
||||||
|
(void)Cmd; // Cmd is not used so far
|
||||||
// Zero-crossings aren't meaningful unless the signal is zero-mean.
|
// Zero-crossings aren't meaningful unless the signal is zero-mean.
|
||||||
CmdHpf("");
|
CmdHpf("");
|
||||||
|
|
||||||
|
@ -2129,6 +2138,7 @@ int CmdData(const char *Cmd) {
|
||||||
}
|
}
|
||||||
|
|
||||||
int CmdHelp(const char *Cmd) {
|
int CmdHelp(const char *Cmd) {
|
||||||
|
(void)Cmd; // Cmd is not used so far
|
||||||
CmdsHelp(CommandTable);
|
CmdsHelp(CommandTable);
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
|
@ -613,6 +613,7 @@ int CmdFlashMem(const char *Cmd) {
|
||||||
}
|
}
|
||||||
|
|
||||||
int CmdHelp(const char *Cmd) {
|
int CmdHelp(const char *Cmd) {
|
||||||
|
(void)Cmd; // Cmd is not used so far
|
||||||
CmdsHelp(CommandTable);
|
CmdsHelp(CommandTable);
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
|
@ -88,6 +88,7 @@ int CmdHFSearch(const char *Cmd) {
|
||||||
}
|
}
|
||||||
|
|
||||||
int CmdHFTune(const char *Cmd) {
|
int CmdHFTune(const char *Cmd) {
|
||||||
|
(void)Cmd; // Cmd is not used so far
|
||||||
PrintAndLogEx(SUCCESS, "Measuring HF antenna, press button to exit");
|
PrintAndLogEx(SUCCESS, "Measuring HF antenna, press button to exit");
|
||||||
UsbCommand c = {CMD_MEASURE_ANTENNA_TUNING_HF};
|
UsbCommand c = {CMD_MEASURE_ANTENNA_TUNING_HF};
|
||||||
clearCommandBuffer();
|
clearCommandBuffer();
|
||||||
|
@ -137,6 +138,7 @@ int CmdHF(const char *Cmd) {
|
||||||
}
|
}
|
||||||
|
|
||||||
int CmdHelp(const char *Cmd) {
|
int CmdHelp(const char *Cmd) {
|
||||||
|
(void)Cmd; // Cmd is not used so far
|
||||||
CmdsHelp(CommandTable);
|
CmdsHelp(CommandTable);
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
|
@ -221,6 +221,7 @@ int usage_hf_14a_info(void) {
|
||||||
}
|
}
|
||||||
|
|
||||||
int CmdHF14AList(const char *Cmd) {
|
int CmdHF14AList(const char *Cmd) {
|
||||||
|
(void)Cmd; // Cmd is not used so far
|
||||||
//PrintAndLogEx(NORMAL, "Deprecated command, use 'hf list 14a' instead");
|
//PrintAndLogEx(NORMAL, "Deprecated command, use 'hf list 14a' instead");
|
||||||
CmdTraceList("14a");
|
CmdTraceList("14a");
|
||||||
return 0;
|
return 0;
|
||||||
|
|
|
@ -122,6 +122,7 @@ static int switch_off_field_14b(void) {
|
||||||
}
|
}
|
||||||
|
|
||||||
int CmdHF14BList(const char *Cmd) {
|
int CmdHF14BList(const char *Cmd) {
|
||||||
|
(void)Cmd; // Cmd is not used so far
|
||||||
CmdTraceList("14b");
|
CmdTraceList("14b");
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
@ -1072,6 +1073,7 @@ uint32_t srix4kGetMagicbytes(uint64_t uid, uint32_t block6, uint32_t block18, ui
|
||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
int srix4kValid(const char *Cmd) {
|
int srix4kValid(const char *Cmd) {
|
||||||
|
(void)Cmd; // Cmd is not used so far
|
||||||
|
|
||||||
uint64_t uid = 0xD00202501A4532F9;
|
uint64_t uid = 0xD00202501A4532F9;
|
||||||
uint32_t block6 = 0xFFFFFFFF;
|
uint32_t block6 = 0xFFFFFFFF;
|
||||||
|
@ -1150,6 +1152,7 @@ int CmdHF14B(const char *Cmd) {
|
||||||
}
|
}
|
||||||
|
|
||||||
int CmdHelp(const char *Cmd) {
|
int CmdHelp(const char *Cmd) {
|
||||||
|
(void)Cmd; // Cmd is not used so far
|
||||||
CmdsHelp(CommandTable);
|
CmdsHelp(CommandTable);
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
|
@ -601,6 +601,7 @@ int CmdHF15Record(const char *Cmd) {
|
||||||
|
|
||||||
// used with 'hf search'
|
// used with 'hf search'
|
||||||
int HF15Reader(const char *Cmd, bool verbose) {
|
int HF15Reader(const char *Cmd, bool verbose) {
|
||||||
|
(void)Cmd; // Cmd is not used so far
|
||||||
uint8_t uid[8] = {0, 0, 0, 0, 0, 0, 0, 0};
|
uint8_t uid[8] = {0, 0, 0, 0, 0, 0, 0, 0};
|
||||||
if (!getUID(uid)) {
|
if (!getUID(uid)) {
|
||||||
if (verbose) PrintAndLogEx(WARNING, "No tag found.");
|
if (verbose) PrintAndLogEx(WARNING, "No tag found.");
|
||||||
|
@ -901,6 +902,7 @@ int CmdHF15Restore(const char *Cmd) {
|
||||||
}
|
}
|
||||||
|
|
||||||
int CmdHF15List(const char *Cmd) {
|
int CmdHF15List(const char *Cmd) {
|
||||||
|
(void)Cmd; // Cmd is not used so far
|
||||||
//PrintAndLogEx(WARNING, "Deprecated command, use 'hf list 15' instead");
|
//PrintAndLogEx(WARNING, "Deprecated command, use 'hf list 15' instead");
|
||||||
CmdTraceList("15");
|
CmdTraceList("15");
|
||||||
return 0;
|
return 0;
|
||||||
|
@ -1328,6 +1330,7 @@ int CmdHF15(const char *Cmd) {
|
||||||
}
|
}
|
||||||
|
|
||||||
int CmdHF15Help(const char *Cmd) {
|
int CmdHF15Help(const char *Cmd) {
|
||||||
|
(void)Cmd; // Cmd is not used so far
|
||||||
CmdsHelp(CommandTable15);
|
CmdsHelp(CommandTable15);
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
|
@ -171,6 +171,7 @@ static command_t CommandTable[] = {
|
||||||
};
|
};
|
||||||
|
|
||||||
int CmdHelp(const char *Cmd) {
|
int CmdHelp(const char *Cmd) {
|
||||||
|
(void)Cmd; // Cmd is not used so far
|
||||||
CmdsHelp(CommandTable);
|
CmdsHelp(CommandTable);
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
|
@ -65,6 +65,7 @@ int usage_hf_felica_raw(void) {
|
||||||
}
|
}
|
||||||
|
|
||||||
int CmdHFFelicaList(const char *Cmd) {
|
int CmdHFFelicaList(const char *Cmd) {
|
||||||
|
(void)Cmd; // Cmd is not used so far
|
||||||
//PrintAndLogEx(NORMAL, "Deprecated command, use 'hf list felica' instead");
|
//PrintAndLogEx(NORMAL, "Deprecated command, use 'hf list felica' instead");
|
||||||
CmdTraceList("felica");
|
CmdTraceList("felica");
|
||||||
return 0;
|
return 0;
|
||||||
|
@ -606,6 +607,7 @@ int CmdHFFelica(const char *Cmd) {
|
||||||
}
|
}
|
||||||
|
|
||||||
int CmdHelp(const char *Cmd) {
|
int CmdHelp(const char *Cmd) {
|
||||||
|
(void)Cmd; // Cmd is not used so far
|
||||||
CmdsHelp(CommandTable);
|
CmdsHelp(CommandTable);
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
|
@ -919,6 +919,7 @@ int CmdHFFido(const char *Cmd) {
|
||||||
}
|
}
|
||||||
|
|
||||||
int CmdHelp(const char *Cmd) {
|
int CmdHelp(const char *Cmd) {
|
||||||
|
(void)Cmd; // Cmd is not used so far
|
||||||
CmdsHelp(CommandTable);
|
CmdsHelp(CommandTable);
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
|
@ -271,6 +271,7 @@ int xorbits_8(uint8_t val) {
|
||||||
}
|
}
|
||||||
|
|
||||||
int CmdHFiClassList(const char *Cmd) {
|
int CmdHFiClassList(const char *Cmd) {
|
||||||
|
(void)Cmd; // Cmd is not used so far
|
||||||
//PrintAndLogEx(NORMAL, "Deprecated command, use 'hf list iclass' instead");
|
//PrintAndLogEx(NORMAL, "Deprecated command, use 'hf list iclass' instead");
|
||||||
CmdTraceList("iclass");
|
CmdTraceList("iclass");
|
||||||
return 0;
|
return 0;
|
||||||
|
@ -510,6 +511,7 @@ int CmdHFiClassSim(const char *Cmd) {
|
||||||
}
|
}
|
||||||
|
|
||||||
int HFiClassReader(const char *Cmd, bool loop, bool verbose) {
|
int HFiClassReader(const char *Cmd, bool loop, bool verbose) {
|
||||||
|
(void)Cmd; // Cmd is not used so far
|
||||||
bool tagFound = false;
|
bool tagFound = false;
|
||||||
|
|
||||||
uint32_t flags = FLAG_ICLASS_READER_CSN | FLAG_ICLASS_READER_CC | FLAG_ICLASS_READER_AIA |
|
uint32_t flags = FLAG_ICLASS_READER_CSN | FLAG_ICLASS_READER_CC | FLAG_ICLASS_READER_AIA |
|
||||||
|
@ -2516,6 +2518,7 @@ int CmdHFiClass(const char *Cmd) {
|
||||||
}
|
}
|
||||||
|
|
||||||
int CmdHelp(const char *Cmd) {
|
int CmdHelp(const char *Cmd) {
|
||||||
|
(void)Cmd; // Cmd is not used so far
|
||||||
CmdsHelp(CommandTable);
|
CmdsHelp(CommandTable);
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
|
@ -1284,6 +1284,7 @@ int CmdLegicWipe(const char *Cmd) {
|
||||||
}
|
}
|
||||||
|
|
||||||
int CmdLegicList(const char *Cmd) {
|
int CmdLegicList(const char *Cmd) {
|
||||||
|
(void)Cmd; // Cmd is not used so far
|
||||||
CmdTraceList("legic");
|
CmdTraceList("legic");
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
@ -1312,6 +1313,7 @@ int CmdHFLegic(const char *Cmd) {
|
||||||
}
|
}
|
||||||
|
|
||||||
int CmdHelp(const char *Cmd) {
|
int CmdHelp(const char *Cmd) {
|
||||||
|
(void)Cmd; // Cmd is not used so far
|
||||||
CmdsHelp(CommandTable);
|
CmdsHelp(CommandTable);
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
|
@ -3519,6 +3519,7 @@ int CmdHFMFNDEF(const char *Cmd) {
|
||||||
}
|
}
|
||||||
|
|
||||||
int CmdHF14AMfList(const char *Cmd) {
|
int CmdHF14AMfList(const char *Cmd) {
|
||||||
|
(void)Cmd; // Cmd is not used so far
|
||||||
CmdTraceList("mf");
|
CmdTraceList("mf");
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
@ -3575,6 +3576,7 @@ int CmdHFMF(const char *Cmd) {
|
||||||
}
|
}
|
||||||
|
|
||||||
int CmdHelp(const char *Cmd) {
|
int CmdHelp(const char *Cmd) {
|
||||||
|
(void)Cmd; // Cmd is not used so far
|
||||||
CmdsHelp(CommandTable);
|
CmdsHelp(CommandTable);
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
|
@ -115,6 +115,7 @@ int CmdHF14ADesRb(const char *Cmd) {
|
||||||
}
|
}
|
||||||
|
|
||||||
int CmdHF14ADesInfo(const char *Cmd) {
|
int CmdHF14ADesInfo(const char *Cmd) {
|
||||||
|
(void)Cmd; // Cmd is not used so far
|
||||||
|
|
||||||
UsbCommand c = {CMD_MIFARE_DESFIRE_INFO};
|
UsbCommand c = {CMD_MIFARE_DESFIRE_INFO};
|
||||||
SendCommand(&c);
|
SendCommand(&c);
|
||||||
|
@ -421,6 +422,7 @@ void GetKeySettings(uint8_t *aid) {
|
||||||
}
|
}
|
||||||
|
|
||||||
int CmdHF14ADesEnumApplications(const char *Cmd) {
|
int CmdHF14ADesEnumApplications(const char *Cmd) {
|
||||||
|
(void)Cmd; // Cmd is not used so far
|
||||||
|
|
||||||
uint8_t isOK = 0x00;
|
uint8_t isOK = 0x00;
|
||||||
uint8_t aid[3];
|
uint8_t aid[3];
|
||||||
|
@ -657,6 +659,7 @@ int CmdHFMFDes(const char *Cmd) {
|
||||||
}
|
}
|
||||||
|
|
||||||
int CmdHelp(const char *Cmd) {
|
int CmdHelp(const char *Cmd) {
|
||||||
|
(void)Cmd; // Cmd is not used so far
|
||||||
CmdsHelp(CommandTable);
|
CmdsHelp(CommandTable);
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
|
@ -861,6 +861,7 @@ int CmdHFMFP(const char *Cmd) {
|
||||||
}
|
}
|
||||||
|
|
||||||
int CmdHelp(const char *Cmd) {
|
int CmdHelp(const char *Cmd) {
|
||||||
|
(void)Cmd; // Cmd is not used so far
|
||||||
CmdsHelp(CommandTable);
|
CmdsHelp(CommandTable);
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
|
@ -2670,6 +2670,7 @@ int CmdHFMFUltra(const char *Cmd) {
|
||||||
}
|
}
|
||||||
|
|
||||||
int CmdHelp(const char *Cmd) {
|
int CmdHelp(const char *Cmd) {
|
||||||
|
(void)Cmd; // Cmd is not used so far
|
||||||
CmdsHelp(CommandTable);
|
CmdsHelp(CommandTable);
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
|
@ -488,16 +488,19 @@ int CmdHFTopazReader(const char *Cmd) {
|
||||||
}
|
}
|
||||||
|
|
||||||
int CmdHFTopazSim(const char *Cmd) {
|
int CmdHFTopazSim(const char *Cmd) {
|
||||||
|
(void)Cmd; // Cmd is not used so far
|
||||||
PrintAndLogEx(NORMAL, "not yet implemented");
|
PrintAndLogEx(NORMAL, "not yet implemented");
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
int CmdHFTopazCmdRaw(const char *Cmd) {
|
int CmdHFTopazCmdRaw(const char *Cmd) {
|
||||||
|
(void)Cmd; // Cmd is not used so far
|
||||||
PrintAndLogEx(NORMAL, "not yet implemented. Use hf 14 raw with option -T.");
|
PrintAndLogEx(NORMAL, "not yet implemented. Use hf 14 raw with option -T.");
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
int CmdHFTopazList(const char *Cmd) {
|
int CmdHFTopazList(const char *Cmd) {
|
||||||
|
(void)Cmd; // Cmd is not used so far
|
||||||
CmdTraceList("topaz");
|
CmdTraceList("topaz");
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
@ -521,6 +524,7 @@ int CmdHFTopaz(const char *Cmd) {
|
||||||
}
|
}
|
||||||
|
|
||||||
static int CmdHelp(const char *Cmd) {
|
static int CmdHelp(const char *Cmd) {
|
||||||
|
(void)Cmd; // Cmd is not used so far
|
||||||
CmdsHelp(CommandTable);
|
CmdsHelp(CommandTable);
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
|
@ -325,6 +325,7 @@ int CmdDetectReader(const char *Cmd) {
|
||||||
|
|
||||||
// ## FPGA Control
|
// ## FPGA Control
|
||||||
int CmdFPGAOff(const char *Cmd) {
|
int CmdFPGAOff(const char *Cmd) {
|
||||||
|
(void)Cmd; // Cmd is not used so far
|
||||||
UsbCommand c = {CMD_FPGA_MAJOR_MODE_OFF};
|
UsbCommand c = {CMD_FPGA_MAJOR_MODE_OFF};
|
||||||
clearCommandBuffer();
|
clearCommandBuffer();
|
||||||
SendCommand(&c);
|
SendCommand(&c);
|
||||||
|
@ -361,6 +362,7 @@ int CmdReadmem(const char *Cmd) {
|
||||||
}
|
}
|
||||||
|
|
||||||
int CmdReset(const char *Cmd) {
|
int CmdReset(const char *Cmd) {
|
||||||
|
(void)Cmd; // Cmd is not used so far
|
||||||
UsbCommand c = {CMD_HARDWARE_RESET};
|
UsbCommand c = {CMD_HARDWARE_RESET};
|
||||||
clearCommandBuffer();
|
clearCommandBuffer();
|
||||||
SendCommand(&c);
|
SendCommand(&c);
|
||||||
|
@ -451,6 +453,7 @@ int CmdVersion(const char *Cmd) {
|
||||||
}
|
}
|
||||||
|
|
||||||
int CmdStatus(const char *Cmd) {
|
int CmdStatus(const char *Cmd) {
|
||||||
|
(void)Cmd; // Cmd is not used so far
|
||||||
clearCommandBuffer();
|
clearCommandBuffer();
|
||||||
UsbCommand c = {CMD_STATUS};
|
UsbCommand c = {CMD_STATUS};
|
||||||
SendCommand(&c);
|
SendCommand(&c);
|
||||||
|
@ -460,6 +463,7 @@ int CmdStatus(const char *Cmd) {
|
||||||
}
|
}
|
||||||
|
|
||||||
int CmdPing(const char *Cmd) {
|
int CmdPing(const char *Cmd) {
|
||||||
|
(void)Cmd; // Cmd is not used so far
|
||||||
clearCommandBuffer();
|
clearCommandBuffer();
|
||||||
UsbCommand resp;
|
UsbCommand resp;
|
||||||
UsbCommand c = {CMD_PING};
|
UsbCommand c = {CMD_PING};
|
||||||
|
@ -497,6 +501,7 @@ int CmdHW(const char *Cmd) {
|
||||||
}
|
}
|
||||||
|
|
||||||
int CmdHelp(const char *Cmd) {
|
int CmdHelp(const char *Cmd) {
|
||||||
|
(void)Cmd; // Cmd is not used so far
|
||||||
CmdsHelp(CommandTable);
|
CmdsHelp(CommandTable);
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
|
@ -187,6 +187,7 @@ int CmdLFCommandRead(const char *Cmd) {
|
||||||
}
|
}
|
||||||
|
|
||||||
int CmdFlexdemod(const char *Cmd) {
|
int CmdFlexdemod(const char *Cmd) {
|
||||||
|
(void)Cmd; // Cmd is not used so far
|
||||||
|
|
||||||
if (GraphTraceLen < 0)
|
if (GraphTraceLen < 0)
|
||||||
return 0;
|
return 0;
|
||||||
|
@ -737,6 +738,7 @@ int CmdLFpskSim(const char *Cmd) {
|
||||||
}
|
}
|
||||||
|
|
||||||
int CmdLFSimBidir(const char *Cmd) {
|
int CmdLFSimBidir(const char *Cmd) {
|
||||||
|
(void)Cmd; // Cmd is not used so far
|
||||||
// Set ADC to twice the carrier for a slight supersampling
|
// Set ADC to twice the carrier for a slight supersampling
|
||||||
// HACK: not implemented in ARMSRC.
|
// HACK: not implemented in ARMSRC.
|
||||||
PrintAndLogEx(INFO, "Not implemented yet.");
|
PrintAndLogEx(INFO, "Not implemented yet.");
|
||||||
|
@ -1013,6 +1015,7 @@ int CmdLF(const char *Cmd) {
|
||||||
}
|
}
|
||||||
|
|
||||||
int CmdHelp(const char *Cmd) {
|
int CmdHelp(const char *Cmd) {
|
||||||
|
(void)Cmd; // Cmd is not used so far
|
||||||
CmdsHelp(CommandTable);
|
CmdsHelp(CommandTable);
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
|
@ -240,6 +240,7 @@ int CmdAWIDRead_device(const char *Cmd) {
|
||||||
//AWID Prox demod - FSK2a RF/50 with preamble of 00000001 (always a 96 bit data stream)
|
//AWID Prox demod - FSK2a RF/50 with preamble of 00000001 (always a 96 bit data stream)
|
||||||
//print full AWID Prox ID and some bit format details if found
|
//print full AWID Prox ID and some bit format details if found
|
||||||
int CmdAWIDDemod(const char *Cmd) {
|
int CmdAWIDDemod(const char *Cmd) {
|
||||||
|
(void)Cmd; // Cmd is not used so far
|
||||||
uint8_t bits[MAX_GRAPH_TRACE_LEN] = {0};
|
uint8_t bits[MAX_GRAPH_TRACE_LEN] = {0};
|
||||||
size_t size = getFromGraphBuf(bits);
|
size_t size = getFromGraphBuf(bits);
|
||||||
if (size == 0) {
|
if (size == 0) {
|
||||||
|
@ -573,6 +574,7 @@ int CmdLFAWID(const char *Cmd) {
|
||||||
}
|
}
|
||||||
|
|
||||||
int CmdHelp(const char *Cmd) {
|
int CmdHelp(const char *Cmd) {
|
||||||
|
(void)Cmd; // Cmd is not used so far
|
||||||
CmdsHelp(CommandTable);
|
CmdsHelp(CommandTable);
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
|
@ -28,6 +28,7 @@ int usage_lf_cotag_read(void) {
|
||||||
// COTAG demod should be able to use GraphBuffer,
|
// COTAG demod should be able to use GraphBuffer,
|
||||||
// when data load samples
|
// when data load samples
|
||||||
int CmdCOTAGDemod(const char *Cmd) {
|
int CmdCOTAGDemod(const char *Cmd) {
|
||||||
|
(void)Cmd; // Cmd is not used so far
|
||||||
|
|
||||||
uint8_t bits[COTAG_BITS] = {0};
|
uint8_t bits[COTAG_BITS] = {0};
|
||||||
size_t bitlen = COTAG_BITS;
|
size_t bitlen = COTAG_BITS;
|
||||||
|
@ -116,6 +117,7 @@ int CmdLFCOTAG(const char *Cmd) {
|
||||||
}
|
}
|
||||||
|
|
||||||
int CmdHelp(const char *Cmd) {
|
int CmdHelp(const char *Cmd) {
|
||||||
|
(void)Cmd; // Cmd is not used so far
|
||||||
CmdsHelp(CommandTable);
|
CmdsHelp(CommandTable);
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
|
@ -579,6 +579,7 @@ int CmdEM410xBrute(const char *Cmd) {
|
||||||
* EDIT -- capture enough to get 2 complete preambles at the slowest data rate known to be used (rf/64) (64*64*2+9 = 8201) marshmellow
|
* EDIT -- capture enough to get 2 complete preambles at the slowest data rate known to be used (rf/64) (64*64*2+9 = 8201) marshmellow
|
||||||
*/
|
*/
|
||||||
int CmdEM410xWatch(const char *Cmd) {
|
int CmdEM410xWatch(const char *Cmd) {
|
||||||
|
(void)Cmd; // Cmd is not used so far
|
||||||
do {
|
do {
|
||||||
if (ukbhit()) {
|
if (ukbhit()) {
|
||||||
int gc = getchar();
|
int gc = getchar();
|
||||||
|
@ -1507,6 +1508,7 @@ int CmdLFEM4X(const char *Cmd) {
|
||||||
}
|
}
|
||||||
|
|
||||||
int CmdHelp(const char *Cmd) {
|
int CmdHelp(const char *Cmd) {
|
||||||
|
(void)Cmd; // Cmd is not used so far
|
||||||
CmdsHelp(CommandTable);
|
CmdsHelp(CommandTable);
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
|
@ -158,6 +158,7 @@ int getFDXBits(uint64_t national_id, uint16_t country, uint8_t isanimal, uint8_t
|
||||||
-- sample: 985121004515220 [ 37FF65B88EF94 ]
|
-- sample: 985121004515220 [ 37FF65B88EF94 ]
|
||||||
*/
|
*/
|
||||||
int CmdFDXBdemodBI(const char *Cmd) {
|
int CmdFDXBdemodBI(const char *Cmd) {
|
||||||
|
(void)Cmd; // Cmd is not used so far
|
||||||
|
|
||||||
int clk = 32;
|
int clk = 32;
|
||||||
int invert = 1, errCnt = 0, offset = 0, maxErr = 100;
|
int invert = 1, errCnt = 0, offset = 0, maxErr = 100;
|
||||||
|
@ -233,6 +234,7 @@ int CmdFDXBdemodBI(const char *Cmd) {
|
||||||
//see ASKDemod for what args are accepted
|
//see ASKDemod for what args are accepted
|
||||||
//almost the same demod as cmddata.c/CmdFDXBdemodBI
|
//almost the same demod as cmddata.c/CmdFDXBdemodBI
|
||||||
int CmdFdxDemod(const char *Cmd) {
|
int CmdFdxDemod(const char *Cmd) {
|
||||||
|
(void)Cmd; // Cmd is not used so far
|
||||||
|
|
||||||
//Differential Biphase / di-phase (inverted biphase)
|
//Differential Biphase / di-phase (inverted biphase)
|
||||||
//get binary from ask wave
|
//get binary from ask wave
|
||||||
|
@ -404,6 +406,7 @@ int CmdLFFdx(const char *Cmd) {
|
||||||
}
|
}
|
||||||
|
|
||||||
int CmdHelp(const char *Cmd) {
|
int CmdHelp(const char *Cmd) {
|
||||||
|
(void)Cmd; // Cmd is not used so far
|
||||||
CmdsHelp(CommandTable);
|
CmdsHelp(CommandTable);
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
|
@ -173,6 +173,7 @@ int detectGProxII(uint8_t *bits, size_t *size) {
|
||||||
// but will leave the GraphBuffer intact.
|
// but will leave the GraphBuffer intact.
|
||||||
//if successful it will push askraw data back to demod buffer ready for emulation
|
//if successful it will push askraw data back to demod buffer ready for emulation
|
||||||
int CmdGuardDemod(const char *Cmd) {
|
int CmdGuardDemod(const char *Cmd) {
|
||||||
|
(void)Cmd; // Cmd is not used so far
|
||||||
|
|
||||||
//Differential Biphase
|
//Differential Biphase
|
||||||
//get binary from ask wave
|
//get binary from ask wave
|
||||||
|
@ -362,6 +363,7 @@ int CmdLFGuard(const char *Cmd) {
|
||||||
}
|
}
|
||||||
|
|
||||||
int CmdHelp(const char *Cmd) {
|
int CmdHelp(const char *Cmd) {
|
||||||
|
(void)Cmd; // Cmd is not used so far
|
||||||
CmdsHelp(CommandTable);
|
CmdsHelp(CommandTable);
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
|
@ -125,6 +125,7 @@ static bool sendTry(uint8_t fmtlen, uint32_t fc, uint32_t cn, uint32_t delay, ui
|
||||||
//HID Prox demod - FSK RF/50 with preamble of 00011101 (then manchester encoded)
|
//HID Prox demod - FSK RF/50 with preamble of 00011101 (then manchester encoded)
|
||||||
//print full HID Prox ID and some bit format details if found
|
//print full HID Prox ID and some bit format details if found
|
||||||
int CmdHIDDemod(const char *Cmd) {
|
int CmdHIDDemod(const char *Cmd) {
|
||||||
|
(void)Cmd; // Cmd is not used so far
|
||||||
//raw fsk demod no manchester decoding no start bit finding just get binary from wave
|
//raw fsk demod no manchester decoding no start bit finding just get binary from wave
|
||||||
uint32_t hi2 = 0, hi = 0, lo = 0;
|
uint32_t hi2 = 0, hi = 0, lo = 0;
|
||||||
|
|
||||||
|
@ -599,6 +600,7 @@ int CmdLFHID(const char *Cmd) {
|
||||||
}
|
}
|
||||||
|
|
||||||
int CmdHelp(const char *Cmd) {
|
int CmdHelp(const char *Cmd) {
|
||||||
|
(void)Cmd; // Cmd is not used so far
|
||||||
CmdsHelp(CommandTable);
|
CmdsHelp(CommandTable);
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
|
@ -119,6 +119,7 @@ int usage_hitag_checkchallenges(void) {
|
||||||
}
|
}
|
||||||
|
|
||||||
int CmdLFHitagList(const char *Cmd) {
|
int CmdLFHitagList(const char *Cmd) {
|
||||||
|
(void)Cmd; // Cmd is not used so far
|
||||||
CmdTraceList("hitag");
|
CmdTraceList("hitag");
|
||||||
return 0;
|
return 0;
|
||||||
|
|
||||||
|
@ -706,6 +707,7 @@ int CmdLFHitag(const char *Cmd) {
|
||||||
}
|
}
|
||||||
|
|
||||||
int CmdHelp(const char *Cmd) {
|
int CmdHelp(const char *Cmd) {
|
||||||
|
(void)Cmd; // Cmd is not used so far
|
||||||
CmdsHelp(CommandTable);
|
CmdsHelp(CommandTable);
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
|
@ -596,6 +596,7 @@ int CmdLFINDALA(const char *Cmd) {
|
||||||
}
|
}
|
||||||
|
|
||||||
int CmdHelp(const char *Cmd) {
|
int CmdHelp(const char *Cmd) {
|
||||||
|
(void)Cmd; // Cmd is not used so far
|
||||||
CmdsHelp(CommandTable);
|
CmdsHelp(CommandTable);
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
|
@ -81,6 +81,7 @@ int CmdIOProxRead_device(const char *Cmd) {
|
||||||
//IO-Prox demod - FSK RF/64 with preamble of 000000001
|
//IO-Prox demod - FSK RF/64 with preamble of 000000001
|
||||||
//print ioprox ID and some format details
|
//print ioprox ID and some format details
|
||||||
int CmdIOProxDemod(const char *Cmd) {
|
int CmdIOProxDemod(const char *Cmd) {
|
||||||
|
(void)Cmd; // Cmd is not used so far
|
||||||
int retval = 0;
|
int retval = 0;
|
||||||
int idx = 0;
|
int idx = 0;
|
||||||
uint8_t bits[MAX_GRAPH_TRACE_LEN] = {0};
|
uint8_t bits[MAX_GRAPH_TRACE_LEN] = {0};
|
||||||
|
@ -347,6 +348,7 @@ int CmdLFIO(const char *Cmd) {
|
||||||
}
|
}
|
||||||
|
|
||||||
int CmdHelp(const char *Cmd) {
|
int CmdHelp(const char *Cmd) {
|
||||||
|
(void)Cmd; // Cmd is not used so far
|
||||||
CmdsHelp(CommandTable);
|
CmdsHelp(CommandTable);
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
|
@ -92,6 +92,7 @@ static uint64_t getJablontronCardId(uint64_t rawcode) {
|
||||||
|
|
||||||
//see ASKDemod for what args are accepted
|
//see ASKDemod for what args are accepted
|
||||||
int CmdJablotronDemod(const char *Cmd) {
|
int CmdJablotronDemod(const char *Cmd) {
|
||||||
|
(void)Cmd; // Cmd is not used so far
|
||||||
|
|
||||||
//Differential Biphase / di-phase (inverted biphase)
|
//Differential Biphase / di-phase (inverted biphase)
|
||||||
//get binary from ask wave
|
//get binary from ask wave
|
||||||
|
@ -245,6 +246,7 @@ int CmdLFJablotron(const char *Cmd) {
|
||||||
}
|
}
|
||||||
|
|
||||||
int CmdHelp(const char *Cmd) {
|
int CmdHelp(const char *Cmd) {
|
||||||
|
(void)Cmd; // Cmd is not used so far
|
||||||
CmdsHelp(CommandTable);
|
CmdsHelp(CommandTable);
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
|
@ -64,6 +64,7 @@ int detectKeri(uint8_t *dest, size_t *size, bool *invert) {
|
||||||
}
|
}
|
||||||
|
|
||||||
int CmdKeriDemod(const char *Cmd) {
|
int CmdKeriDemod(const char *Cmd) {
|
||||||
|
(void)Cmd; // Cmd is not used so far
|
||||||
|
|
||||||
if (!PSKDemod("", false)) {
|
if (!PSKDemod("", false)) {
|
||||||
PrintAndLogEx(DEBUG, "DEBUG: Error - KERI: PSK1 Demod failed");
|
PrintAndLogEx(DEBUG, "DEBUG: Error - KERI: PSK1 Demod failed");
|
||||||
|
@ -237,6 +238,7 @@ int CmdLFKeri(const char *Cmd) {
|
||||||
}
|
}
|
||||||
|
|
||||||
int CmdHelp(const char *Cmd) {
|
int CmdHelp(const char *Cmd) {
|
||||||
|
(void)Cmd; // Cmd is not used so far
|
||||||
CmdsHelp(CommandTable);
|
CmdsHelp(CommandTable);
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
|
@ -113,6 +113,7 @@ int GetNedapBits(uint32_t cn, uint8_t *nedapBits) {
|
||||||
//print NEDAP Prox ID, encoding, encrypted ID,
|
//print NEDAP Prox ID, encoding, encrypted ID,
|
||||||
|
|
||||||
int CmdLFNedapDemod(const char *Cmd) {
|
int CmdLFNedapDemod(const char *Cmd) {
|
||||||
|
(void)Cmd; // Cmd is not used so far
|
||||||
//raw ask demod no start bit finding just get binary from wave
|
//raw ask demod no start bit finding just get binary from wave
|
||||||
if (!ASKbiphaseDemod("0 64 1 0", false)) {
|
if (!ASKbiphaseDemod("0 64 1 0", false)) {
|
||||||
if (g_debugMode) PrintAndLogEx(DEBUG, "DEBUG: Error - Nedap ASKbiphaseDemod failed");
|
if (g_debugMode) PrintAndLogEx(DEBUG, "DEBUG: Error - Nedap ASKbiphaseDemod failed");
|
||||||
|
@ -388,6 +389,7 @@ int CmdLFNedap(const char *Cmd) {
|
||||||
}
|
}
|
||||||
|
|
||||||
int CmdHelp(const char *Cmd) {
|
int CmdHelp(const char *Cmd) {
|
||||||
|
(void)Cmd; // Cmd is not used so far
|
||||||
CmdsHelp(CommandTable);
|
CmdsHelp(CommandTable);
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
|
@ -32,6 +32,7 @@ int detectNexWatch(uint8_t *dest, size_t *size, bool *invert) {
|
||||||
}
|
}
|
||||||
|
|
||||||
int CmdNexWatchDemod(const char *Cmd) {
|
int CmdNexWatchDemod(const char *Cmd) {
|
||||||
|
(void)Cmd; // Cmd is not used so far
|
||||||
|
|
||||||
if (!PSKDemod("", false)) {
|
if (!PSKDemod("", false)) {
|
||||||
PrintAndLogEx(DEBUG, "DEBUG: Error - NexWatch can't demod signal");
|
PrintAndLogEx(DEBUG, "DEBUG: Error - NexWatch can't demod signal");
|
||||||
|
@ -106,6 +107,7 @@ int CmdLFNEXWATCH(const char *Cmd) {
|
||||||
}
|
}
|
||||||
|
|
||||||
int CmdHelp(const char *Cmd) {
|
int CmdHelp(const char *Cmd) {
|
||||||
|
(void)Cmd; // Cmd is not used so far
|
||||||
CmdsHelp(CommandTable);
|
CmdsHelp(CommandTable);
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
|
@ -101,6 +101,7 @@ int detectNoralsy(uint8_t *dest, size_t *size) {
|
||||||
|
|
||||||
//see ASKDemod for what args are accepted
|
//see ASKDemod for what args are accepted
|
||||||
int CmdNoralsyDemod(const char *Cmd) {
|
int CmdNoralsyDemod(const char *Cmd) {
|
||||||
|
(void)Cmd; // Cmd is not used so far
|
||||||
|
|
||||||
//ASK / Manchester
|
//ASK / Manchester
|
||||||
bool st = true;
|
bool st = true;
|
||||||
|
@ -272,6 +273,7 @@ int CmdLFNoralsy(const char *Cmd) {
|
||||||
}
|
}
|
||||||
|
|
||||||
int CmdHelp(const char *Cmd) {
|
int CmdHelp(const char *Cmd) {
|
||||||
|
(void)Cmd; // Cmd is not used so far
|
||||||
CmdsHelp(CommandTable);
|
CmdsHelp(CommandTable);
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
|
@ -78,6 +78,7 @@ int detectParadox(uint8_t *dest, size_t *size, uint32_t *hi2, uint32_t *hi, uint
|
||||||
//Paradox Prox demod - FSK2a RF/50 with preamble of 00001111 (then manchester encoded)
|
//Paradox Prox demod - FSK2a RF/50 with preamble of 00001111 (then manchester encoded)
|
||||||
//print full Paradox Prox ID and some bit format details if found
|
//print full Paradox Prox ID and some bit format details if found
|
||||||
int CmdParadoxDemod(const char *Cmd) {
|
int CmdParadoxDemod(const char *Cmd) {
|
||||||
|
(void)Cmd; // Cmd is not used so far
|
||||||
//raw fsk demod no manchester decoding no start bit finding just get binary from wave
|
//raw fsk demod no manchester decoding no start bit finding just get binary from wave
|
||||||
uint8_t bits[MAX_GRAPH_TRACE_LEN] = {0};
|
uint8_t bits[MAX_GRAPH_TRACE_LEN] = {0};
|
||||||
size_t size = getFromGraphBuf(bits);
|
size_t size = getFromGraphBuf(bits);
|
||||||
|
@ -199,6 +200,7 @@ int CmdLFParadox(const char *Cmd) {
|
||||||
}
|
}
|
||||||
|
|
||||||
int CmdHelp(const char *Cmd) {
|
int CmdHelp(const char *Cmd) {
|
||||||
|
(void)Cmd; // Cmd is not used so far
|
||||||
CmdsHelp(CommandTable);
|
CmdsHelp(CommandTable);
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
|
@ -172,6 +172,7 @@ int CmdLFPCF7931(const char *Cmd) {
|
||||||
}
|
}
|
||||||
|
|
||||||
int CmdHelp(const char *Cmd) {
|
int CmdHelp(const char *Cmd) {
|
||||||
|
(void)Cmd; // Cmd is not used so far
|
||||||
CmdsHelp(CommandTable);
|
CmdsHelp(CommandTable);
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
|
@ -126,6 +126,7 @@ int GetPrescoBits(uint32_t fullcode, uint8_t *prescoBits) {
|
||||||
|
|
||||||
//see ASKDemod for what args are accepted
|
//see ASKDemod for what args are accepted
|
||||||
int CmdPrescoDemod(const char *Cmd) {
|
int CmdPrescoDemod(const char *Cmd) {
|
||||||
|
(void)Cmd; // Cmd is not used so far
|
||||||
bool st = true;
|
bool st = true;
|
||||||
if (!ASKDemod_ext("32 0 0 0 0 a", false, false, 1, &st)) {
|
if (!ASKDemod_ext("32 0 0 0 0 a", false, false, 1, &st)) {
|
||||||
PrintAndLogEx(DEBUG, "DEBUG: Error Presco ASKDemod failed");
|
PrintAndLogEx(DEBUG, "DEBUG: Error Presco ASKDemod failed");
|
||||||
|
@ -257,6 +258,7 @@ int CmdLFPresco(const char *Cmd) {
|
||||||
}
|
}
|
||||||
|
|
||||||
int CmdHelp(const char *Cmd) {
|
int CmdHelp(const char *Cmd) {
|
||||||
|
(void)Cmd; // Cmd is not used so far
|
||||||
CmdsHelp(CommandTable);
|
CmdsHelp(CommandTable);
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
|
@ -106,6 +106,7 @@ int GetPyramidBits(uint32_t fc, uint32_t cn, uint8_t *pyramidBits) {
|
||||||
//Pyramid Prox demod - FSK RF/50 with preamble of 0000000000000001 (always a 128 bit data stream)
|
//Pyramid Prox demod - FSK RF/50 with preamble of 0000000000000001 (always a 128 bit data stream)
|
||||||
//print full Farpointe Data/Pyramid Prox ID and some bit format details if found
|
//print full Farpointe Data/Pyramid Prox ID and some bit format details if found
|
||||||
int CmdPyramidDemod(const char *Cmd) {
|
int CmdPyramidDemod(const char *Cmd) {
|
||||||
|
(void)Cmd; // Cmd is not used so far
|
||||||
//raw fsk demod no manchester decoding no start bit finding just get binary from wave
|
//raw fsk demod no manchester decoding no start bit finding just get binary from wave
|
||||||
uint8_t bits[MAX_GRAPH_TRACE_LEN] = {0};
|
uint8_t bits[MAX_GRAPH_TRACE_LEN] = {0};
|
||||||
size_t size = getFromGraphBuf(bits);
|
size_t size = getFromGraphBuf(bits);
|
||||||
|
@ -356,6 +357,7 @@ int CmdLFPyramid(const char *Cmd) {
|
||||||
}
|
}
|
||||||
|
|
||||||
int CmdHelp(const char *Cmd) {
|
int CmdHelp(const char *Cmd) {
|
||||||
|
(void)Cmd; // Cmd is not used so far
|
||||||
CmdsHelp(CommandTable);
|
CmdsHelp(CommandTable);
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
|
@ -26,6 +26,7 @@ int detectSecurakey(uint8_t *dest, size_t *size) {
|
||||||
|
|
||||||
//see ASKDemod for what args are accepted
|
//see ASKDemod for what args are accepted
|
||||||
int CmdSecurakeyDemod(const char *Cmd) {
|
int CmdSecurakeyDemod(const char *Cmd) {
|
||||||
|
(void)Cmd; // Cmd is not used so far
|
||||||
|
|
||||||
//ASK / Manchester
|
//ASK / Manchester
|
||||||
bool st = false;
|
bool st = false;
|
||||||
|
@ -127,6 +128,7 @@ int CmdLFSecurakey(const char *Cmd) {
|
||||||
}
|
}
|
||||||
|
|
||||||
int CmdHelp(const char *Cmd) {
|
int CmdHelp(const char *Cmd) {
|
||||||
|
(void)Cmd; // Cmd is not used so far
|
||||||
CmdsHelp(CommandTable);
|
CmdsHelp(CommandTable);
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
|
@ -960,6 +960,7 @@ bool test(uint8_t mode, uint8_t *offset, int *fndBitRate, uint8_t clk, bool *Q5)
|
||||||
}
|
}
|
||||||
|
|
||||||
int special(const char *Cmd) {
|
int special(const char *Cmd) {
|
||||||
|
(void)Cmd; // Cmd is not used so far
|
||||||
|
|
||||||
uint8_t bits[32] = {0x00};
|
uint8_t bits[32] = {0x00};
|
||||||
|
|
||||||
|
@ -1761,6 +1762,7 @@ void t55x7_create_config_block(int tagtype) {
|
||||||
}
|
}
|
||||||
|
|
||||||
int CmdResetRead(const char *Cmd) {
|
int CmdResetRead(const char *Cmd) {
|
||||||
|
(void)Cmd; // Cmd is not used so far
|
||||||
UsbCommand c = {CMD_T55XX_RESET_READ, {0, 0, 0}};
|
UsbCommand c = {CMD_T55XX_RESET_READ, {0, 0, 0}};
|
||||||
clearCommandBuffer();
|
clearCommandBuffer();
|
||||||
SendCommand(&c);
|
SendCommand(&c);
|
||||||
|
@ -2320,6 +2322,7 @@ int CmdLFT55XX(const char *Cmd) {
|
||||||
}
|
}
|
||||||
|
|
||||||
int CmdHelp(const char *Cmd) {
|
int CmdHelp(const char *Cmd) {
|
||||||
|
(void)Cmd; // Cmd is not used so far
|
||||||
CmdsHelp(CommandTable);
|
CmdsHelp(CommandTable);
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
|
@ -22,6 +22,7 @@
|
||||||
static int CmdHelp(const char *Cmd);
|
static int CmdHelp(const char *Cmd);
|
||||||
|
|
||||||
int CmdTIDemod(const char *Cmd) {
|
int CmdTIDemod(const char *Cmd) {
|
||||||
|
(void)Cmd; // Cmd is not used so far
|
||||||
/* MATLAB as follows:
|
/* MATLAB as follows:
|
||||||
f_s = 2000000; % sampling frequency
|
f_s = 2000000; % sampling frequency
|
||||||
f_l = 123200; % low FSK tone
|
f_l = 123200; % low FSK tone
|
||||||
|
@ -273,6 +274,7 @@ out:
|
||||||
|
|
||||||
// read a TI tag and return its ID
|
// read a TI tag and return its ID
|
||||||
int CmdTIRead(const char *Cmd) {
|
int CmdTIRead(const char *Cmd) {
|
||||||
|
(void)Cmd; // Cmd is not used so far
|
||||||
UsbCommand c = {CMD_READ_TI_TYPE};
|
UsbCommand c = {CMD_READ_TI_TYPE};
|
||||||
clearCommandBuffer();
|
clearCommandBuffer();
|
||||||
SendCommand(&c);
|
SendCommand(&c);
|
||||||
|
@ -312,6 +314,7 @@ int CmdLFTI(const char *Cmd) {
|
||||||
}
|
}
|
||||||
|
|
||||||
int CmdHelp(const char *Cmd) {
|
int CmdHelp(const char *Cmd) {
|
||||||
|
(void)Cmd; // Cmd is not used so far
|
||||||
CmdsHelp(CommandTable);
|
CmdsHelp(CommandTable);
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
|
@ -174,6 +174,7 @@ int CmdLFViking(const char *Cmd) {
|
||||||
}
|
}
|
||||||
|
|
||||||
int CmdHelp(const char *Cmd) {
|
int CmdHelp(const char *Cmd) {
|
||||||
|
(void)Cmd; // Cmd is not used so far
|
||||||
CmdsHelp(CommandTable);
|
CmdsHelp(CommandTable);
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
|
@ -95,6 +95,7 @@ int detectVisa2k(uint8_t *dest, size_t *size) {
|
||||||
**/
|
**/
|
||||||
//see ASKDemod for what args are accepted
|
//see ASKDemod for what args are accepted
|
||||||
int CmdVisa2kDemod(const char *Cmd) {
|
int CmdVisa2kDemod(const char *Cmd) {
|
||||||
|
(void)Cmd; // Cmd is not used so far
|
||||||
|
|
||||||
save_restoreGB(GRAPH_SAVE);
|
save_restoreGB(GRAPH_SAVE);
|
||||||
|
|
||||||
|
@ -238,6 +239,7 @@ int CmdLFVisa2k(const char *Cmd) {
|
||||||
}
|
}
|
||||||
|
|
||||||
int CmdHelp(const char *Cmd) {
|
int CmdHelp(const char *Cmd) {
|
||||||
|
(void)Cmd; // Cmd is not used so far
|
||||||
CmdsHelp(CommandTable);
|
CmdsHelp(CommandTable);
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
|
@ -55,11 +55,13 @@ int CmdRem(const char *Cmd) {
|
||||||
}
|
}
|
||||||
|
|
||||||
int CmdHelp(const char *Cmd) {
|
int CmdHelp(const char *Cmd) {
|
||||||
|
(void)Cmd; // Cmd is not used so far
|
||||||
CmdsHelp(CommandTable);
|
CmdsHelp(CommandTable);
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
int CmdQuit(const char *Cmd) {
|
int CmdQuit(const char *Cmd) {
|
||||||
|
(void)Cmd; // Cmd is not used so far
|
||||||
return 99;
|
return 99;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -68,6 +68,7 @@ bool endsWith(const char *base, const char *str) {
|
||||||
* ending with .lua
|
* ending with .lua
|
||||||
*/
|
*/
|
||||||
int CmdScriptList(const char *Cmd) {
|
int CmdScriptList(const char *Cmd) {
|
||||||
|
(void)Cmd; // Cmd is not used so far
|
||||||
|
|
||||||
char const *exedir = get_my_executable_directory();
|
char const *exedir = get_my_executable_directory();
|
||||||
if (exedir == NULL)
|
if (exedir == NULL)
|
||||||
|
@ -191,6 +192,7 @@ int CmdScript(const char *Cmd) {
|
||||||
* @return
|
* @return
|
||||||
*/
|
*/
|
||||||
int CmdHelp(const char *Cmd) {
|
int CmdHelp(const char *Cmd) {
|
||||||
|
(void)Cmd; // Cmd is not used so far
|
||||||
PrintAndLogEx(NORMAL, "This is a feature to run Lua-scripts. You can place lua-scripts within the scripts/-folder. ");
|
PrintAndLogEx(NORMAL, "This is a feature to run Lua-scripts. You can place lua-scripts within the scripts/-folder. ");
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
|
@ -938,6 +938,7 @@ int CmdSmartSetClock(const char *Cmd) {
|
||||||
}
|
}
|
||||||
|
|
||||||
int CmdSmartList(const char *Cmd) {
|
int CmdSmartList(const char *Cmd) {
|
||||||
|
(void)Cmd; // Cmd is not used so far
|
||||||
CmdTraceList("7816");
|
CmdTraceList("7816");
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
@ -1235,6 +1236,7 @@ int CmdSmartcard(const char *Cmd) {
|
||||||
}
|
}
|
||||||
|
|
||||||
int CmdHelp(const char *Cmd) {
|
int CmdHelp(const char *Cmd) {
|
||||||
|
(void)Cmd; // Cmd is not used so far
|
||||||
CmdsHelp(CommandTable);
|
CmdsHelp(CommandTable);
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
|
@ -722,6 +722,7 @@ int CmdTrace(const char *Cmd) {
|
||||||
}
|
}
|
||||||
|
|
||||||
int CmdHelp(const char *Cmd) {
|
int CmdHelp(const char *Cmd) {
|
||||||
|
(void)Cmd; // Cmd is not used so far
|
||||||
CmdsHelp(CommandTable);
|
CmdsHelp(CommandTable);
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
|
@ -54,7 +54,7 @@ void PrintChannel(EMVCommandChannel channel) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
int CmdEMVSelect(const char *cmd) {
|
int CmdEMVSelect(const char *Cmd) {
|
||||||
uint8_t data[APDU_AID_LEN] = {0};
|
uint8_t data[APDU_AID_LEN] = {0};
|
||||||
int datalen = 0;
|
int datalen = 0;
|
||||||
|
|
||||||
|
@ -72,7 +72,7 @@ int CmdEMVSelect(const char *cmd) {
|
||||||
arg_strx0(NULL, NULL, "<HEX applet AID>", NULL),
|
arg_strx0(NULL, NULL, "<HEX applet AID>", NULL),
|
||||||
arg_param_end
|
arg_param_end
|
||||||
};
|
};
|
||||||
CLIExecWithReturn(cmd, argtable, true);
|
CLIExecWithReturn(Cmd, argtable, true);
|
||||||
|
|
||||||
bool activateField = arg_get_lit(1);
|
bool activateField = arg_get_lit(1);
|
||||||
bool leaveSignalON = arg_get_lit(2);
|
bool leaveSignalON = arg_get_lit(2);
|
||||||
|
@ -105,7 +105,7 @@ int CmdEMVSelect(const char *cmd) {
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
int CmdEMVSearch(const char *cmd) {
|
int CmdEMVSearch(const char *Cmd) {
|
||||||
|
|
||||||
CLIParserInit("emv search",
|
CLIParserInit("emv search",
|
||||||
"Tries to select all applets from applet list:\n",
|
"Tries to select all applets from applet list:\n",
|
||||||
|
@ -120,7 +120,7 @@ int CmdEMVSearch(const char *cmd) {
|
||||||
arg_lit0("wW", "wired", "Send data via contact (iso7816) interface. Contactless interface set by default."),
|
arg_lit0("wW", "wired", "Send data via contact (iso7816) interface. Contactless interface set by default."),
|
||||||
arg_param_end
|
arg_param_end
|
||||||
};
|
};
|
||||||
CLIExecWithReturn(cmd, argtable, true);
|
CLIExecWithReturn(Cmd, argtable, true);
|
||||||
|
|
||||||
bool activateField = arg_get_lit(1);
|
bool activateField = arg_get_lit(1);
|
||||||
bool leaveSignalON = arg_get_lit(2);
|
bool leaveSignalON = arg_get_lit(2);
|
||||||
|
@ -155,7 +155,7 @@ int CmdEMVSearch(const char *cmd) {
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
int CmdEMVPPSE(const char *cmd) {
|
int CmdEMVPPSE(const char *Cmd) {
|
||||||
|
|
||||||
CLIParserInit("emv pse",
|
CLIParserInit("emv pse",
|
||||||
"Executes PSE/PPSE select command. It returns list of applet on the card:\n",
|
"Executes PSE/PPSE select command. It returns list of applet on the card:\n",
|
||||||
|
@ -172,7 +172,7 @@ int CmdEMVPPSE(const char *cmd) {
|
||||||
arg_lit0("wW", "wired", "Send data via contact (iso7816) interface. Contactless interface set by default."),
|
arg_lit0("wW", "wired", "Send data via contact (iso7816) interface. Contactless interface set by default."),
|
||||||
arg_param_end
|
arg_param_end
|
||||||
};
|
};
|
||||||
CLIExecWithReturn(cmd, argtable, true);
|
CLIExecWithReturn(Cmd, argtable, true);
|
||||||
|
|
||||||
bool activateField = arg_get_lit(1);
|
bool activateField = arg_get_lit(1);
|
||||||
bool leaveSignalON = arg_get_lit(2);
|
bool leaveSignalON = arg_get_lit(2);
|
||||||
|
@ -210,7 +210,7 @@ int CmdEMVPPSE(const char *cmd) {
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
int CmdEMVGPO(const char *cmd) {
|
int CmdEMVGPO(const char *Cmd) {
|
||||||
uint8_t data[APDU_RES_LEN] = {0};
|
uint8_t data[APDU_RES_LEN] = {0};
|
||||||
int datalen = 0;
|
int datalen = 0;
|
||||||
|
|
||||||
|
@ -231,7 +231,7 @@ int CmdEMVGPO(const char *cmd) {
|
||||||
arg_strx0(NULL, NULL, "<HEX PDOLdata/PDOL>", NULL),
|
arg_strx0(NULL, NULL, "<HEX PDOLdata/PDOL>", NULL),
|
||||||
arg_param_end
|
arg_param_end
|
||||||
};
|
};
|
||||||
CLIExecWithReturn(cmd, argtable, true);
|
CLIExecWithReturn(Cmd, argtable, true);
|
||||||
|
|
||||||
bool leaveSignalON = arg_get_lit(1);
|
bool leaveSignalON = arg_get_lit(1);
|
||||||
bool paramsLoadFromFile = arg_get_lit(2);
|
bool paramsLoadFromFile = arg_get_lit(2);
|
||||||
|
@ -317,7 +317,7 @@ int CmdEMVGPO(const char *cmd) {
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
int CmdEMVReadRecord(const char *cmd) {
|
int CmdEMVReadRecord(const char *Cmd) {
|
||||||
uint8_t data[APDU_RES_LEN] = {0};
|
uint8_t data[APDU_RES_LEN] = {0};
|
||||||
int datalen = 0;
|
int datalen = 0;
|
||||||
|
|
||||||
|
@ -334,7 +334,7 @@ int CmdEMVReadRecord(const char *cmd) {
|
||||||
arg_strx1(NULL, NULL, "<SFI 1byte HEX><SFIrecord 1byte HEX>", NULL),
|
arg_strx1(NULL, NULL, "<SFI 1byte HEX><SFIrecord 1byte HEX>", NULL),
|
||||||
arg_param_end
|
arg_param_end
|
||||||
};
|
};
|
||||||
CLIExecWithReturn(cmd, argtable, true);
|
CLIExecWithReturn(Cmd, argtable, true);
|
||||||
|
|
||||||
bool leaveSignalON = arg_get_lit(1);
|
bool leaveSignalON = arg_get_lit(1);
|
||||||
bool APDULogging = arg_get_lit(2);
|
bool APDULogging = arg_get_lit(2);
|
||||||
|
@ -372,7 +372,7 @@ int CmdEMVReadRecord(const char *cmd) {
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
int CmdEMVAC(const char *cmd) {
|
int CmdEMVAC(const char *Cmd) {
|
||||||
uint8_t data[APDU_RES_LEN] = {0};
|
uint8_t data[APDU_RES_LEN] = {0};
|
||||||
int datalen = 0;
|
int datalen = 0;
|
||||||
|
|
||||||
|
@ -396,7 +396,7 @@ int CmdEMVAC(const char *cmd) {
|
||||||
arg_strx1(NULL, NULL, "<HEX CDOLdata/CDOL>", NULL),
|
arg_strx1(NULL, NULL, "<HEX CDOLdata/CDOL>", NULL),
|
||||||
arg_param_end
|
arg_param_end
|
||||||
};
|
};
|
||||||
CLIExecWithReturn(cmd, argtable, false);
|
CLIExecWithReturn(Cmd, argtable, false);
|
||||||
|
|
||||||
bool leaveSignalON = arg_get_lit(1);
|
bool leaveSignalON = arg_get_lit(1);
|
||||||
bool trTypeCDA = arg_get_lit(2);
|
bool trTypeCDA = arg_get_lit(2);
|
||||||
|
@ -493,7 +493,7 @@ int CmdEMVAC(const char *cmd) {
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
int CmdEMVGenerateChallenge(const char *cmd) {
|
int CmdEMVGenerateChallenge(const char *Cmd) {
|
||||||
|
|
||||||
CLIParserInit("emv challenge",
|
CLIParserInit("emv challenge",
|
||||||
"Executes Generate Challenge command. It returns 4 or 8-byte random number from card.\nNeeds a EMV applet to be selected and GPO to be executed.",
|
"Executes Generate Challenge command. It returns 4 or 8-byte random number from card.\nNeeds a EMV applet to be selected and GPO to be executed.",
|
||||||
|
@ -506,7 +506,7 @@ int CmdEMVGenerateChallenge(const char *cmd) {
|
||||||
arg_lit0("wW", "wired", "Send data via contact (iso7816) interface. Contactless interface set by default."),
|
arg_lit0("wW", "wired", "Send data via contact (iso7816) interface. Contactless interface set by default."),
|
||||||
arg_param_end
|
arg_param_end
|
||||||
};
|
};
|
||||||
CLIExecWithReturn(cmd, argtable, true);
|
CLIExecWithReturn(Cmd, argtable, true);
|
||||||
|
|
||||||
bool leaveSignalON = arg_get_lit(1);
|
bool leaveSignalON = arg_get_lit(1);
|
||||||
bool APDULogging = arg_get_lit(2);
|
bool APDULogging = arg_get_lit(2);
|
||||||
|
@ -538,7 +538,7 @@ int CmdEMVGenerateChallenge(const char *cmd) {
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
int CmdEMVInternalAuthenticate(const char *cmd) {
|
int CmdEMVInternalAuthenticate(const char *Cmd) {
|
||||||
uint8_t data[APDU_RES_LEN] = {0};
|
uint8_t data[APDU_RES_LEN] = {0};
|
||||||
int datalen = 0;
|
int datalen = 0;
|
||||||
|
|
||||||
|
@ -562,7 +562,7 @@ int CmdEMVInternalAuthenticate(const char *cmd) {
|
||||||
arg_strx1(NULL, NULL, "<HEX DDOLdata/DDOL>", NULL),
|
arg_strx1(NULL, NULL, "<HEX DDOLdata/DDOL>", NULL),
|
||||||
arg_param_end
|
arg_param_end
|
||||||
};
|
};
|
||||||
CLIExecWithReturn(cmd, argtable, false);
|
CLIExecWithReturn(Cmd, argtable, false);
|
||||||
|
|
||||||
bool leaveSignalON = arg_get_lit(1);
|
bool leaveSignalON = arg_get_lit(1);
|
||||||
bool paramsLoadFromFile = arg_get_lit(2);
|
bool paramsLoadFromFile = arg_get_lit(2);
|
||||||
|
@ -749,7 +749,7 @@ void ProcessACResponseFormat1(struct tlvdb *tlvRoot, uint8_t *buf, size_t len, b
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
int CmdEMVExec(const char *cmd) {
|
int CmdEMVExec(const char *Cmd) {
|
||||||
uint8_t buf[APDU_RES_LEN] = {0};
|
uint8_t buf[APDU_RES_LEN] = {0};
|
||||||
size_t len = 0;
|
size_t len = 0;
|
||||||
uint16_t sw = 0;
|
uint16_t sw = 0;
|
||||||
|
@ -785,7 +785,7 @@ int CmdEMVExec(const char *cmd) {
|
||||||
arg_lit0("wW", "wired", "Send data via contact (iso7816) interface. Contactless interface set by default."),
|
arg_lit0("wW", "wired", "Send data via contact (iso7816) interface. Contactless interface set by default."),
|
||||||
arg_param_end
|
arg_param_end
|
||||||
};
|
};
|
||||||
CLIExecWithReturn(cmd, argtable, true);
|
CLIExecWithReturn(Cmd, argtable, true);
|
||||||
|
|
||||||
bool activateField = arg_get_lit(1);
|
bool activateField = arg_get_lit(1);
|
||||||
bool showAPDU = arg_get_lit(2);
|
bool showAPDU = arg_get_lit(2);
|
||||||
|
@ -1346,7 +1346,7 @@ int CmdEMVExec(const char *cmd) {
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
int CmdEMVScan(const char *cmd) {
|
int CmdEMVScan(const char *Cmd) {
|
||||||
uint8_t AID[APDU_AID_LEN] = {0};
|
uint8_t AID[APDU_AID_LEN] = {0};
|
||||||
size_t AIDlen = 0;
|
size_t AIDlen = 0;
|
||||||
uint8_t buf[APDU_RES_LEN] = {0};
|
uint8_t buf[APDU_RES_LEN] = {0};
|
||||||
|
@ -1378,7 +1378,7 @@ int CmdEMVScan(const char *cmd) {
|
||||||
arg_str1(NULL, NULL, "output.json", "JSON output file name"),
|
arg_str1(NULL, NULL, "output.json", "JSON output file name"),
|
||||||
arg_param_end
|
arg_param_end
|
||||||
};
|
};
|
||||||
CLIExecWithReturn(cmd, argtable, true);
|
CLIExecWithReturn(Cmd, argtable, true);
|
||||||
|
|
||||||
bool showAPDU = arg_get_lit(1);
|
bool showAPDU = arg_get_lit(1);
|
||||||
bool decodeTLV = arg_get_lit(2);
|
bool decodeTLV = arg_get_lit(2);
|
||||||
|
@ -1701,14 +1701,16 @@ int CmdEMVScan(const char *cmd) {
|
||||||
}
|
}
|
||||||
|
|
||||||
int CmdEMVList(const char *Cmd) {
|
int CmdEMVList(const char *Cmd) {
|
||||||
|
(void)Cmd; // Cmd is not used so far
|
||||||
return CmdTraceList("7816");
|
return CmdTraceList("7816");
|
||||||
}
|
}
|
||||||
|
|
||||||
int CmdEMVTest(const char *cmd) {
|
int CmdEMVTest(const char *Cmd) {
|
||||||
|
(void)Cmd; // Cmd is not used so far
|
||||||
return ExecuteCryptoTests(true);
|
return ExecuteCryptoTests(true);
|
||||||
}
|
}
|
||||||
|
|
||||||
int CmdEMVRoca(const char *cmd) {
|
int CmdEMVRoca(const char *Cmd) {
|
||||||
uint8_t AID[APDU_AID_LEN] = {0};
|
uint8_t AID[APDU_AID_LEN] = {0};
|
||||||
size_t AIDlen = 0;
|
size_t AIDlen = 0;
|
||||||
uint8_t buf[APDU_RES_LEN] = {0};
|
uint8_t buf[APDU_RES_LEN] = {0};
|
||||||
|
@ -1729,7 +1731,7 @@ int CmdEMVRoca(const char *cmd) {
|
||||||
arg_lit0("wW", "wired", "Send data via contact (iso7816) interface. Contactless interface set by default."),
|
arg_lit0("wW", "wired", "Send data via contact (iso7816) interface. Contactless interface set by default."),
|
||||||
arg_param_end
|
arg_param_end
|
||||||
};
|
};
|
||||||
CLIExecWithReturn(cmd, argtable, true);
|
CLIExecWithReturn(Cmd, argtable, true);
|
||||||
|
|
||||||
EMVCommandChannel channel = ECC_CONTACTLESS;
|
EMVCommandChannel channel = ECC_CONTACTLESS;
|
||||||
if (arg_get_lit(1))
|
if (arg_get_lit(1))
|
||||||
|
|
|
@ -29,10 +29,10 @@
|
||||||
|
|
||||||
int CmdEMV(const char *Cmd);
|
int CmdEMV(const char *Cmd);
|
||||||
|
|
||||||
int CmdEMVSelect(const char *cmd);
|
int CmdEMVSelect(const char *Cmd);
|
||||||
int CmdEMVSearch(const char *cmd);
|
int CmdEMVSearch(const char *Cmd);
|
||||||
int CmdEMVPPSE(const char *cmd);
|
int CmdEMVPPSE(const char *Cmd);
|
||||||
int CmdEMVExec(const char *cmd);
|
int CmdEMVExec(const char *Cmd);
|
||||||
int CmdEMVGetrng(const char *Cmd);
|
int CmdEMVGetrng(const char *Cmd);
|
||||||
int CmdEMVList(const char *Cmd);
|
int CmdEMVList(const char *Cmd);
|
||||||
int CmdEMVRoca(const char *Cmd);
|
int CmdEMVRoca(const char *Cmd);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue