]> git.zerfleddert.de Git - proxmark3-svn/blob - client/cmdhftopaz.c
d747ed054fccbabc0dbe918f44953a8f5c2bc1c7
[proxmark3-svn] / client / cmdhftopaz.c
1 //-----------------------------------------------------------------------------
2 // Copyright (C) 2015 Piwi
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 Topaz (NFC Type 1) commands
9 //-----------------------------------------------------------------------------
10
11 #include <stdio.h>
12 #include <stdlib.h>
13 #include <string.h>
14 #include <unistd.h>
15 #include "cmdmain.h"
16 #include "cmdparser.h"
17 #include "cmdhftopaz.h"
18 #include "cmdhf14a.h"
19 #include "ui.h"
20
21 int CmdHFTopazReader(const char *Cmd)
22 {
23 PrintAndLog("not yet implemented");
24 return 0;
25 }
26
27
28 int CmdHFTopazSim(const char *Cmd)
29 {
30 PrintAndLog("not yet implemented");
31 return 0;
32 }
33
34
35 int CmdHFTopazCmdRaw(const char *Cmd)
36 {
37 PrintAndLog("not yet implemented");
38 return 0;
39 }
40
41
42 static int CmdHelp(const char *Cmd);
43
44
45 static command_t CommandTable[] =
46 {
47 {"help", CmdHelp, 1, "This help"},
48 {"reader", CmdHFTopazReader, 0, "Act like a Topaz reader"},
49 {"sim", CmdHFTopazSim, 0, "<UID> -- Simulate Topaz tag"},
50 {"snoop", CmdHF14ASnoop, 0, "Eavesdrop a Topaz reader-tag communication"},
51 {"raw", CmdHFTopazCmdRaw, 0, "Send raw hex data to tag"},
52 {NULL, NULL, 0, NULL}
53 };
54
55
56 int CmdHFTopaz(const char *Cmd) {
57 // flush
58 WaitForResponseTimeout(CMD_ACK,NULL,100);
59
60 // parse
61 CmdsParse(CommandTable, Cmd);
62 return 0;
63 }
64
65 static int CmdHelp(const char *Cmd)
66 {
67 CmdsHelp(CommandTable);
68 return 0;
69 }
70
71
Impressum, Datenschutz