hf mfdes etest: drive the DESFire simulation from the host
One command with one action per call: --begin, --scan, --apdu <hex>, --random <hex>, --fieldoff, --state, --end. Text output by default, -j gives one line of JSON per call for a script to read back. Distinct failures are reported as such: no image in emulator memory, not activated (--scan first), random queue full, and a firmware that does not answer. Co-Authored-By: Claude Fable 5.1 (claude-fable-5-1) <noreply@anthropic.com>
This commit is contained in:
1 parent
e588085c10
commit
2ff6b0fecd
3 files changed
+270
No files matched your search
@@ -7899,6 +7899,31 @@
|
||||
"hf mfdes esave -f myfile --keep -> keep applications and files a reader deleted"
|
||||
],
|
||||
"offline": false,
|
||||
"hf mfdes etest": {
|
||||
"command": "hf mfdes etest",
|
||||
"description": "Drive the DESFire simulation from the host over USB, no RF involved. The card image in emulator memory answers each --apdu, native or ISO 7816 wrapped, as `hf mfdes sim` would over the air. Bytes given with --random are used for the next RndB and random UID draws, so a recorded session replays byte for byte. One action per call. Load an image first with `hf mfdes eload`",
|
||||
"notes": [
|
||||
"hf mfdes etest --begin",
|
||||
"hf mfdes etest --scan",
|
||||
"hf mfdes etest --random 0102030405060708",
|
||||
"hf mfdes etest --apdu 900A0000010000 -j",
|
||||
"hf mfdes etest --state -j",
|
||||
"hf mfdes etest --end"
|
||||
],
|
||||
"offline": false,
|
||||
"options": [
|
||||
"-h, --help This help",
|
||||
"--begin Check the image, clear the random queue",
|
||||
"--end Drop the state and the random queue",
|
||||
"--scan RF reset and activation, show UID/ATQA/SAK/ATS",
|
||||
"--apdu <hex> Send one command, show the answer",
|
||||
"--random <hex> Queue bytes for the next RndB / random UID draws",
|
||||
"--fieldoff RF reset, session dropped",
|
||||
"--state Show session and random queue state",
|
||||
"-j, --json One line of JSON instead of text"
|
||||
],
|
||||
"usage": "hf mfdes etest [-hj] [--begin] [--end] [--scan] [--apdu <hex>] [--random <hex>] [--fieldoff] [--state]"
|
||||
},
|
||||
"options": [
|
||||
"-h, --help This help",
|
||||
"-f, --file <fn> Filename, if no <fn> UID will be used as filename",
|
||||
|
||||
Reference in new issue
Block a user