]>
Commit | Line | Data |
---|---|---|
f38a1528 | 1 | #include "cmdhfmf.h" |
99a71418 | 2 | #include "cmdhf14a.h" |
e3ab50ca | 3 | |
0ec548dc | 4 | #ifndef CMDHFMFU_H__ |
5 | #define CMDHFMFU_H__ | |
6 | ||
f38a1528 | 7 | int CmdHF14AMfUWrBl(const char *Cmd); |
8 | int CmdHF14AMfURdBl(const char *Cmd); | |
99a71418 | 9 | |
f38a1528 | 10 | //Crypto Cards |
f38a1528 | 11 | int CmdHF14AMfucAuth(const char *Cmd); |
2b1f4228 | 12 | int CmdHF14AMfucSetPwd(const char *Cmd); |
13 | int CmdHF14AMfucSetUid(const char *Cmd); | |
14 | int CmdHF14AMfuGenDiverseKeys(const char *Cmd); | |
683180cb | 15 | int CmdHF14AMfuPwdGen(const char *Cmd); |
f38a1528 | 16 | |
17 | //general stuff | |
99a71418 | 18 | int CmdHF14AMfUDump(const char *Cmd); |
e7e95088 | 19 | int CmdHF14AMfUInfo(const char *Cmd); |
2b1f4228 | 20 | int CmdHF14AMfUeLoad(const char *Cmd); |
21 | int CmdHF14AMfUSim(const char *Cmd); | |
24344f28 | 22 | |
fff69a1e | 23 | uint32_t GetHF14AMfU_Type(void); |
1fa96198 | 24 | int ul_print_type(uint32_t tagtype, uint8_t spacer); |
98cdd568 | 25 | void ul_switch_off_field(void); |
26 | ||
e7e95088 | 27 | int usage_hf_mfu_info(void); |
2b1f4228 | 28 | int usage_hf_mfu_dump(void); |
fff69a1e | 29 | int usage_hf_mfu_rdbl(void); |
30 | int usage_hf_mfu_wrbl(void); | |
24344f28 | 31 | int usage_hf_mfu_eload(void); |
2b1f4228 | 32 | int usage_hf_mfu_sim(void); |
33 | int usage_hf_mfu_ucauth(void); | |
34 | int usage_hf_mfu_ucsetpwd(void); | |
35 | int usage_hf_mfu_ucsetuid(void); | |
dd79e03a | 36 | int usage_hf_mfu_gendiverse(void); |
683180cb | 37 | int usage_hf_mfu_pwdgen(void); |
a8be77af | 38 | |
f38a1528 | 39 | int CmdHFMFUltra(const char *Cmd); |
98cdd568 | 40 | |
9984b173 | 41 | uint32_t ul_ev1_pwdgenA(uint8_t* uid); |
dd79e03a | 42 | uint32_t ul_ev1_pwdgenA(uint8_t* uid); |
43 | uint32_t ul_ev1_pwdgenC(uint8_t* uid); | |
9984b173 | 44 | |
683180cb | 45 | uint16_t ul_ev1_packgenA(uint8_t* uid); |
46 | uint16_t ul_ev1_packgenA(uint8_t* uid); | |
47 | uint16_t ul_ev1_packgenA(uint8_t* uid); | |
48 | ||
98cdd568 | 49 | typedef enum TAGTYPE_UL { |
05f7accd | 50 | UNKNOWN = 0x000000, |
51 | UL = 0x000001, | |
52 | UL_C = 0x000002, | |
53 | UL_EV1_48 = 0x000004, | |
54 | UL_EV1_128 = 0x000008, | |
55 | NTAG = 0x000010, | |
c7442b76 | 56 | NTAG_203 = 0x000020, |
57 | NTAG_210 = 0x000040, | |
58 | NTAG_212 = 0x000080, | |
05f7accd | 59 | NTAG_213 = 0x000100, |
60 | NTAG_215 = 0x000200, | |
61 | NTAG_216 = 0x000400, | |
62 | MY_D = 0x000800, | |
63 | MY_D_NFC = 0x001000, | |
64 | MY_D_MOVE = 0x002000, | |
65 | MY_D_MOVE_NFC = 0x004000, | |
1c6e7f03 | 66 | MY_D_MOVE_LEAN= 0x008000, |
67 | NTAG_I2C_1K = 0x010000, | |
68 | NTAG_I2C_2K = 0x020000, | |
22e24700 | 69 | FUDAN_UL = 0x040000, |
70 | MAGIC = 0x080000, | |
98cdd568 | 71 | UL_MAGIC = UL | MAGIC, |
72 | UL_C_MAGIC = UL_C | MAGIC, | |
1fa96198 | 73 | UL_ERROR = 0xFFFFFF, |
98cdd568 | 74 | } TagTypeUL_t; |
75 | ||
0ec548dc | 76 | #endif |