mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2026-05-09 03:00:07 -04:00
add cli parser option
This commit is contained in:
@@ -103,6 +103,15 @@ const CLIParserOption DesfireValueFileOperOpts[] = {
|
||||
{0, NULL},
|
||||
};
|
||||
|
||||
const CLIParserOption DesfireReadFileTypeOpts[] = {
|
||||
{RFTAuto, "auto"},
|
||||
{RFTData, "data"},
|
||||
{RFTValue, "value"},
|
||||
{RFTRecord, "record"},
|
||||
{RFTMAC, "mac"},
|
||||
{0, NULL},
|
||||
};
|
||||
|
||||
static const char *getstatus(uint16_t *sw) {
|
||||
if (sw == NULL) return "--> sw argument error. This should never happen !";
|
||||
if (((*sw >> 8) & 0xFF) == 0x91) {
|
||||
|
||||
@@ -28,6 +28,14 @@ typedef struct {
|
||||
const bool mayHaveISOfid;
|
||||
} DesfireCreateFileCommandsS;
|
||||
|
||||
typedef enum {
|
||||
RFTAuto,
|
||||
RFTData,
|
||||
RFTValue,
|
||||
RFTRecord,
|
||||
RFTMAC,
|
||||
} DesfireReadOpFileType;
|
||||
|
||||
extern const CLIParserOption DesfireAlgoOpts[];
|
||||
extern const CLIParserOption DesfireKDFAlgoOpts[];
|
||||
extern const CLIParserOption DesfireCommunicationModeOpts[];
|
||||
@@ -35,6 +43,7 @@ extern const CLIParserOption DesfireCommandSetOpts[];
|
||||
extern const CLIParserOption DesfireSecureChannelOpts[];
|
||||
extern const CLIParserOption DesfireFileAccessModeOpts[];
|
||||
extern const CLIParserOption DesfireValueFileOperOpts[];
|
||||
extern const CLIParserOption DesfireReadFileTypeOpts[];
|
||||
|
||||
const char *DesfireGetErrorString(int res, uint16_t *sw);
|
||||
uint32_t DesfireAIDByteToUint(uint8_t *data);
|
||||
|
||||
Reference in New Issue
Block a user