Add 'hf mfdes getversion' command

This commit is contained in:
kormax committed 2026-06-07 16:24:31 +03:00
1 parent 1a4fdbeffb
commit 73d0388141
8 files changed
+123

No files matched your search

+16
View File
@@ -7053,6 +7053,22 @@
],
"usage": "hf mfdes getuid [-hav] [-n <dec>] [-t <DES|2TDEA|3TDEA|AES>] [-k <hex>] [--kdf <none|AN10922|gallagher>] [-i <hex>] [-m <plain|mac|encrypt>] [-c <native|niso|iso>] [--schann <d40|ev1|ev2|lrp>] [--aid <hex>] [--isoid <hex>] [--dfname <hex>]"
},
"hf mfdes getversion": {
"command": "hf mfdes getversion",
"description": "Request and print DESFire GetVersion data. Optionally select an ISO DF name first.",
"notes": [
"hf mfdes getversion -> request and print card version/type information",
"hf mfdes getversion --dfname D2760000850100 -> select DF by name, then request and print version/type information"
],
"offline": false,
"options": [
"-h, --help This help",
"-a, --apdu Show APDU requests and responses",
"-v, --verbose Verbose output",
"--dfname <hex> Application ISO DF Name (1-16 hex bytes, big endian)"
],
"usage": "hf mfdes getversion [-hav] [--dfname <hex>]"
},
"hf mfdes help": {
"command": "hf mfdes help",
"description": "help This help list List DESFire (ISO 14443A) history makemfclicense Generate a Mifare Classic license for DESFire EV3C test Regression crypto tests --------------------------------------------------------------------------------------- hf mfdes list available offline: yes Alias of `trace list -t des -c` with selected protocol data to annotate trace buffer You can load a trace from file (see `trace load -h`) or it be downloaded from device by default It accepts all other arguments of `trace list`. Note that some might not be relevant for this specific protocol",
+1
View File
@@ -723,6 +723,7 @@ Check column "offline" for their availability.
|`hf mfdes detect `|N |`Detect key type and tries to find one from the list`
|`hf mfdes formatpicc `|N |`Format PICC`
|`hf mfdes freemem `|N |`Get free memory size`
|`hf mfdes getversion `|N |`Get version/type information`
|`hf mfdes getuid `|N |`Get uid from card`
|`hf mfdes pc `|N |`Run proximity check`
|`hf mfdes info `|N |`Tag information`
+7
View File
@@ -177,6 +177,13 @@ The card can return UID in encrypted communication mode. Needs to authenticate w
`hf mfdes getuid -s ev2 -t aes -k 11223344556677889900112233445566` - via ev2 secure channel with specified aes key
### How to get version/type information
^[Top](#top)
`hf mfdes getversion` - request and print card version/type information
`hf mfdes getversion --dfname D2760000850100` - select an application by ISO DF name before requesting version/type information
### How to get/set default communication channel settings
^[Top](#top)