]>
cvs.zerfleddert.de Git - proxmark3-svn/blob - client/cmdhflegic.h
8d454ac910677f6ff8b815c07e70c38c41398f4f
1 //-----------------------------------------------------------------------------
2 // Copyright (C) 2010 iZsh <izsh at fail0verflow.com>
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
7 //-----------------------------------------------------------------------------
8 // High frequency Legic commands
9 //-----------------------------------------------------------------------------
11 #ifndef CMDHFLEGIC_H__
12 #define CMDHFLEGIC_H__
16 #include "proxmark3.h"
19 #include "cmdparser.h"
23 #include "legic_prng.h"
24 #include "legic.h" // legic_card_select_t struct
25 #include "cmdhf.h" // "hf list"
27 int CmdHFLegic(const char *Cmd
);
29 int CmdLegicInfo(const char *Cmd
);
30 int CmdLegicRdmem(const char *Cmd
);
31 int CmdLegicLoad(const char *Cmd
);
32 int CmdLegicRfSim(const char *Cmd
);
33 int CmdLegicRfWrite(const char *Cmd
);
34 int CmdLegicCalcCrc(const char *Cmd
);
35 int CmdLegicDump(const char *Cmd
);
36 int CmdLegicRestore(const char *Cmd
);
37 int CmdLegicReader(const char *Cmd
);
38 int CmdLegicELoad(const char *Cmd
);
39 int CmdLegicESave(const char *Cmd
);
40 int CmdLegicList(const char *Cmd
);
42 int HFLegicReader(const char *Cmd
, bool verbose
);
43 int legic_print_type(uint32_t tagtype
, uint8_t spaces
);
44 int legic_get_type(legic_card_select_t
*card
);
45 void legic_chk_iv(uint32_t *iv
);
46 void legic_seteml(uint8_t *src
, uint32_t offset
, uint32_t numofbytes
);
48 int usage_legic_calccrc(void);
49 int usage_legic_load(void);
50 int usage_legic_rdmem(void);
51 int usage_legic_sim(void);
52 int usage_legic_write(void);
53 int usage_legic_reader(void);
54 int usage_legic_info(void);
55 int usage_legic_dump(void);
56 int usage_legic_restore(void);