77 Commits
Author SHA1 Message Date
Christian HerrmannandClaude Opus 5.5 4004a454de hf gp: add GlobalPlatform info, crs and aids commands
New `hf gp` command family. Every subcommand works without keys and
never sends INITIALIZE UPDATE / EXTERNAL AUTHENTICATE, so no card
retry counter is used. All take -w for the contact interface, -a to
log APDUs and -v for verbose output.

hf gp info
  Selects the ISD, or the default applet when A000000151000000 is
  absent, and reads:
  - Card Recognition Data, decoding the GP version, SCP and Java Card
    version from their OIDs
  - CPLC, with the fabricator name and BCD dates decoded
  - the Key Information Template (KVN, key id, type, length, with
    SCP02 / SCP03 key sets marked)
  - IIN, CIN and the SCP sequence counter
  GET DATA retries with CLA 00 on cards that reject CLA 80.

hf gp crs
  GET STATUS on the Contactless Registry Service (GPC_SPE_025 3.11),
  following 6310 to fetch more data. Lists each applet's AID,
  lifecycle, contactless activation state, display data, URL, group
  and CREL members. --aid filters on a full or partial AID.

hf gp aids
  Finds applet AIDs by partial SELECT (P2=00, first occurrence):
  - finds the shortest prefix the card accepts
  - tries aidlist.json prefixes and every registered RID A0 00 00 0x xx
    (--quick skips the RID sweep)
  - extends each hit one byte at a time to the full AID
  - --prefix limits the search to one subtree
  Cards whose default applet accepts any SELECT are detected and
  refused. The walk is capped at 200000 APDUs and can be stopped with
  <Enter>. Without partial selection it falls back to the full
  aidlist.json AIDs.

aidlist.json gains the GP ISD, CRS and ARA-M AIDs, plus USIM, ISIM,
CSIM, UnionPay, and ICCOA so found AIDs get named. The CCC digital key entry gets a description.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-09 11:11:09 +07:00
Iceman 74aded1d28 Merge pull request #3727 from kormax/aidlist-more-mobile-aid-values
Add more mobile AID values to 'aidlist.json'
2026-11-09 11:09:12 +08:00
kormax 3768d4c3c6 Add more mobile AID values to 'aidlist.json' 2026-10-25 11:20:59 +02:00
Antonio Vázquez Blanco 6d9526f4fb Tag EMV cards 2026-10-23 13:28:28 +02:00
Antonio Vázquez Blanco aa55bfca0e HF 14a: Only hint EMV when correct AID is found 2026-10-23 08:25:24 +02:00
Antonio Vázquez Blanco 798f9f3d28 aidlist: Fix uppercase in SEOS, TeslaDAP and LA TAP AIDs 2026-10-21 13:35:29 +02:00
iceman1001 ee20f50965 fix duplicates 2026-09-22 12:49:50 +02:00
kormax 6c8cf5bdcf Add new ISO7816 AID values 2026-09-08 18:24:09 +03:00
AliBello febfd5d8a3 Add new AID entry for OV Pas card
Added new AID entry for OV Pas card in the Netherlands.

Signed-off-by: AliBello <69728608+AliBello@users.noreply.github.com>
2026-08-11 18:17:10 +02:00
kormax b5e1d34bcb Add new Chinese AID values to 'aidlist.json' 2026-07-30 20:01:28 +03:00
kormax 0c47ee6a85 Add new AID values to 'aidlist.json' 2026-07-30 18:31:48 +03:00
kormax 007e1f87d4 Add new Sofia transit cards to relevant resources 2026-06-06 18:27:33 +03:00
kormax 169b5ed9c6 Add new AID entries to 'aidlist.json' 2026-05-31 11:16:15 +03:00
kormax df9d89a3f4 Add new entries to 'aidlist.json' 2026-05-28 17:12:23 +03:00
kormax 624e67a90b Add new Mifare AID values to 'aidlist.json' 2026-05-27 17:26:03 +03:00
kormax cc73796d5a Add new AID entries related to Calypso 2026-05-24 16:41:54 +03:00
kormax 400dad8e59 Add new entries related to DESFire Lite to 'aidlist.json' 2026-05-16 17:41:31 +03:00
kormax 4479f2e921 Add DESFire ISOFID to extras in 'aidlist.json' 2026-05-15 17:50:39 +03:00
kormax 6b397b67be Add DESFire AID to extras in 'aidlist.json' 2026-05-15 17:50:29 +03:00
kormax 58f82357ac Add new entries to 'aidlist.json' 2026-05-15 17:50:13 +03:00
kormax 551b3bae28 Introduce protocol-scoped 'Extras' field to 'aidlist.json' 2026-05-14 09:10:22 +03:00
kormax 8eacb30ed2 Add more Calypso-related AID entries to 'aidlist.json' 2026-05-13 21:21:45 +03:00
kormax 74b3eba4ed Add new Mifare AID entries to 'aid_desfire.json' and 'aidlist.json' 2026-05-02 13:02:49 +03:00
kormax 2cb13931cf Update AID entries related to Calypso in 'aidlist.json' 2026-05-01 22:23:38 +03:00
kormax 79beba1632 Add new mobile AID entries to 'aidlist.json' 2026-04-22 21:20:40 +03:00
kormax 82a75c7e06 Add AID values related to DUOX EV charging 2026-04-16 18:34:09 +03:00
kormax c85115036a Add 'LEGIC Connect' entries to 'aidlist.json' 2026-04-09 20:50:20 +03:00
kormax e9801d1e9c Add extra 'Sources' to 'aidlist.json' 2026-04-09 20:42:53 +03:00
kormax 7f6898feae Add more 'Sources' to 'aidlist.json' 2026-04-07 18:08:21 +03:00
kormax 26dfceaea9 Add 'STiD Mobile ID' entries to 'aidlist.json' 2026-04-07 18:01:58 +03:00
kormax e4ed0b4d4f Add more sources to existing 'aidlist.json' mobile entries 2026-04-03 23:28:13 +03:00
kormax 2a6040f2a1 Adjust AID entries related to Calypso in 'aidlist.json' 2026-04-02 19:04:08 +03:00
kormax f03c4b8215 Add 'AEP VTS' AID entries to 'aidlist.json' 2026-04-02 18:38:11 +03:00
kormax 41d537b569 Add more Calypso AID values to 'aidlist.json' 2026-04-01 23:05:05 +03:00
kormax 3e1edceff8 Add new Calypso entries to 'aidlist.json' 2026-03-31 21:46:38 +03:00
kormax 1330c525bf Add new Mifare DESFire entries to 'aidlist.json' 2026-03-31 21:14:43 +03:00
kormax 42d2efea37 Mark entries with Mifare DESFire protocol in 'aidlist.json' 2026-03-31 21:14:14 +03:00
kormax 6fa8a255e7 Add 'Protocol' field to 'aidlist.json' entries 2026-03-30 23:03:58 +03:00
kormax eb9ccf7f2d Refine 'Sources' for existing AID entries in 'aidlist.json' 2026-03-29 13:46:03 +03:00
kormax e7e49baf44 Add 'Protege Mobile Credential' AID to aidlist.json 2026-03-29 13:37:08 +03:00
kormax c68d73e283 Add 'Kastle Presence' AID to 'aidlist.json' 2026-03-29 13:01:09 +03:00
kormax f342fe5af3 Add 'Gallagher Mobile Connect' AID to 'aidlist.json' 2026-03-29 12:58:29 +03:00
kormax 1e53feff16 Add 'Schlage Mobile Access' AID to 'aidlist.json' 2026-03-28 21:47:01 +02:00
kormax b47d268b86 Add 'Virtual Octopus for Android' AID to 'aidlist.json' 2026-03-28 21:14:20 +02:00
kormax 2a01d0672c Add 'Sources' to UniFi AID entries in 'aidlist.json' 2026-03-28 21:03:28 +02:00
kormax 1348a1280f Add 'Suprema Mobile Credential' AID values to 'aidlist.json' 2026-03-28 21:00:29 +02:00
kormax a02c9dd115 Add 'Salto JustIN Mobile' AID values to 'aidlist.json' 2026-03-27 20:25:15 +02:00
kormax 5fdc1a49e4 Add 'Sources' field to 'aidlist.json' 2026-03-26 17:21:38 +02:00
kormax 38d0ba12f9 Move '--aidsearch' matching to regex 2026-03-25 17:15:27 +02:00
kormax 027ad20510 Add new mobile-wallet-related entries to 'aidlist.json' 2026-03-24 18:33:19 +02:00