PM3 Commands Reference (Iceman Firmware):

Main Help


Current command:
hf mfdes read --help


Read data from file. Key needs to be provided or flag --no-auth set (depend on file settings).

usage:
    hf mfdes read [-hav] [-n <dec>] [-t <DES|2TDEA|3TDEA|AES>] [-k <hex>] [--kdf <none|AN10922|gallagher>]

options:
    -h, --help                     This help
    -a, --apdu                     Show APDU requests and responses
    -v, --verbose                  Verbose output
    -n, --keyno <dec>              Key number
    -t, --algo <DES|2TDEA|3TDEA|AES> Crypt algo
    -k, --key <hex>                Key for authenticate (HEX 8(DES), 16(2TDEA or AES) or 24(3TDEA) bytes)
    --kdf <none|AN10922|gallagher> Key Derivation Function (KDF)
    -i, --kdfi <hex>               KDF input (1-31 hex bytes)
    -m, --cmode <plain|mac|encrypt> Communicaton mode
    -c, --ccset <native|niso|iso>  Communicaton command set
    --schann <d40|ev1|ev2|lrp>     Secure channel
    --aid <hex>                    Application ID (3 hex bytes, big endian)
    --fid <hex>                    File ID (1 hex byte)
    --no-auth                      Execute without authentication
    --type <auto|data|value|record|mac> File Type, Auto - check file settings and then read. (def: auto)
    -o, --offset <hex>             File Offset (3 hex bytes, big endian). For records - record number (0 - lastest record). (def: 0)
    -l, --length <hex>             Length to read (3 hex bytes, big endian -> 000000 = Read all data). For records - records count (0 - all). (def: 0)
    --isoid <hex>                  Application ISO ID (ISO DF ID) (2 hex bytes, big endian)
    --fileisoid <hex>              File ISO ID (ISO DF ID) (2 hex bytes, big endian). Works only for ISO read commands
    --isochain                     use iso chaining commands. Switched on by default if secure channel = lrp

examples/notes:
    It reads file via all command sets.
    For ISO command set it can be read by specifying full 2-byte iso id or 1-byte short iso id (first byte of the full iso id). ISO id lays in the data in BIG ENDIAN format.
    ISO record commands: offset - record number (0-current, 1..ff-number, 1-lastest), length - if 0 - all records, if 1 - one