make style

This commit is contained in:
Philippe Teuwen committed 2026-06-23 00:03:16 +02:00
1 parent 10fdef1811
commit 5666cdf4e8
11 files changed
+399 -78

No files matched your search

+291 -15
View File
@@ -1170,7 +1170,7 @@
},
"help": {
"command": "help",
"description": "help Use `<command> help` for details of a command prefs { Edit client/device preferences... } -------- ----------------------- Technology ----------------------- analyse { Analyse utils... } data { Plot window / data buffer manipulation... } emv { EMV ISO-14443 / ISO-7816... } hf { High frequency commands... } hw { Hardware commands... } lf { Low frequency commands... } mqtt { MQTT commmands... } nfc { NFC commands... } piv { PIV commands... } reveng { CRC calculations from RevEng software... } smart { Smart card ISO-7816 commands... } script { Scripting commands... } trace { Trace manipulation... } wiegand { Wiegand format manipulation... } -------- ----------------------- General ----------------------- clear Clear screen hints Turn hints on / off msleep Add a pause in milliseconds rem Add a text line in log file quit exit Exit program --------------------------------------------------------------------------------------- auto available offline: no Run LF SEARCH / HF SEARCH / DATA PLOT / DATA SAVE",
"description": "help Use `<command> help` for details of a command prefs { Edit client/device preferences... } -------- ----------------------- Technology ----------------------- analyse { Analyse utils... } data { Plot window / data buffer manipulation... } emv { EMV ISO-14443 / ISO-7816... } hf { High frequency commands... } hw { Hardware commands... } lf { Low frequency commands... } mad { MAD commands... } mqtt { MQTT commmands... } nfc { NFC commands... } piv { PIV commands... } reveng { CRC calculations from RevEng software... } smart { Smart card ISO-7816 commands... } script { Scripting commands... } trace { Trace manipulation... } wiegand { Wiegand format manipulation... } -------- ----------------------- General ----------------------- clear Clear screen hints Turn hints on / off msleep Add a pause in milliseconds rem Add a text line in log file quit exit Exit program --------------------------------------------------------------------------------------- auto available offline: no Run LF SEARCH / HF SEARCH / DATA PLOT / DATA SAVE",
"notes": [
"auto"
],
@@ -2859,16 +2859,18 @@
"notes": [
"hf felica dump",
"hf felica dump --retry 5",
"hf felica dump --idm 11100910C11BC407"
"hf felica dump --idm 11100910C11BC407",
"hf felica dump -f my-felica-dump"
],
"offline": false,
"options": [
"-h, --help This help",
"--no-auth read public services",
"-r, --retry <dec> number of retries",
"--idm <hex> use custom IDm"
"--idm <hex> use custom IDm",
"-f, --file <fn> Specify a filename for JSON dump file"
],
"usage": "hf felica dump [-h] [--no-auth] [-r <dec>] [--idm <hex>]"
"usage": "hf felica dump [-h] [--no-auth] [-r <dec>] [--idm <hex>] [-f <fn>]"
},
"hf felica help": {
"command": "hf felica help",
@@ -3112,6 +3114,23 @@
],
"usage": "hf felica seacinfo [-h]"
},
"hf felica sim": {
"command": "hf felica sim",
"description": "Emulate a FeliCa Standard card from a JSON dump generated by `hf felica dump`.",
"notes": [
"hf felica sim -f hf-felica-dump.json",
"hf felica sim -f hf-felica-dump --read-without-encryption-error-location-indication index",
"hf felica sim -f hf-felica-dump --read-without-encryption-error-location-indication flag -v"
],
"offline": false,
"options": [
"-h, --help This help",
"-f, --file <fn> JSON dump file",
"--read-without-encryption-error-location-indication <mask|index|flag> Read Without Encryption error location indication (default: mask)",
"-v, --verbose verbose output"
],
"usage": "hf felica sim [-hv] -f <fn> [--read-without-encryption-error-location-indication <mask|index|flag>]"
},
"hf felica sniff": {
"command": "hf felica sniff",
"description": "Collect data from the field and save into command buffer. Buffer accessible from `hf felica list`",
@@ -6324,6 +6343,74 @@
],
"usage": "hf mf mad [-hvb] [--aid <hex>] [-k <hex>] [--be] [--dch] [-f <fn>] [--force]"
},
"hf mf madread": {
"command": "hf mf madread",
"description": "Read application data from sectors matching a MAD AID",
"notes": [
"mad read --aid e103 -> read NDEF data (auto-detect card)",
"mad read --aid e103 -k ffffffffffff -b -> Classic, key B",
"mad read --aid e103 -k d3f7d3f7d3f7d3f7d3f7d3f7d3f7d3f7 -> Plus",
"mad read --aid e103 -v -f mydata.bin -> verbose, save to file"
],
"offline": false,
"options": [
"-h, --help This help",
"-v, --verbose verbose output",
"--aid <hex> application ID (2 hex bytes)",
"-k, --key <hex> key for data sectors",
"-b, --keyb use key B (def: key A)",
"--mad-key <hex> key for MAD sectors",
"--be big-endian AID byte swap",
"--override override failed CRC check",
"-f, --file <fn> save raw data to file"
],
"usage": "hf mf madread [-hvb] --aid <hex> [-k <hex>] [--mad-key <hex>] [--be] [--override] [-f <fn>]"
},
"hf mf madverify": {
"command": "hf mf madverify",
"description": "Read back and verify application data against expected content",
"notes": [
"mad verify --aid e103 -d 0102030405060708 -> verify data",
"mad verify --aid e103 -f mydata.bin -> verify against file"
],
"offline": false,
"options": [
"-h, --help This help",
"-v, --verbose verbose output",
"--aid <hex> application ID (2 hex bytes)",
"-k, --key <hex> key for data sectors",
"-b, --keyb use key B (def: key A)",
"--mad-key <hex> key for MAD sectors",
"--be big-endian AID byte swap",
"--override override failed CRC check",
"-d, --data <hex> expected data",
"-f, --file <fn> load expected data from file"
],
"usage": "hf mf madverify [-hvb] --aid <hex> [-k <hex>] [--mad-key <hex>] [--be] [--override] [-d <hex>] [-f <fn>]"
},
"hf mf madwrite": {
"command": "hf mf madwrite",
"description": "Write application data to sectors matching a MAD AID",
"notes": [
"mad write --aid e103 -d 0102030405060708 -> write data",
"mad write --aid e103 -f mydata.bin -> write from file",
"mad write --aid e103 -k ffffffffffff -d 0102030405 -> Classic, custom key"
],
"offline": false,
"options": [
"-h, --help This help",
"-v, --verbose verbose output",
"--aid <hex> application ID (2 hex bytes)",
"-k, --key <hex> key for data sectors",
"-b, --keyb use key B (def: key A)",
"--mad-key <hex> key for MAD sectors",
"--be big-endian AID byte swap",
"--override override failed CRC check",
"-d, --data <hex> data to write",
"-f, --file <fn> load data from file"
],
"usage": "hf mf madwrite [-hvb] --aid <hex> [-k <hex>] [--mad-key <hex>] [--be] [--override] [-d <hex>] [-f <fn>]"
},
"hf mf nack": {
"command": "hf mf nack",
"description": "Test a MIFARE Classic based card for the NACK bug",
@@ -8404,6 +8491,74 @@
],
"usage": "hf mfp mad [-hvb] [--aid <hex>] [-k <hex>] [--be] [--dch] [--override]"
},
"hf mfp madread": {
"command": "hf mfp madread",
"description": "Read application data from sectors matching a MAD AID",
"notes": [
"mad read --aid e103 -> read NDEF data (auto-detect card)",
"mad read --aid e103 -k ffffffffffff -b -> Classic, key B",
"mad read --aid e103 -k d3f7d3f7d3f7d3f7d3f7d3f7d3f7d3f7 -> Plus",
"mad read --aid e103 -v -f mydata.bin -> verbose, save to file"
],
"offline": false,
"options": [
"-h, --help This help",
"-v, --verbose verbose output",
"--aid <hex> application ID (2 hex bytes)",
"-k, --key <hex> key for data sectors",
"-b, --keyb use key B (def: key A)",
"--mad-key <hex> key for MAD sectors",
"--be big-endian AID byte swap",
"--override override failed CRC check",
"-f, --file <fn> save raw data to file"
],
"usage": "hf mfp madread [-hvb] --aid <hex> [-k <hex>] [--mad-key <hex>] [--be] [--override] [-f <fn>]"
},
"hf mfp madverify": {
"command": "hf mfp madverify",
"description": "Read back and verify application data against expected content",
"notes": [
"mad verify --aid e103 -d 0102030405060708 -> verify data",
"mad verify --aid e103 -f mydata.bin -> verify against file"
],
"offline": false,
"options": [
"-h, --help This help",
"-v, --verbose verbose output",
"--aid <hex> application ID (2 hex bytes)",
"-k, --key <hex> key for data sectors",
"-b, --keyb use key B (def: key A)",
"--mad-key <hex> key for MAD sectors",
"--be big-endian AID byte swap",
"--override override failed CRC check",
"-d, --data <hex> expected data",
"-f, --file <fn> load expected data from file"
],
"usage": "hf mfp madverify [-hvb] --aid <hex> [-k <hex>] [--mad-key <hex>] [--be] [--override] [-d <hex>] [-f <fn>]"
},
"hf mfp madwrite": {
"command": "hf mfp madwrite",
"description": "Write application data to sectors matching a MAD AID",
"notes": [
"mad write --aid e103 -d 0102030405060708 -> write data",
"mad write --aid e103 -f mydata.bin -> write from file",
"mad write --aid e103 -k ffffffffffff -d 0102030405 -> Classic, custom key"
],
"offline": false,
"options": [
"-h, --help This help",
"-v, --verbose verbose output",
"--aid <hex> application ID (2 hex bytes)",
"-k, --key <hex> key for data sectors",
"-b, --keyb use key B (def: key A)",
"--mad-key <hex> key for MAD sectors",
"--be big-endian AID byte swap",
"--override override failed CRC check",
"-d, --data <hex> data to write",
"-f, --file <fn> load data from file"
],
"usage": "hf mfp madwrite [-hvb] --aid <hex> [-k <hex>] [--mad-key <hex>] [--be] [--override] [-d <hex>] [-f <fn>]"
},
"hf mfp ndefformat": {
"command": "hf mfp ndefformat",
"description": "format MIFARE Plus Tag as a NFC tag with Data Exchange Format (NDEF) If no <name> given, UID will be used as filename. It will try default keys and MAD keys to detect if tag is already formatted in order to write. If not, it will try finding a key file based on your UID. ie, if you ran autopwn before",
@@ -10630,31 +10785,35 @@
},
"lf cotag help": {
"command": "lf cotag help",
"description": "help This help demod demodulate an COTAG tag --------------------------------------------------------------------------------------- lf cotag demod available offline: yes Try to find COTAG preamble, if found decode / descramble data",
"description": "help This help demod demodulate a COTAG tag --------------------------------------------------------------------------------------- lf cotag demod available offline: yes Demodulate COTAG samples from g_GraphBuffer. Try to find COTAG preamble, if found decode / descramble data.",
"notes": [
"lf cotag demod"
],
"offline": true,
"options": [
"-h, --help This help",
"-v, --verbose verbose output"
"-v, --verbose verbose output",
"-c, --clk <dec> set clock manually (def 768)",
"-t, --threshold <dec> set high value threshold manually (def: auto-detected)"
],
"usage": "lf cotag demod [-hv]"
"usage": "lf cotag demod [-hv] [-c <dec>] [-t <dec>]"
},
"lf cotag reader": {
"command": "lf cotag reader",
"description": "read a COTAG tag, the current support for COTAG is limited.",
"description": "Read a COTAG tag. - use `lf config` to set parameters except divisor (which is assumed 90 for cotag. Use --divisor to override). - use `data plot` to look at it. - use `lf cotag demod` to try to demodulate it. If the number of samples is more than the device memory limit (40000 now), it will try to use the real-time sampling mode. Note: Cotag has an extremely slow data rate - RF/768 -- capturing a full 128 bit card read requires a minimum of 128 x 768 samples, or a multiple thereof.",
"notes": [
"lf cotag reader -2"
"lf cotag reader -v -s 700000 -> collect 700000 samples",
"lf cotag reader -v --divisor 89 -s 700000 -> use divisor 89, collect 700000 samples"
],
"offline": false,
"options": [
"-h, --help This help",
"-1 HIGH/LOW signal; maxlength bigbuff",
"-2 translation of HIGH/LOW into bytes with manchester 0,1",
"-3 raw signal; maxlength bigbuff"
"-s, --samples <dec> number of samples to collect (def 500000)",
"-v, --verbose verbose output",
"-@ continuous reading mode",
"--divisor <19-255> Manually set freq divisor"
],
"usage": "lf cotag reader [-h123]"
"usage": "lf cotag reader [-hv@] [-s <dec>] [--divisor <19-255>]"
},
"lf destron clone": {
"command": "lf destron clone",
@@ -13977,6 +14136,123 @@
],
"usage": "lf visa2000 sim [-h] --cn <dec>"
},
"mad encode": {
"command": "mad encode",
"description": "Encode a MAD byte array from AID-to-sector mappings",
"notes": [
"mad encode --aid E103:1-3 --aid 484D:4 -> MAD1 with NDEF + HID",
"mad encode --aid E103:1-3,5 -> non-contiguous sectors",
"mad encode --aid E103:1-3,17-18 --aid 484D:4 -> MAD1 + MAD2",
"mad encode --aid E103:1-3 -q -> quiet, hex only"
],
"offline": true,
"options": [
"-h, --help This help",
"--aid <hex:sectors> AID and sector ranges (e.g. E103:1-3,5)",
"-q, --quiet quiet output, hex bytes only",
"--be big-endian AID byte swap"
],
"usage": "mad encode [-hq] --aid <hex:sectors> [--aid <hex:sectors>]... [--be]"
},
"mad help": {
"command": "mad help",
"description": "-------- --------------- MAD ----------------- -------- ------------- General --------------- help This help decode Decode MAD byte array encode Encode MAD byte array from AID mappings test Run MAD regression tests --------------------------------------------------------------------------------------- mad decode available offline: yes Decode a MAD byte array and print the directory",
"notes": [
"mad decode -d <sector0 hex> -> decode MAD1",
"mad decode -d <sector0 hex> --mad2 <sector16 hex> -> decode MAD1 + MAD2"
],
"offline": true,
"options": [
"-h, --help This help",
"-v, --verbose verbose output",
"-d, --data <hex> MAD1 sector 0 data (64 bytes)",
"--mad2 <hex> MAD2 sector 16 data (64 bytes)",
"--be big-endian AID byte swap"
],
"usage": "mad decode [-hv] -d <hex> [--mad2 <hex>] [--be]"
},
"mad read": {
"command": "mad read",
"description": "Read application data from sectors matching a MAD AID",
"notes": [
"mad read --aid e103 -> read NDEF data (auto-detect card)",
"mad read --aid e103 -k ffffffffffff -b -> Classic, key B",
"mad read --aid e103 -k d3f7d3f7d3f7d3f7d3f7d3f7d3f7d3f7 -> Plus",
"mad read --aid e103 -v -f mydata.bin -> verbose, save to file"
],
"offline": false,
"options": [
"-h, --help This help",
"-v, --verbose verbose output",
"--aid <hex> application ID (2 hex bytes)",
"-k, --key <hex> key for data sectors",
"-b, --keyb use key B (def: key A)",
"--mad-key <hex> key for MAD sectors",
"--be big-endian AID byte swap",
"--override override failed CRC check",
"-f, --file <fn> save raw data to file"
],
"usage": "mad read [-hvb] --aid <hex> [-k <hex>] [--mad-key <hex>] [--be] [--override] [-f <fn>]"
},
"mad test": {
"command": "mad test",
"description": "Run MAD regression tests (offline, no card needed)",
"notes": [
"mad test",
"mad test -v -> verbose output"
],
"offline": true,
"options": [
"-h, --help This help",
"-v, --verbose verbose output"
],
"usage": "mad test [-hv]"
},
"mad verify": {
"command": "mad verify",
"description": "Read back and verify application data against expected content",
"notes": [
"mad verify --aid e103 -d 0102030405060708 -> verify data",
"mad verify --aid e103 -f mydata.bin -> verify against file"
],
"offline": false,
"options": [
"-h, --help This help",
"-v, --verbose verbose output",
"--aid <hex> application ID (2 hex bytes)",
"-k, --key <hex> key for data sectors",
"-b, --keyb use key B (def: key A)",
"--mad-key <hex> key for MAD sectors",
"--be big-endian AID byte swap",
"--override override failed CRC check",
"-d, --data <hex> expected data",
"-f, --file <fn> load expected data from file"
],
"usage": "mad verify [-hvb] --aid <hex> [-k <hex>] [--mad-key <hex>] [--be] [--override] [-d <hex>] [-f <fn>]"
},
"mad write": {
"command": "mad write",
"description": "Write application data to sectors matching a MAD AID",
"notes": [
"mad write --aid e103 -d 0102030405060708 -> write data",
"mad write --aid e103 -f mydata.bin -> write from file",
"mad write --aid e103 -k ffffffffffff -d 0102030405 -> Classic, custom key"
],
"offline": false,
"options": [
"-h, --help This help",
"-v, --verbose verbose output",
"--aid <hex> application ID (2 hex bytes)",
"-k, --key <hex> key for data sectors",
"-b, --keyb use key B (def: key A)",
"--mad-key <hex> key for MAD sectors",
"--be big-endian AID byte swap",
"--override override failed CRC check",
"-d, --data <hex> data to write",
"-f, --file <fn> load data from file"
],
"usage": "mad write [-hvb] --aid <hex> [-k <hex>] [--mad-key <hex>] [--be] [--override] [-d <hex>] [-f <fn>]"
},
"mem dump": {
"command": "mem dump",
"description": "Dumps flash memory on device into a file or view in console",
@@ -15383,8 +15659,8 @@
}
},
"metadata": {
"commands_extracted": 865,
"commands_extracted": 878,
"extracted_by": "PM3Help2JSON v1.00",
"extracted_on": "2026-06-09T23:01:19+00:00"
"extracted_on": "2026-06-22T22:01:12+00:00"
}
}