]>
Commit | Line | Data |
---|---|---|
a553f267 | 1 | //----------------------------------------------------------------------------- |
2 | // Copyright (C) 2010 iZsh <izsh at fail0verflow.com> | |
3 | // | |
4 | // This code is licensed to you under the terms of the GNU GPL, version 2 or, | |
5 | // at your option, any later version. See the LICENSE.txt file for the text of | |
6 | // the license. | |
7 | //----------------------------------------------------------------------------- | |
8 | // High frequency commands | |
9 | //----------------------------------------------------------------------------- | |
10 | ||
7fe9b0b7 | 11 | #include <stdio.h> |
28fdb04f | 12 | //#include "proxusb.h" |
902cb3c0 | 13 | #include "proxmark3.h" |
7fe9b0b7 | 14 | #include "graph.h" |
15 | #include "ui.h" | |
16 | #include "cmdparser.h" | |
17 | #include "cmdhf.h" | |
18 | #include "cmdhf14a.h" | |
19 | #include "cmdhf14b.h" | |
20 | #include "cmdhf15.h" | |
5acd09bd | 21 | #include "cmdhfepa.h" |
7fe9b0b7 | 22 | #include "cmdhflegic.h" |
cee5a30d | 23 | #include "cmdhficlass.h" |
9ca155ba | 24 | #include "cmdhfmf.h" |
f38a1528 | 25 | #include "cmdhfmfu.h" |
26 | #include "cmdhfmfdes.h" | |
27 | #include "cmdhfdes.h" | |
7fe9b0b7 | 28 | |
29 | static int CmdHelp(const char *Cmd); | |
30 | ||
31 | int CmdHFTune(const char *Cmd) | |
32 | { | |
33 | UsbCommand c={CMD_MEASURE_ANTENNA_TUNING_HF}; | |
34 | SendCommand(&c); | |
35 | return 0; | |
36 | } | |
37 | ||
38 | static command_t CommandTable[] = | |
39 | { | |
40 | {"help", CmdHelp, 1, "This help"}, | |
37239a7c | 41 | {"14a", CmdHF14A, 1, "{ ISO14443A RFIDs... }"}, |
42 | {"14b", CmdHF14B, 1, "{ ISO14443B RFIDs... }"}, | |
43 | {"15", CmdHF15, 1, "{ ISO15693 RFIDs... }"}, | |
5acd09bd | 44 | {"epa", CmdHFEPA, 1, "{ German Identification Card... }"}, |
8e220a91 | 45 | {"legic", CmdHFLegic, 0, "{ LEGIC RFIDs... }"}, |
cee5a30d | 46 | {"iclass", CmdHFiClass, 1, "{ ICLASS RFIDs... }"}, |
9ca155ba | 47 | {"mf", CmdHFMF, 1, "{ MIFARE RFIDs... }"}, |
f38a1528 | 48 | {"mfu", CmdHFMFUltra, 1, "{ MIFARE Ultralight RFIDs... }"}, |
49 | {"mfdes", CmdHFMFDes, 1, "{ MIFARE Desfire RFIDs... }"}, | |
50 | {"des", CmdHFDES, 0, "{ MIFARE DESfire}"}, | |
c59c3405 | 51 | {"tune", CmdHFTune, 0, "Continuously measure HF antenna tuning"}, |
7fe9b0b7 | 52 | {NULL, NULL, 0, NULL} |
53 | }; | |
54 | ||
55 | int CmdHF(const char *Cmd) | |
56 | { | |
57 | CmdsParse(CommandTable, Cmd); | |
58 | return 0; | |
59 | } | |
60 | ||
61 | int CmdHelp(const char *Cmd) | |
62 | { | |
63 | CmdsHelp(CommandTable); | |
64 | return 0; | |
65 | } |