]> cvs.zerfleddert.de Git - proxmark3-svn/blame - client/cmdhf.c
small improvements, added new command `hf mf sniff` (there will be cool sniffer)...
[proxmark3-svn] / client / cmdhf.c
CommitLineData
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>
12#include "proxusb.h"
13#include "graph.h"
14#include "ui.h"
15#include "cmdparser.h"
16#include "cmdhf.h"
17#include "cmdhf14a.h"
18#include "cmdhf14b.h"
19#include "cmdhf15.h"
20#include "cmdhflegic.h"
cee5a30d 21#include "cmdhficlass.h"
9ca155ba 22#include "cmdhfmf.h"
7fe9b0b7 23
24static int CmdHelp(const char *Cmd);
25
26int CmdHFTune(const char *Cmd)
27{
28 UsbCommand c={CMD_MEASURE_ANTENNA_TUNING_HF};
29 SendCommand(&c);
30 return 0;
31}
32
33static command_t CommandTable[] =
34{
35 {"help", CmdHelp, 1, "This help"},
37239a7c 36 {"14a", CmdHF14A, 1, "{ ISO14443A RFIDs... }"},
37 {"14b", CmdHF14B, 1, "{ ISO14443B RFIDs... }"},
38 {"15", CmdHF15, 1, "{ ISO15693 RFIDs... }"},
8e220a91 39 {"legic", CmdHFLegic, 0, "{ LEGIC RFIDs... }"},
cee5a30d 40 {"iclass", CmdHFiClass, 1, "{ ICLASS RFIDs... }"},
9ca155ba 41 {"mf", CmdHFMF, 1, "{ MIFARE RFIDs... }"},
c59c3405 42 {"tune", CmdHFTune, 0, "Continuously measure HF antenna tuning"},
7fe9b0b7 43 {NULL, NULL, 0, NULL}
44};
45
46int CmdHF(const char *Cmd)
47{
48 CmdsParse(CommandTable, Cmd);
49 return 0;
50}
51
52int CmdHelp(const char *Cmd)
53{
54 CmdsHelp(CommandTable);
55 return 0;
56}
Impressum, Datenschutz