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>
This commit is contained in:
1 parent
f6ca733601
commit
4004a454de
10 files changed
+1378
-11
No files matched your search
@@ -479,6 +479,14 @@
|
||||
"Description": "(Gemalto)",
|
||||
"Type": "GP"
|
||||
},
|
||||
{
|
||||
"AID": "A000000018475041432D3135",
|
||||
"Vendor": "GEMPLUS",
|
||||
"Country": "France",
|
||||
"Name": "GPAC-15",
|
||||
"Description": "GP SE Access Control ARF container (Access Rule Files), used by Android SE when no ARA-M",
|
||||
"Type": "GP"
|
||||
},
|
||||
{
|
||||
"AID": "A00000002401",
|
||||
"Vendor": "Midland Bank Plc",
|
||||
@@ -815,6 +823,14 @@
|
||||
"Description": "Joint Data Model. BCMedical",
|
||||
"Type": ""
|
||||
},
|
||||
{
|
||||
"AID": "A0000000871002",
|
||||
"Vendor": "Third Generation Partnership Project (3GPP)",
|
||||
"Country": "France",
|
||||
"Name": "USIM",
|
||||
"Description": "3GPP USIM application",
|
||||
"Type": "USIM"
|
||||
},
|
||||
{
|
||||
"AID": "A0000000871002FF49FF0589",
|
||||
"Vendor": "Third Generation Partnership Project (3GPP)",
|
||||
@@ -823,6 +839,14 @@
|
||||
"Description": "",
|
||||
"Type": "USIM"
|
||||
},
|
||||
{
|
||||
"AID": "A0000000871004",
|
||||
"Vendor": "Third Generation Partnership Project (3GPP)",
|
||||
"Country": "France",
|
||||
"Name": "ISIM",
|
||||
"Description": "3GPP IMS subscriber identity module",
|
||||
"Type": ""
|
||||
},
|
||||
{
|
||||
"AID": "A00000008810200105C100",
|
||||
"Vendor": "Buypass AS",
|
||||
@@ -1031,6 +1055,30 @@
|
||||
"Description": "GP Card Manager",
|
||||
"Type": "GP"
|
||||
},
|
||||
{
|
||||
"AID": "A000000151000000",
|
||||
"Vendor": "GlobalPlatform, Inc.",
|
||||
"Country": "United States",
|
||||
"Name": "Global Platform Issuer Security Domain",
|
||||
"Description": "GP default Issuer Security Domain (card manager)",
|
||||
"Type": "GP"
|
||||
},
|
||||
{
|
||||
"AID": "A00000015141434C00",
|
||||
"Vendor": "GlobalPlatform, Inc.",
|
||||
"Country": "United States",
|
||||
"Name": "GP ARA-M",
|
||||
"Description": "Access Rule Application Master (GP SE Access Control), used by Android SE / OMAPI",
|
||||
"Type": "GP"
|
||||
},
|
||||
{
|
||||
"AID": "A00000015143525300",
|
||||
"Vendor": "GlobalPlatform, Inc.",
|
||||
"Country": "United States",
|
||||
"Name": "GP CRS Application",
|
||||
"Description": "Contactless Registry Service (GPC Amd C). GET STATUS lists contactless applets, no authentication",
|
||||
"Type": "GP"
|
||||
},
|
||||
{
|
||||
"AID": "A00000015153504341534400",
|
||||
"Vendor": "GlobalPlatform, Inc.",
|
||||
@@ -1383,6 +1431,22 @@
|
||||
"Description": "",
|
||||
"Type": "EMV"
|
||||
},
|
||||
{
|
||||
"AID": "A000000333",
|
||||
"Vendor": "China Unionpay Co. Ltd",
|
||||
"Country": "China",
|
||||
"Name": "UnionPay",
|
||||
"Description": "UnionPay RID",
|
||||
"Type": "EMV"
|
||||
},
|
||||
{
|
||||
"AID": "A0000003330101",
|
||||
"Vendor": "China Unionpay Co. Ltd",
|
||||
"Country": "China",
|
||||
"Name": "UnionPay",
|
||||
"Description": "UnionPay base application",
|
||||
"Type": "EMV"
|
||||
},
|
||||
{
|
||||
"AID": "A000000333010101",
|
||||
"Vendor": "China Unionpay Co. Ltd",
|
||||
@@ -1423,6 +1487,14 @@
|
||||
"Description": "",
|
||||
"Type": "EMV"
|
||||
},
|
||||
{
|
||||
"AID": "A0000003334355502D4D4F42494C45",
|
||||
"Vendor": "China Unionpay Co. Ltd",
|
||||
"Country": "China",
|
||||
"Name": "UnionPay CUP-MOBILE",
|
||||
"Description": "UnionPay mobile payment application (\"CUP-MOBILE\")",
|
||||
"Type": ""
|
||||
},
|
||||
{
|
||||
"AID": "A000000337301000",
|
||||
"Vendor": "Groupment Interbancaire Montique de l' UEMOA",
|
||||
@@ -2354,6 +2426,15 @@
|
||||
"Description": "Brazilian Bank Banco Bradesco",
|
||||
"Type": "EMV"
|
||||
},
|
||||
{
|
||||
"AID": "F00000004943434F41444B412021",
|
||||
"Vendor": "Intelligent Car Connectivity Open Alliance (ICCOA)",
|
||||
"Country": "China",
|
||||
"Name": "ICCOA Digital Key",
|
||||
"Description": "ICCOA digital car key applet (\"ICCOADKA !\"), on the secure element",
|
||||
"Type": "access",
|
||||
"Protocol": "iccoa_digital_key"
|
||||
},
|
||||
{
|
||||
"AID": "7465736C6153746F7265",
|
||||
"Vendor": "Tesla",
|
||||
@@ -2540,7 +2621,7 @@
|
||||
"Vendor": "Car Connectivity Consortium (CCC)",
|
||||
"Country": "",
|
||||
"Name": "Digital Car Key",
|
||||
"Description": "",
|
||||
"Description": "Digital Key applet (\"CCCDKAv1\"), on the secure element",
|
||||
"Type": "access",
|
||||
"Protocol": "ccc_digital_car_key"
|
||||
},
|
||||
@@ -3197,6 +3278,14 @@
|
||||
"Description": "Transit and e-money card used in Singapore",
|
||||
"Type": "transport"
|
||||
},
|
||||
{
|
||||
"AID": "A0000003431002",
|
||||
"Vendor": "Third Generation Partnership Project 2 (3GPP2)",
|
||||
"Country": "United States",
|
||||
"Name": "CSIM",
|
||||
"Description": "3GPP2 CDMA subscriber identity module",
|
||||
"Type": ""
|
||||
},
|
||||
{
|
||||
"AID": "A0000000014145502E4E4643412E5654",
|
||||
"Vendor": "GTT - Gruppo Torinese Trasporti",
|
||||
|
||||
Reference in new issue
Block a user