style
Some checks are pending
CodeQL / Analyze (push) Waiting to run
MacOS Build and Test / macos-make (push) Waiting to run
MacOS Build and Test / macos-make-btaddon (push) Waiting to run
MacOS Build and Test / macos-cmake (push) Waiting to run
Ubuntu Build and Test / ubuntu-make (push) Waiting to run
Ubuntu Build and Test / ubuntu-make-btaddon (push) Waiting to run
Ubuntu Build and Test / ubuntu-cmake (push) Waiting to run
Windows Build and Test / proxspace (push) Waiting to run
Windows Build and Test / wsl (push) Waiting to run

This commit is contained in:
iceman1001 2025-07-13 15:55:44 +02:00
commit ed84b1fcf4
7 changed files with 64 additions and 29 deletions

View file

@ -121,20 +121,24 @@ static const uint64_t g_mifare_default_keys[] = {
0x96a301bce267, 0x96a301bce267,
}; };
static const uint8_t g_mifare_default_key[] = {0xff, 0xff, 0xff, 0xff, 0xff, 0xff}; static const uint8_t g_mifare_default_key[MIFARE_KEY_SIZE] = {0xff, 0xff, 0xff, 0xff, 0xff, 0xff};
static const uint8_t g_mifare_mad_key[] = {0xa0, 0xa1, 0xa2, 0xa3, 0xa4, 0xa5}; static const uint8_t g_mifare_mad_key[MIFARE_KEY_SIZE] = {0xa0, 0xa1, 0xa2, 0xa3, 0xa4, 0xa5};
static const uint8_t g_mifare_mad_key_b[] = {0x89, 0xEC, 0xA9, 0x7F, 0x8C, 0x2A}; static const uint8_t g_mifare_mad_key_b[MIFARE_KEY_SIZE] = {0x89, 0xEC, 0xA9, 0x7F, 0x8C, 0x2A};
// 16 key B D01AFEEB890A // 16 key B D01AFEEB890A
static const uint8_t g_mifare_signature_key_a[] = {0x5C, 0x8F, 0xF9, 0x99, 0x0D, 0xA2}; static const uint8_t g_mifare_signature_key_a[MIFARE_KEY_SIZE] = {0x5C, 0x8F, 0xF9, 0x99, 0x0D, 0xA2};
static const uint8_t g_mifare_signature_key_b[] = {0x4b, 0x79, 0x1b, 0xea, 0x7b, 0xcc}; static const uint8_t g_mifare_signature_key_b[MIFARE_KEY_SIZE] = {0x4b, 0x79, 0x1b, 0xea, 0x7b, 0xcc};
// Manufacture MFC / QL88 (S17 / B) // Manufacture MFC / QL88 (S17 / B)
static const uint8_t g_mifare_ql88_signature_key_b[] = {0x70, 0x7B, 0x11, 0xFC, 0x14, 0x81}; static const uint8_t g_mifare_ql88_signature_key_b[MIFARE_KEY_SIZE] = {0x70, 0x7B, 0x11, 0xFC, 0x14, 0x81};
static const uint8_t g_mifare_ndef_key[] = {0xd3, 0xf7, 0xd3, 0xf7, 0xd3, 0xf7}; static const uint8_t g_mifare_ndef_key[MIFARE_KEY_SIZE] = {0xd3, 0xf7, 0xd3, 0xf7, 0xd3, 0xf7};
static const uint8_t g_mifarep_mad_key[] = {0xa0, 0xa1, 0xa2, 0xa3, 0xa4, 0xa5, 0xa6, 0xa7, 0xa0, 0xa1, 0xa2, 0xa3, 0xa4, 0xa5, 0xa6, 0xa7}; static const uint8_t g_mifarep_mad_key[] = {0xa0, 0xa1, 0xa2, 0xa3, 0xa4, 0xa5, 0xa6, 0xa7, 0xa0, 0xa1, 0xa2, 0xa3, 0xa4, 0xa5, 0xa6, 0xa7};
static const uint8_t g_mifarep_ndef_key[] = {0xd3, 0xf7, 0xd3, 0xf7, 0xd3, 0xf7, 0xd3, 0xf7, 0xd3, 0xf7, 0xd3, 0xf7, 0xd3, 0xf7, 0xd3, 0xf7}; static const uint8_t g_mifarep_ndef_key[] = {0xd3, 0xf7, 0xd3, 0xf7, 0xd3, 0xf7, 0xd3, 0xf7, 0xd3, 0xf7, 0xd3, 0xf7, 0xd3, 0xf7, 0xd3, 0xf7};
static const uint8_t g_mifare_k08s[MIFARE_KEY_SIZE] = {0xA3, 0x96, 0xEF, 0xA4, 0xE2, 0x4F};
static const uint8_t g_mifare_k08[MIFARE_KEY_SIZE] = {0xA3, 0x16, 0x67, 0xA8, 0xCE, 0xC1};
static const uint8_t g_mifare_k32n[MIFARE_KEY_SIZE] = {0x51, 0x8B, 0x33, 0x54, 0xE7, 0x60};
static const uint8_t g_mifare_k32n2[MIFARE_KEY_SIZE] = {0x73, 0xB9, 0x83, 0x6C, 0xF1, 0x68};
extern const char *g_mifare_plus_default_keys[]; extern const char *g_mifare_plus_default_keys[];
extern size_t g_mifare_plus_default_keys_len; extern size_t g_mifare_plus_default_keys_len;

View file

@ -51,6 +51,7 @@ const static vocabulary_t vocabulary[] = {
{ 1, "prefs get hints" }, { 1, "prefs get hints" },
{ 1, "prefs get output" }, { 1, "prefs get output" },
{ 1, "prefs get plotsliders" }, { 1, "prefs get plotsliders" },
{ 1, "prefs get mqtt" },
{ 1, "prefs set help" }, { 1, "prefs set help" },
{ 1, "prefs set barmode" }, { 1, "prefs set barmode" },
{ 1, "prefs set client.debug" }, { 1, "prefs set client.debug" },
@ -62,6 +63,7 @@ const static vocabulary_t vocabulary[] = {
{ 1, "prefs set savepaths" }, { 1, "prefs set savepaths" },
{ 1, "prefs set output" }, { 1, "prefs set output" },
{ 1, "prefs set plotsliders" }, { 1, "prefs set plotsliders" },
{ 1, "prefs set mqtt" },
{ 1, "analyse help" }, { 1, "analyse help" },
{ 1, "analyse lrc" }, { 1, "analyse lrc" },
{ 1, "analyse crc" }, { 1, "analyse crc" },

View file

@ -278,9 +278,8 @@
}, },
"data crypto": { "data crypto": {
"command": "data crypto", "command": "data crypto",
"description": "Encrypt data, right here, right now. Or decrypt.", "description": "This command lets you encrypt or decrypt data using DES/3DES/AES. Supply data, key, IV (needed for des MAC or aes), and cryptography action.",
"notes": [ "notes": [
"Supply data, key, IV (needed for des MAC or aes), and cryptography action.",
"To calculate a MAC for FMCOS, supply challenge as IV, data as data, and session/line protection key as key.", "To calculate a MAC for FMCOS, supply challenge as IV, data as data, and session/line protection key as key.",
"To calculate a MAC for FeliCa, supply first RC as IV, BLE+data as data and session key as key.", "To calculate a MAC for FeliCa, supply first RC as IV, BLE+data as data and session key as key.",
"data crypto -d 04D6850E06AABB80 -k FFFFFFFFFFFFFFFF --iv 9EA0401A00000000 --des -> Calculate a MAC for FMCOS chip. The result should be ED3A0133" "data crypto -d 04D6850E06AABB80 -k FFFFFFFFFFFFFFFF --iv 9EA0401A00000000 --des -> Calculate a MAC for FMCOS chip. The result should be ED3A0133"
@ -12797,6 +12796,18 @@
], ],
"usage": "prefs get hints [-h]" "usage": "prefs get hints [-h]"
}, },
"prefs get mqtt": {
"command": "prefs get mqtt",
"description": "Get preference of MQTT settings in the client",
"notes": [
"prefs get mqtt"
],
"offline": true,
"options": [
"-h, --help This help"
],
"usage": "prefs get mqtt [-h]"
},
"prefs get output": { "prefs get output": {
"command": "prefs get output", "command": "prefs get output",
"description": "Get preference of dump output style", "description": "Get preference of dump output style",
@ -12922,7 +12933,7 @@
}, },
"prefs set help": { "prefs set help": {
"command": "prefs set help", "command": "prefs set help",
"description": "help This help barmode Set bar mode client.debug Set client debug level client.delay Set client execution delay client.timeout Set client communication timeout color Set color support emoji Set emoji display hints Set hint display savepaths ... to be adjusted next ... output Set dump output style plotsliders Set plot slider display --------------------------------------------------------------------------------------- prefs set barmode available offline: yes Set persistent preference of HF/LF tune command styled output in the client", "description": "help This help barmode Set bar mode client.debug Set client debug level client.delay Set client execution delay client.timeout Set client communication timeout color Set color support emoji Set emoji display hints Set hint display savepaths ... to be adjusted next ... output Set dump output style plotsliders Set plot slider display mqtt Set MQTT default values --------------------------------------------------------------------------------------- prefs set barmode available offline: yes Set persistent preference of HF/LF tune command styled output in the client",
"notes": [ "notes": [
"prefs set barmode --mix" "prefs set barmode --mix"
], ],
@ -12949,6 +12960,22 @@
], ],
"usage": "prefs set hints [-h] [--off] [--on]" "usage": "prefs set hints [-h] [--off] [--on]"
}, },
"prefs set mqtt": {
"command": "prefs set mqtt",
"description": "Set persistent preference MQTT Server in the client",
"notes": [
"prefs set mqtt -s test.mosquito.com",
"prefs set mqtt -s test.mosquito.com -p 1883 -t proxdump"
],
"offline": true,
"options": [
"-h, --help This help",
"-s, --srv <path> default MQTT Server",
"-p, --port <path> default MQTT Port",
"-t, --topic <path> default MQTT Topic"
],
"usage": "prefs set mqtt [-h] [-s <path>] [-p <path>] [-t <path>]"
},
"prefs set output": { "prefs set output": {
"command": "prefs set output", "command": "prefs set output",
"description": "Set dump output style to condense consecutive repeated data", "description": "Set dump output style to condense consecutive repeated data",
@ -13411,8 +13438,8 @@
} }
}, },
"metadata": { "metadata": {
"commands_extracted": 770, "commands_extracted": 772,
"extracted_by": "PM3Help2JSON v1.00", "extracted_by": "PM3Help2JSON v1.00",
"extracted_on": "2025-07-10T05:07:28" "extracted_on": "2025-07-13T13:53:32"
} }
} }

View file

@ -46,6 +46,7 @@ Check column "offline" for their availability.
|`prefs get hints `|Y |`Get hint display preference` |`prefs get hints `|Y |`Get hint display preference`
|`prefs get output `|Y |`Get dump output style preference` |`prefs get output `|Y |`Get dump output style preference`
|`prefs get plotsliders `|Y |`Get plot slider display preference` |`prefs get plotsliders `|Y |`Get plot slider display preference`
|`prefs get mqtt `|Y |`Get MQTT preference`
### prefs set ### prefs set
@ -65,6 +66,7 @@ Check column "offline" for their availability.
|`prefs set savepaths `|Y |`... to be adjusted next ... ` |`prefs set savepaths `|Y |`... to be adjusted next ... `
|`prefs set output `|Y |`Set dump output style` |`prefs set output `|Y |`Set dump output style`
|`prefs set plotsliders `|Y |`Set plot slider display` |`prefs set plotsliders `|Y |`Set plot slider display`
|`prefs set mqtt `|Y |`Set MQTT default values`
### analyse ### analyse