]> git.zerfleddert.de Git - proxmark3-svn/blob - client/cmdhfmfdes.h
Add: simple Application enum.
[proxmark3-svn] / client / cmdhfmfdes.h
1 //-----------------------------------------------------------------------------
2 // Copyright (C) 2014 Iceman
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 MIFARE Desfire commands
9 //-----------------------------------------------------------------------------
10
11 int CmdHFMFDes(const char *Cmd);
12 int CmdHF14ADesAuth(const char* cmd);
13 int CmdHF14ADesRb(const char* cmd);
14 int CmdHF14ADesWb(const char* cmd);
15 int CmdHF14ADesInfo(const char *Cmd);
16 int CmdHF14ADesEnumApplications(const char *Cmd);
17 int CmdHF14ADesNonces(const char *Cmd);
18 char * GetCardSizeStr( uint8_t fsize );
19 char * GetVendorStr( uint8_t id);
20 char * GetProtocolStr(uint8_t id);
21
22
23
24 #define CREATE_APPLICATION 0xca
25 #define DELETE_APPLICATION 0xda
26 #define GET_APPLICATION_IDS 0x6a
27 #define SELECT_APPLICATION 0x5a
28 #define FORMAT_PICC 0xfc
29 #define GET_VERSION 0x60
30 #define READ_DATA 0xbd
31 #define WRITE_DATA 0x3d
32 #define GET_VALUE 0x6c
33 #define CREDIT 0x0c
34 #define DEBIT 0xdc
35 #define LIMITED_CREDIT 0x1c
36 #define WRITE_RECORD 0x3b
37 #define READ_RECORDS 0xbb
38 #define CLEAR_RECORD_FILE 0xeb
39 #define COMMIT_TRANSACTION 0xc7
40 #define ABORT_TRANSACTION 0xa7
41 #define GET_FREE_MEMORY 0x6e
42 #define GET_FILE_IDS 0x6f
43 #define GET_FILE_SETTINGS 0xf5
44 #define CHANGE_FILE_SETTINGS 0x5f
45 #define CREATE_STD_DATA_FILE 0xcd
46 #define CREATE_BACKUP_DATA_FILE 0xcb
47 #define CREATE_VALUE_FILE 0xcc
48 #define CREATE_LINEAR_RECORD_FILE 0xc1
49 #define CREATE_CYCLIC_RECORD_FILE 0xc0
50 #define DELETE_FILE 0xdf
51 #define AUTHENTICATE 0x0a // AUTHENTICATE_NATIVE
52 #define AUTHENTICATE_ISO 0x1a // AUTHENTICATE_STANDARD
53 #define AUTHENTICATE_AES 0xaa
54 #define CHANGE_KEY_SETTINGS 0x54
55 #define GET_KEY_SETTINGS 0x45
56 #define CHANGE_KEY 0xc4
57 #define GET_KEY_VERSION 0x64
58 #define AUTHENTICATION_FRAME 0xAF
59
60
61 #define MAX_APPLICATION_COUNT 28
62 #define MAX_FILE_COUNT 16
63 #define MAX_FRAME_SIZE 60
64 #define NOT_YET_AUTHENTICATED 255
65 #define FRAME_PAYLOAD_SIZE (MAX_FRAME_SIZE - 5)
Impressum, Datenschutz