From 1cf446fa7f6039b0aa268eb1dfe5bc20d6b27626 Mon Sep 17 00:00:00 2001 From: Philippe Teuwen Date: Fri, 6 Feb 2026 13:07:16 +0100 Subject: [PATCH] make commands --- client/src/pm3line_vocabulary.h | 1 + doc/commands.json | 32 ++++++++++++++++++++++++++------ doc/commands.md | 1 + 3 files changed, 28 insertions(+), 6 deletions(-) diff --git a/client/src/pm3line_vocabulary.h b/client/src/pm3line_vocabulary.h index 7328f9358..857b79afa 100644 --- a/client/src/pm3line_vocabulary.h +++ b/client/src/pm3line_vocabulary.h @@ -523,6 +523,7 @@ const static vocabulary_t vocabulary[] = { { 0, "hf seos write" }, { 0, "hf seos adf" }, { 0, "hf seos gdf" }, + { 0, "hf seos sim" }, { 1, "hf seos managekeys" }, { 1, "hf st25ta help" }, { 0, "hf st25ta info" }, diff --git a/doc/commands.json b/doc/commands.json index 44e42f9e9..b363538a2 100644 --- a/doc/commands.json +++ b/doc/commands.json @@ -8024,16 +8024,14 @@ "--nonce Nonce value as 8 hex bytes", "--privenc Privacy Encryption key as 16 hex bytes", "--privmac Privacy MAC key as 16 hex bytes", - "--read Undiversified Read key as 16 hex bytes", - "--write Undiversified Write key as 16 hex bytes", - "--admin Undiversified Admin key as 16 hex bytes", + "--auth Undiversified Auth key as 16 hex bytes", "-f, --file Specify a filename for load / save operations", "--save Save keys in memory to file specified by filename", "--load Load keys to memory from file specified by filename", "-p, --print Print keys loaded into memory", "-v, --verbose verbose (print all key info)" ], - "usage": "hf seos managekeys [-hpv] [--ki ] [--keyslot ] [--nonce ] [--privenc ] [--privmac ] [--read ] [--write ] [--admin ] [-f ] [--save] [--load]" + "usage": "hf seos managekeys [-hpv] [--ki ] [--keyslot ] [--nonce ] [--privenc ] [--privmac ] [--auth ] [-f ] [--save] [--load]" }, "hf seos pacs": { "command": "hf seos pacs", @@ -8069,6 +8067,28 @@ ], "usage": "hf seos sam [-hvknt] [-d ]..." }, + "hf seos sim": { + "command": "hf seos sim", + "description": "Simulate a SEOS card with the provided keys and data By default: - ADF OID : 2B0601040181E438010102011801010202 - Diversifier: 01020304050607 - Key Index : 2 - Data Tag : FF00 - Encryption : AES128 - Hashing : SHA256", + "notes": [ + "hf seos sim -d 12345678", + "hf seos sim --ki 1", + "hf seos sim -o 2B0601040181E438010102011801010202 -u 01020304050607 --ki 2 -d 12345678", + "hf seos sim -o 2B0601040181E438010102011801010202 --legacy -t FF41 -d 12345678" + ], + "offline": false, + "options": [ + "-h, --help This help", + "-t, --tag <0-100> hex bytes for tag to simulate (Default: FF00)", + "-o, --oid <0-100> hex bytes for OID (Default: 2B0601040181E438010102011801010202)", + "--ki Specify key index to set key in memory", + "--div <0-16> hex bytes for diversifier (Equivalent of UID)", + "-d, --data <0-128> hex bytes for data (Must be valid BER-TLV)", + "-u, --uid <0-10> hex bytes for UID (Must be a RID i.e. [0]=0x08)", + "-l, --legacy Use legacy algorithms (3DES/SHA1)" + ], + "usage": "hf seos sim [-hl] [-t ] [-o ] [--ki ] [--div ] [-d ] [-u ]" + }, "hf seos write": { "command": "hf seos write", "description": "Make a PUT DATA request to an ADF of a SEOS card By default: - ADF OID : 2B0601040181E438010102011801010202 - Key Index: 2", @@ -13771,8 +13791,8 @@ } }, "metadata": { - "commands_extracted": 787, + "commands_extracted": 790, "extracted_by": "PM3Help2JSON v1.00", - "extracted_on": "2025-12-22T03:54:40" + "extracted_on": "2026-02-06T12:06:55" } } diff --git a/doc/commands.md b/doc/commands.md index a6c1ebffd..2d0471998 100644 --- a/doc/commands.md +++ b/doc/commands.md @@ -742,6 +742,7 @@ Check column "offline" for their availability. |`hf seos write `|N |`Write an ADF to the card` |`hf seos adf `|N |`Read an ADF from the card` |`hf seos gdf `|N |`Read an GDF from card` +|`hf seos sim `|N |`Simulate Seos tag` |`hf seos managekeys `|Y |`Manage keys to use with SEOS commands`