2010-02-21 08:47:22 +08:00
|
|
|
//-----------------------------------------------------------------------------
|
|
|
|
// Copyright (C) 2010 iZsh <izsh at fail0verflow.com>
|
2018-02-15 06:03:39 +08:00
|
|
|
// Merlok - 2017
|
2010-02-21 08:47:22 +08:00
|
|
|
//
|
|
|
|
// This code is licensed to you under the terms of the GNU GPL, version 2 or,
|
|
|
|
// at your option, any later version. See the LICENSE.txt file for the text of
|
|
|
|
// the license.
|
|
|
|
//-----------------------------------------------------------------------------
|
|
|
|
// High frequency commands
|
|
|
|
//-----------------------------------------------------------------------------
|
Client cleanup and restructuring. Stage 1...
Next Step is refactoring some of the giant functions which are
just copy/paste of some other ones with just a few line changes,
removing unnecessary 'goto' etc.
The MS Windows version is broken with this commit but will be fixed
soon. Everything can't be done all at once :P
The commands are now hierarchical, for example:
"hf 14a read" vs. "hf 14b read".
You can also request help:
"hf help", "data help", "hf 15 help" etc.
Indents are now space-based, not tab-based anymore. Hopefully
no one will be trolling about it, considering the suicide-prone work
being done here ;)
client/cmdhw.c, client/proxusb.c, client/cmdhw.h, client/proxusb.h,
client/cmdmain.c, client/cmdlfhid.c, client/cmdmain.h, client/cmdlfhid.h,
client/data.c, client/data.h, client/cmdhf.c, client/cmdlf.c,
client/cmdhf.h, client/cmdhf15.c, client/cmdhf14b.c, client/cmdlf.h,
client/cmdhf15.h, client/cmdhf14b.h, client/cmddata.c, client/cmddata.h,
client/ui.c, client/cmdparser.c, client/cmdlfti.c, client/ui.h,
client/cmdlfem4x.c, client/cmdparser.h, client/cmdlfti.h, client/cmdlfem4x.h,
client/graph.c, client/graph.h, client/cmdhf14a.c, client/cmdhf14a.h,
client/cmdhflegic.c, client/cmdhflegic.c: New files.
client/cli.c, client/flasher.c, client/snooper.c, client/proxmark3.c,
client/proxmark3.h, client/Makefile: Update accordingly.
client/flash.h, client/flash.c, client/proxgui.cpp: Cosmetic changes.
client/translate.h, client/command.c, client/gui.c,
client/usb.c, client/prox.h: Remove.
include/usb_cmd.h (CMD_ACQUIRE_RAW_ADC_SAMPLES_ISO_14443_SIM): Remove dead cmd.
common/crc16.h: New file.
common/crc16.c: Modify accordingly.
common/iso14443crc.h: New file.
common/iso14443_crc.c: Rename to
common/iso14443crc.c: and modify accordingly.
armsrc/lfops.c, armsrc/iso14443.c,
armsrc/iso14443a.c: include .h files from
the common directory instead of including the c files.
common/Makefile.common, armsrc/Makefile: Modify accordingly.
2010-02-04 09:27:07 +08:00
|
|
|
#include "cmdhf.h"
|
|
|
|
|
|
|
|
static int CmdHelp(const char *Cmd);
|
|
|
|
|
2019-04-10 19:06:05 +08:00
|
|
|
static int usage_hf_search() {
|
2019-03-10 06:35:06 +08:00
|
|
|
PrintAndLogEx(NORMAL, "Usage: hf search");
|
|
|
|
PrintAndLogEx(NORMAL, "Will try to find a HF read out of the unknown tag. Stops when found.");
|
|
|
|
PrintAndLogEx(NORMAL, "Options:");
|
2019-03-11 22:08:34 +08:00
|
|
|
PrintAndLogEx(NORMAL, " h - This help");
|
2019-03-10 06:35:06 +08:00
|
|
|
PrintAndLogEx(NORMAL, "");
|
|
|
|
return 0;
|
2015-01-17 05:41:19 +08:00
|
|
|
}
|
2019-05-14 06:36:58 +08:00
|
|
|
|
2019-04-10 19:06:05 +08:00
|
|
|
static int usage_hf_sniff() {
|
2019-03-12 20:15:39 +08:00
|
|
|
PrintAndLogEx(NORMAL, "The high frequence sniffer will assign all available memory on device for sniffed data");
|
2019-03-11 22:08:34 +08:00
|
|
|
PrintAndLogEx(NORMAL, "Use " _YELLOW_("'data samples'")" command to download from device, and " _YELLOW_("'data plot'")" to look at it");
|
|
|
|
PrintAndLogEx(NORMAL, "Press button to quit the sniffing.\n");
|
|
|
|
PrintAndLogEx(NORMAL, "Usage: hf sniff <skip pairs> <skip triggers>");
|
2019-03-10 06:35:06 +08:00
|
|
|
PrintAndLogEx(NORMAL, "Options:");
|
|
|
|
PrintAndLogEx(NORMAL, " h - This help");
|
|
|
|
PrintAndLogEx(NORMAL, " <skip pairs> - skip sample pairs");
|
|
|
|
PrintAndLogEx(NORMAL, " <skip triggers> - skip number of triggers");
|
|
|
|
PrintAndLogEx(NORMAL, "");
|
|
|
|
PrintAndLogEx(NORMAL, "Examples:");
|
2019-03-11 21:55:02 +08:00
|
|
|
PrintAndLogEx(NORMAL, " hf sniff");
|
|
|
|
PrintAndLogEx(NORMAL, " hf sniff 1000 0");
|
2019-03-10 06:35:06 +08:00
|
|
|
return 0;
|
2017-09-05 00:38:57 +08:00
|
|
|
}
|
2015-01-05 04:22:54 +08:00
|
|
|
|
2019-05-14 06:36:58 +08:00
|
|
|
static int usage_hf_tune() {
|
|
|
|
PrintAndLogEx(NORMAL, "Usage: hf tune [<iter>]");
|
|
|
|
PrintAndLogEx(NORMAL, "Continuously measure HF antenna tuning.");
|
2019-07-11 19:01:34 +08:00
|
|
|
PrintAndLogEx(NORMAL, "Press button or Enter to interrupt.");
|
2019-05-14 06:36:58 +08:00
|
|
|
PrintAndLogEx(NORMAL, "Options:");
|
|
|
|
PrintAndLogEx(NORMAL, " <iter> - number of iterations (default: infinite)");
|
|
|
|
PrintAndLogEx(NORMAL, "");
|
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
2019-03-10 18:20:22 +08:00
|
|
|
int CmdHFSearch(const char *Cmd) {
|
2015-11-02 02:49:08 +08:00
|
|
|
|
2019-03-10 06:35:06 +08:00
|
|
|
char cmdp = tolower(param_getchar(Cmd, 0));
|
|
|
|
if (cmdp == 'h') return usage_hf_search();
|
2019-03-09 15:59:13 +08:00
|
|
|
|
2019-03-11 22:08:34 +08:00
|
|
|
PrintAndLogEx(INFO, "Checking for known tags...\n");
|
2019-03-12 06:12:31 +08:00
|
|
|
|
2019-04-13 00:41:14 +08:00
|
|
|
if (infoHF14A(false, false) > 0) {
|
2019-03-11 21:55:02 +08:00
|
|
|
PrintAndLogEx(SUCCESS, "\nValid " _GREEN_("ISO14443-A tag") " found\n");
|
2019-04-13 00:41:14 +08:00
|
|
|
return 1;
|
2019-03-10 06:35:06 +08:00
|
|
|
}
|
2019-04-13 00:41:14 +08:00
|
|
|
if (readHF15Uid(false) == 1) {
|
2019-03-11 21:55:02 +08:00
|
|
|
PrintAndLogEx(SUCCESS, "\nValid " _GREEN_("ISO15693 tag") " found\n");
|
2019-04-13 00:41:14 +08:00
|
|
|
return 1;
|
2019-03-10 06:35:06 +08:00
|
|
|
}
|
2019-04-13 00:41:14 +08:00
|
|
|
if (readLegicUid(false) == 0) {
|
2019-03-11 21:55:02 +08:00
|
|
|
PrintAndLogEx(SUCCESS, "\nValid " _GREEN_("LEGIC tag") " found\n");
|
2019-03-10 06:35:06 +08:00
|
|
|
return 1;
|
|
|
|
}
|
2019-04-13 00:41:14 +08:00
|
|
|
if (readTopazUid() == 0) {
|
2019-03-11 21:55:02 +08:00
|
|
|
PrintAndLogEx(SUCCESS, "\nValid " _GREEN_("Topaz tag") " found\n");
|
2019-03-10 06:35:06 +08:00
|
|
|
return 1;
|
|
|
|
}
|
|
|
|
// 14b and iclass is the longest test (put last)
|
2019-04-13 00:41:14 +08:00
|
|
|
if (readHF14B(false) == 1) {
|
2019-03-11 21:55:02 +08:00
|
|
|
PrintAndLogEx(SUCCESS, "\nValid " _GREEN_("ISO14443-B tag") " found\n");
|
2019-04-13 00:41:14 +08:00
|
|
|
return 1;
|
2019-03-10 06:35:06 +08:00
|
|
|
}
|
2019-04-13 00:41:14 +08:00
|
|
|
if (readIclass(false, false) == 1) {
|
2019-03-11 21:55:02 +08:00
|
|
|
PrintAndLogEx(SUCCESS, "\nValid " _GREEN_("iClass tag / PicoPass tag") " found\n");
|
2019-04-13 00:41:14 +08:00
|
|
|
return 1;
|
2019-03-10 06:35:06 +08:00
|
|
|
}
|
2017-10-10 20:59:58 +08:00
|
|
|
|
2019-03-10 06:35:06 +08:00
|
|
|
/*
|
|
|
|
ans = CmdHFFelicaReader("s");
|
|
|
|
if (ans) {
|
2019-03-11 21:55:02 +08:00
|
|
|
PrintAndLogEx(NORMAL, "\nValid " _GREEN_("ISO18092 / FeliCa tag") " found\n");
|
2019-03-10 06:35:06 +08:00
|
|
|
return ans;
|
|
|
|
}
|
|
|
|
*/
|
2019-03-09 15:59:13 +08:00
|
|
|
|
2019-03-10 06:35:06 +08:00
|
|
|
PrintAndLogEx(FAILED, "\nno known/supported 13.56 MHz tags found\n");
|
|
|
|
return 0;
|
2015-05-13 00:57:47 +08:00
|
|
|
}
|
Client cleanup and restructuring. Stage 1...
Next Step is refactoring some of the giant functions which are
just copy/paste of some other ones with just a few line changes,
removing unnecessary 'goto' etc.
The MS Windows version is broken with this commit but will be fixed
soon. Everything can't be done all at once :P
The commands are now hierarchical, for example:
"hf 14a read" vs. "hf 14b read".
You can also request help:
"hf help", "data help", "hf 15 help" etc.
Indents are now space-based, not tab-based anymore. Hopefully
no one will be trolling about it, considering the suicide-prone work
being done here ;)
client/cmdhw.c, client/proxusb.c, client/cmdhw.h, client/proxusb.h,
client/cmdmain.c, client/cmdlfhid.c, client/cmdmain.h, client/cmdlfhid.h,
client/data.c, client/data.h, client/cmdhf.c, client/cmdlf.c,
client/cmdhf.h, client/cmdhf15.c, client/cmdhf14b.c, client/cmdlf.h,
client/cmdhf15.h, client/cmdhf14b.h, client/cmddata.c, client/cmddata.h,
client/ui.c, client/cmdparser.c, client/cmdlfti.c, client/ui.h,
client/cmdlfem4x.c, client/cmdparser.h, client/cmdlfti.h, client/cmdlfem4x.h,
client/graph.c, client/graph.h, client/cmdhf14a.c, client/cmdhf14a.h,
client/cmdhflegic.c, client/cmdhflegic.c: New files.
client/cli.c, client/flasher.c, client/snooper.c, client/proxmark3.c,
client/proxmark3.h, client/Makefile: Update accordingly.
client/flash.h, client/flash.c, client/proxgui.cpp: Cosmetic changes.
client/translate.h, client/command.c, client/gui.c,
client/usb.c, client/prox.h: Remove.
include/usb_cmd.h (CMD_ACQUIRE_RAW_ADC_SAMPLES_ISO_14443_SIM): Remove dead cmd.
common/crc16.h: New file.
common/crc16.c: Modify accordingly.
common/iso14443crc.h: New file.
common/iso14443_crc.c: Rename to
common/iso14443crc.c: and modify accordingly.
armsrc/lfops.c, armsrc/iso14443.c,
armsrc/iso14443a.c: include .h files from
the common directory instead of including the c files.
common/Makefile.common, armsrc/Makefile: Modify accordingly.
2010-02-04 09:27:07 +08:00
|
|
|
|
2019-03-10 18:20:22 +08:00
|
|
|
int CmdHFTune(const char *Cmd) {
|
2019-05-14 06:36:58 +08:00
|
|
|
char cmdp = tolower(param_getchar(Cmd, 0));
|
|
|
|
if (cmdp == 'h') return usage_hf_tune();
|
|
|
|
int iter = param_get32ex(Cmd, 0, 0, 10);
|
|
|
|
|
2019-05-03 14:40:21 +08:00
|
|
|
PacketResponseNG resp;
|
2019-07-11 19:01:34 +08:00
|
|
|
PrintAndLogEx(SUCCESS, "Measuring HF antenna, click button or press Enter to exit");
|
2019-05-14 06:36:58 +08:00
|
|
|
clearCommandBuffer();
|
2019-05-14 14:25:26 +08:00
|
|
|
uint8_t mode[] = {1};
|
|
|
|
SendCommandNG(CMD_MEASURE_ANTENNA_TUNING_HF, mode, sizeof(mode));
|
|
|
|
if (!WaitForResponseTimeout(CMD_MEASURE_ANTENNA_TUNING_HF, &resp, 1000)) {
|
|
|
|
PrintAndLogEx(WARNING, "Timeout while waiting for Proxmark HF initialization, aborting");
|
2019-05-14 06:36:58 +08:00
|
|
|
return PM3_ETIMEOUT;
|
|
|
|
}
|
2019-05-14 14:25:26 +08:00
|
|
|
mode[0] = 2;
|
|
|
|
// loop forever (till button pressed) if iter = 0 (default)
|
2019-05-14 23:42:17 +08:00
|
|
|
for (uint8_t i = 0; iter == 0 || i < iter; i++) {
|
2019-07-11 19:01:34 +08:00
|
|
|
if (kbd_enter_pressed()) { // abort by keyboard press
|
2019-05-14 14:40:16 +08:00
|
|
|
break;
|
|
|
|
}
|
2019-05-14 14:25:26 +08:00
|
|
|
SendCommandNG(CMD_MEASURE_ANTENNA_TUNING_HF, mode, sizeof(mode));
|
|
|
|
if (!WaitForResponseTimeout(CMD_MEASURE_ANTENNA_TUNING_HF, &resp, 1000)) {
|
2019-05-14 06:36:58 +08:00
|
|
|
PrintAndLogEx(WARNING, "Timeout while waiting for Proxmark HF measure, aborting");
|
|
|
|
return PM3_ETIMEOUT;
|
|
|
|
}
|
2019-05-14 14:25:26 +08:00
|
|
|
if ((resp.status == PM3_EOPABORTED) || (resp.length != sizeof(uint16_t)))
|
2019-05-14 06:36:58 +08:00
|
|
|
break;
|
|
|
|
uint16_t volt = resp.data.asDwords[0];
|
|
|
|
PrintAndLogEx(INPLACE, "%u mV / %5u V", volt, (uint16_t)(volt / 1000));
|
|
|
|
}
|
2019-05-14 14:25:26 +08:00
|
|
|
mode[0] = 3;
|
|
|
|
SendCommandNG(CMD_MEASURE_ANTENNA_TUNING_HF, mode, sizeof(mode));
|
|
|
|
if (!WaitForResponseTimeout(CMD_MEASURE_ANTENNA_TUNING_HF, &resp, 1000)) {
|
|
|
|
PrintAndLogEx(WARNING, "Timeout while waiting for Proxmark HF shutdown, aborting");
|
2019-05-03 14:40:21 +08:00
|
|
|
return PM3_ETIMEOUT;
|
|
|
|
}
|
2019-05-14 14:25:26 +08:00
|
|
|
PrintAndLogEx(NORMAL, "");
|
2019-05-14 06:36:58 +08:00
|
|
|
PrintAndLogEx(SUCCESS, "Done.");
|
2019-05-03 14:40:21 +08:00
|
|
|
return PM3_SUCCESS;
|
2018-02-15 06:03:39 +08:00
|
|
|
}
|
|
|
|
|
2019-03-11 21:55:02 +08:00
|
|
|
int CmdHFSniff(const char *Cmd) {
|
2019-03-10 06:35:06 +08:00
|
|
|
char cmdp = tolower(param_getchar(Cmd, 0));
|
2019-03-11 21:55:02 +08:00
|
|
|
if (cmdp == 'h') return usage_hf_sniff();
|
2019-03-09 15:59:13 +08:00
|
|
|
|
2019-03-10 06:35:06 +08:00
|
|
|
int skippairs = param_get32ex(Cmd, 0, 0, 10);
|
|
|
|
int skiptriggers = param_get32ex(Cmd, 1, 0, 10);
|
2019-03-09 15:59:13 +08:00
|
|
|
|
2019-03-10 06:35:06 +08:00
|
|
|
clearCommandBuffer();
|
2019-05-08 01:51:33 +08:00
|
|
|
SendCommandMIX(CMD_HF_SNIFFER, skippairs, skiptriggers, 0, NULL, 0);
|
2019-03-10 06:35:06 +08:00
|
|
|
return 0;
|
2015-10-28 04:47:21 +08:00
|
|
|
}
|
|
|
|
|
2016-03-06 17:35:25 +08:00
|
|
|
static command_t CommandTable[] = {
|
2019-05-02 02:48:15 +08:00
|
|
|
{"help", CmdHelp, AlwaysAvailable, "This help"},
|
|
|
|
{"14a", CmdHF14A, AlwaysAvailable, "{ ISO14443A RFIDs... }"},
|
|
|
|
{"14b", CmdHF14B, AlwaysAvailable, "{ ISO14443B RFIDs... }"},
|
|
|
|
{"15", CmdHF15, AlwaysAvailable, "{ ISO15693 RFIDs... }"},
|
|
|
|
{"epa", CmdHFEPA, AlwaysAvailable, "{ German Identification Card... }"},
|
|
|
|
{"felica", CmdHFFelica, AlwaysAvailable, "{ ISO18092 / Felica RFIDs... }"},
|
|
|
|
{"legic", CmdHFLegic, AlwaysAvailable, "{ LEGIC RFIDs... }"},
|
|
|
|
{"iclass", CmdHFiClass, AlwaysAvailable, "{ ICLASS RFIDs... }"},
|
|
|
|
{"mf", CmdHFMF, AlwaysAvailable, "{ MIFARE RFIDs... }"},
|
|
|
|
{"mfp", CmdHFMFP, AlwaysAvailable, "{ MIFARE Plus RFIDs... }"},
|
|
|
|
{"mfu", CmdHFMFUltra, AlwaysAvailable, "{ MIFARE Ultralight RFIDs... }"},
|
|
|
|
{"mfdes", CmdHFMFDes, AlwaysAvailable, "{ MIFARE Desfire RFIDs... }"},
|
|
|
|
{"topaz", CmdHFTopaz, AlwaysAvailable, "{ TOPAZ (NFC Type 1) RFIDs... }"},
|
|
|
|
{"fido", CmdHFFido, AlwaysAvailable, "{ FIDO and FIDO2 authenticators... }"},
|
2019-05-02 16:42:02 +08:00
|
|
|
{"list", CmdTraceList, AlwaysAvailable, "List protocol data in trace buffer"},
|
2019-05-02 02:48:15 +08:00
|
|
|
{"tune", CmdHFTune, IfPm3Present, "Continuously measure HF antenna tuning"},
|
|
|
|
{"search", CmdHFSearch, AlwaysAvailable, "Search for known HF tags [preliminary]"},
|
|
|
|
{"sniff", CmdHFSniff, IfPm3Hfsniff, "<samples to skip (10000)> <triggers to skip (1)> Generic HF Sniff"},
|
|
|
|
{NULL, NULL, NULL, NULL}
|
Client cleanup and restructuring. Stage 1...
Next Step is refactoring some of the giant functions which are
just copy/paste of some other ones with just a few line changes,
removing unnecessary 'goto' etc.
The MS Windows version is broken with this commit but will be fixed
soon. Everything can't be done all at once :P
The commands are now hierarchical, for example:
"hf 14a read" vs. "hf 14b read".
You can also request help:
"hf help", "data help", "hf 15 help" etc.
Indents are now space-based, not tab-based anymore. Hopefully
no one will be trolling about it, considering the suicide-prone work
being done here ;)
client/cmdhw.c, client/proxusb.c, client/cmdhw.h, client/proxusb.h,
client/cmdmain.c, client/cmdlfhid.c, client/cmdmain.h, client/cmdlfhid.h,
client/data.c, client/data.h, client/cmdhf.c, client/cmdlf.c,
client/cmdhf.h, client/cmdhf15.c, client/cmdhf14b.c, client/cmdlf.h,
client/cmdhf15.h, client/cmdhf14b.h, client/cmddata.c, client/cmddata.h,
client/ui.c, client/cmdparser.c, client/cmdlfti.c, client/ui.h,
client/cmdlfem4x.c, client/cmdparser.h, client/cmdlfti.h, client/cmdlfem4x.h,
client/graph.c, client/graph.h, client/cmdhf14a.c, client/cmdhf14a.h,
client/cmdhflegic.c, client/cmdhflegic.c: New files.
client/cli.c, client/flasher.c, client/snooper.c, client/proxmark3.c,
client/proxmark3.h, client/Makefile: Update accordingly.
client/flash.h, client/flash.c, client/proxgui.cpp: Cosmetic changes.
client/translate.h, client/command.c, client/gui.c,
client/usb.c, client/prox.h: Remove.
include/usb_cmd.h (CMD_ACQUIRE_RAW_ADC_SAMPLES_ISO_14443_SIM): Remove dead cmd.
common/crc16.h: New file.
common/crc16.c: Modify accordingly.
common/iso14443crc.h: New file.
common/iso14443_crc.c: Rename to
common/iso14443crc.c: and modify accordingly.
armsrc/lfops.c, armsrc/iso14443.c,
armsrc/iso14443a.c: include .h files from
the common directory instead of including the c files.
common/Makefile.common, armsrc/Makefile: Modify accordingly.
2010-02-04 09:27:07 +08:00
|
|
|
};
|
|
|
|
|
2019-03-10 18:20:22 +08:00
|
|
|
int CmdHF(const char *Cmd) {
|
2019-03-10 06:35:06 +08:00
|
|
|
clearCommandBuffer();
|
2019-04-19 06:47:51 +08:00
|
|
|
return CmdsParse(CommandTable, Cmd);
|
Client cleanup and restructuring. Stage 1...
Next Step is refactoring some of the giant functions which are
just copy/paste of some other ones with just a few line changes,
removing unnecessary 'goto' etc.
The MS Windows version is broken with this commit but will be fixed
soon. Everything can't be done all at once :P
The commands are now hierarchical, for example:
"hf 14a read" vs. "hf 14b read".
You can also request help:
"hf help", "data help", "hf 15 help" etc.
Indents are now space-based, not tab-based anymore. Hopefully
no one will be trolling about it, considering the suicide-prone work
being done here ;)
client/cmdhw.c, client/proxusb.c, client/cmdhw.h, client/proxusb.h,
client/cmdmain.c, client/cmdlfhid.c, client/cmdmain.h, client/cmdlfhid.h,
client/data.c, client/data.h, client/cmdhf.c, client/cmdlf.c,
client/cmdhf.h, client/cmdhf15.c, client/cmdhf14b.c, client/cmdlf.h,
client/cmdhf15.h, client/cmdhf14b.h, client/cmddata.c, client/cmddata.h,
client/ui.c, client/cmdparser.c, client/cmdlfti.c, client/ui.h,
client/cmdlfem4x.c, client/cmdparser.h, client/cmdlfti.h, client/cmdlfem4x.h,
client/graph.c, client/graph.h, client/cmdhf14a.c, client/cmdhf14a.h,
client/cmdhflegic.c, client/cmdhflegic.c: New files.
client/cli.c, client/flasher.c, client/snooper.c, client/proxmark3.c,
client/proxmark3.h, client/Makefile: Update accordingly.
client/flash.h, client/flash.c, client/proxgui.cpp: Cosmetic changes.
client/translate.h, client/command.c, client/gui.c,
client/usb.c, client/prox.h: Remove.
include/usb_cmd.h (CMD_ACQUIRE_RAW_ADC_SAMPLES_ISO_14443_SIM): Remove dead cmd.
common/crc16.h: New file.
common/crc16.c: Modify accordingly.
common/iso14443crc.h: New file.
common/iso14443_crc.c: Rename to
common/iso14443crc.c: and modify accordingly.
armsrc/lfops.c, armsrc/iso14443.c,
armsrc/iso14443a.c: include .h files from
the common directory instead of including the c files.
common/Makefile.common, armsrc/Makefile: Modify accordingly.
2010-02-04 09:27:07 +08:00
|
|
|
}
|
|
|
|
|
2019-03-10 18:20:22 +08:00
|
|
|
int CmdHelp(const char *Cmd) {
|
2019-04-10 18:23:40 +08:00
|
|
|
(void)Cmd; // Cmd is not used so far
|
2019-03-10 06:35:06 +08:00
|
|
|
CmdsHelp(CommandTable);
|
|
|
|
return 0;
|
Client cleanup and restructuring. Stage 1...
Next Step is refactoring some of the giant functions which are
just copy/paste of some other ones with just a few line changes,
removing unnecessary 'goto' etc.
The MS Windows version is broken with this commit but will be fixed
soon. Everything can't be done all at once :P
The commands are now hierarchical, for example:
"hf 14a read" vs. "hf 14b read".
You can also request help:
"hf help", "data help", "hf 15 help" etc.
Indents are now space-based, not tab-based anymore. Hopefully
no one will be trolling about it, considering the suicide-prone work
being done here ;)
client/cmdhw.c, client/proxusb.c, client/cmdhw.h, client/proxusb.h,
client/cmdmain.c, client/cmdlfhid.c, client/cmdmain.h, client/cmdlfhid.h,
client/data.c, client/data.h, client/cmdhf.c, client/cmdlf.c,
client/cmdhf.h, client/cmdhf15.c, client/cmdhf14b.c, client/cmdlf.h,
client/cmdhf15.h, client/cmdhf14b.h, client/cmddata.c, client/cmddata.h,
client/ui.c, client/cmdparser.c, client/cmdlfti.c, client/ui.h,
client/cmdlfem4x.c, client/cmdparser.h, client/cmdlfti.h, client/cmdlfem4x.h,
client/graph.c, client/graph.h, client/cmdhf14a.c, client/cmdhf14a.h,
client/cmdhflegic.c, client/cmdhflegic.c: New files.
client/cli.c, client/flasher.c, client/snooper.c, client/proxmark3.c,
client/proxmark3.h, client/Makefile: Update accordingly.
client/flash.h, client/flash.c, client/proxgui.cpp: Cosmetic changes.
client/translate.h, client/command.c, client/gui.c,
client/usb.c, client/prox.h: Remove.
include/usb_cmd.h (CMD_ACQUIRE_RAW_ADC_SAMPLES_ISO_14443_SIM): Remove dead cmd.
common/crc16.h: New file.
common/crc16.c: Modify accordingly.
common/iso14443crc.h: New file.
common/iso14443_crc.c: Rename to
common/iso14443crc.c: and modify accordingly.
armsrc/lfops.c, armsrc/iso14443.c,
armsrc/iso14443a.c: include .h files from
the common directory instead of including the c files.
common/Makefile.common, armsrc/Makefile: Modify accordingly.
2010-02-04 09:27:07 +08:00
|
|
|
}
|