PM3 Commands Reference (Iceman Firmware):

Main Help


Current command:
hf cipurse write --help


Write file in the application by file ID with key ID and key. If no key is supplied, default key of 737373...7373 will be used

usage:
    hf cipurse write [-hav] [-n <dec>] [-k <hex>] [--aid <hex>] [--fid <hex>] [-o <dec>] [--noauth] [--sreq <plain|mac|encode>]

options:
    -h, --help                     This help
    -a, --apdu                     Show APDU requests and responses
    -v, --verbose                  Verbose mode
    -n <dec>                       Key ID
    -k, --key <hex>                Auth key
    --aid <hex>                    Application ID (AID) ( 1..16 bytes )
    --fid <hex>                    File ID
    -o, --offset <dec>             Offset for reading data from file
    --noauth                       Read file without authentication
    --sreq <plain|mac|encode>      Communication reader-PICC security level (def: mac)
    --sresp <plain|mac|encode>     Communication PICC-reader security level (def: mac)
    -d, --data <hex>               Data to write to new file
    --commit                       Commit after write

examples/notes:
    hf cipurse write --fid 2ff7 -d aabb       -> Authenticate with keyID 1, write file with id 2ff7
    hf cipurse write -n 2 -k 65656565656565656565656565656565 --fid 2ff7 -d aabb      -> Authenticate keyID 2 and write file
    hf cipurse write --aid 4144204631 --fid 0102 -d aabb       -> write file with id 0102 in the 4144204631 application
    hf cipurse write --fid 0102 -d aabb --commit       -> write file with id 0102 and perform commit after write