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 Legic commands |
9 | //----------------------------------------------------------------------------- |
10 | |
7fe9b0b7 |
11 | #ifndef CMDHFLEGIC_H__ |
12 | #define CMDHFLEGIC_H__ |
13 | |
3e134b4c |
14 | #include <stdio.h> |
15 | #include <string.h> |
16 | #include "proxmark3.h" |
17 | #include "data.h" |
18 | #include "ui.h" |
19 | #include "cmdparser.h" |
20 | #include "cmdmain.h" |
21 | #include "util.h" |
22 | #include "crc.h" |
ad5bc8cc |
23 | #include "legic_prng.h" |
a3994421 |
24 | #include "legic.h" // legic_card_select_t struct |
5b9fb6f4 |
25 | #include "cmdhf.h" // "hf list" |
3e134b4c |
26 | |
7fe9b0b7 |
27 | int CmdHFLegic(const char *Cmd); |
28 | |
9015ae0f |
29 | int CmdLegicInfo(const char *Cmd); |
00271f77 |
30 | int CmdLegicRdmem(const char *Cmd); |
3612a8a8 |
31 | int CmdLegicLoad(const char *Cmd); |
3612a8a8 |
32 | int CmdLegicRfSim(const char *Cmd); |
33 | int CmdLegicRfWrite(const char *Cmd); |
f6e01a34 |
34 | int CmdLegicCalcCrc(const char *Cmd); |
633d0686 |
35 | int CmdLegicDump(const char *Cmd); |
5b9fb6f4 |
36 | int CmdLegicRestore(const char *Cmd); |
9015ae0f |
37 | int CmdLegicReader(const char *Cmd); |
0e8cabed |
38 | int CmdLegicELoad(const char *Cmd); |
39 | int CmdLegicESave(const char *Cmd); |
5b9fb6f4 |
40 | int CmdLegicList(const char *Cmd); |
2a1a6aa3 |
41 | int CmdLegicWipe(const char *Cmd); |
0e8cabed |
42 | |
9015ae0f |
43 | int HFLegicReader(const char *Cmd, bool verbose); |
44 | int legic_print_type(uint32_t tagtype, uint8_t spaces); |
45 | int legic_get_type(legic_card_select_t *card); |
0e8cabed |
46 | void legic_chk_iv(uint32_t *iv); |
47 | void legic_seteml(uint8_t *src, uint32_t offset, uint32_t numofbytes); |
3b920280 |
48 | |
f6e01a34 |
49 | int usage_legic_calccrc(void); |
3e134b4c |
50 | int usage_legic_load(void); |
00271f77 |
51 | int usage_legic_rdmem(void); |
633d0686 |
52 | int usage_legic_sim(void); |
53 | int usage_legic_write(void); |
633d0686 |
54 | int usage_legic_reader(void); |
3e750be3 |
55 | int usage_legic_info(void); |
633d0686 |
56 | int usage_legic_dump(void); |
5b9fb6f4 |
57 | int usage_legic_restore(void); |
1f247f6a |
58 | int usage_legic_wipe(void); |
7fe9b0b7 |
59 | #endif |