Commit Graph
306 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 b6398169e7 Add new known FeliCa systems and services 2026-11-05 20:26:37 +02:00
kormax 0752474574 Add new known FeliCa issuer identifiers 2026-11-05 20:24:02 +02:00
Innocent Bystander dfee79d0ed Update Documentation, FPGA and BWM firmware flashing 2026-11-01 21:51:41 -05:00
Niel Nielsen e6622f2dd8 Add Basiskort (CPH) entry to aid_desfire.json
Signed-off-by: Niel Nielsen <nieldk@gmail.com>
2026-10-28 13:49:09 +01: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 7ee301a38f added another one 2026-09-22 14:54:44 +02:00
iceman1001 ee20f50965 fix duplicates 2026-09-22 12:49:50 +02:00
iceman1001 577f6ef45c added entries from Metrodroid project 2026-09-22 12:38:15 +02:00
iceman1001 4d1414a0e9 fix duplicate entries in aid file 2026-09-22 12:36:56 +02:00
iceman1001 8393783548 one more entry in the mad 2026-09-14 12:40:51 +02:00
iceman1001andClaude Opus 5 (1M context) 6f4643a637 hf mf: add the MAD helpers parseproac needs, and register AID 0x4982
b82f60362 landed parseproac.c without them, so a clean checkout does not
build.

 - mad.c / mad.h: mad_find_aid() and mad_count_aid(); DetectHID() delegates
   to the first, it was already generic
 - mad.json: 0x4982 PROAC, sorted in after NORALSY's 0x4980

Co-Authored-By: Claude Opus 5 (1M context)
2026-09-14 12:13:35 +02:00
iceman1001 bef7f3752a another entry 2026-09-10 04:03:57 +02:00
ry4000 ef23d014eb R&Y: Updated MEGACASH AID in aid_desfire.json
# Updates
1. Updated `MEGACASH` vendor name from `Bank Mega` to `PT Bank Mega Tbk` *which is the vendor's full name*.

-r&y.

Signed-off-by: ry4000 <154689120+ry4000@users.noreply.github.com>
2026-09-09 16:15:03 +10:00
kormax 6c8cf5bdcf Add new ISO7816 AID values 2026-09-08 18:24:09 +03:00
kormax a4b1dd0ee7 Add new DESFire AID entries 2026-09-08 18:23:15 +03:00
ry4000 26bacfa258 R&Y: Updated Fermax AID in aid_desfire.json
# Updates
1. Updated `Fermax` AID to reflect the parent company's name/country and DESFire PACS product.

Signed-off-by: ry4000 <154689120+ry4000@users.noreply.github.com>
2026-09-08 10:21:54 +10:00
ry4000 6b1305cbc9 R&Y: Nomeclature updates to felica_system_code_list.json
# Updates
1. Changed `type` from `e-amusement` to `arcade` for:
    - Bandai Namco Passport
    - Konami e-amusement pass
    - Sega Aime
    - Taito NESiCA
2. Updated `description` to include the full name and `(AIC)` annotation to note that this information only applies to the Amusement IC Card variants as opposed to MFC/ICODE SLI/MFC/MFU, respectively.

-r&y.

Signed-off-by: ry4000 <154689120+ry4000@users.noreply.github.com>
2026-09-07 10:09:18 +02:00
Antiklesys 264d9bf284 TA1=96 support for SIM module 2026-09-05 17:16:38 +08:00
Antiklesys a47bdebc87 Extended T=1 support
Extended T=1 support with TA1=95 and T1_IFSD_WANTED 254
2026-08-31 15:28:49 +08:00
iceman1001 377d7cd612 since it still felt a bit slow, Claude came up with the idea of burst mode transfers. A new sim module firmware 'sim022.bin' and we now can auto-negotiate for TA1 = 0x95 which give us 125 000 bits/s which is almost 10x from the 10752 bits/s we were doing before. Thanks Claude! 2026-08-28 01:16:11 +02:00
iceman1001 e2cf7dee5f clean up old firmware files 2026-08-27 22:40:50 +02:00
iceman1001 76181dfb8e sim module firmware is now v4.60, (sim020.bin) it adds a better drain when T=0 exits abnormal (abort). Better waiting time floor, with faster ETU which doesnt shrink with WWT.\n Changes to i2c with SDA timings, also modified the fixed msleep(100) with an idle time waiting which leads to 107 ms off from every iteration.\n Added a ATR cache to remember which TA1 was autonegotiated. This impact i2c comms speed with sim module for same card. 'smart pps' is better documented.\n The sam_common.c now also logs 61xx and GET_RESPONSE :) and generic long-form ASN-1 lengths. trace list -t 7816 now also shows rdr frames in us. \n All in all, this should lead for 'emv reader -w' to go from 5.87sec to 2.78sec. 'hf seos sam' is down to 1.92sec. 'hw ping' is down to 0.57sec. A USB round trip is down from 20.8ms to 1.3ms. It should give a snappier end user experience 2026-08-27 22:37:32 +02:00
iceman1001 aeb5347b87 next sim module firmware sim017.bin, 2026-08-27 09:26:08 +02:00
iceman1001 84ad2fb8d4 new sim module firmware, shorter delays for T=0 transfers 2026-08-27 01:38:46 +02:00
Iceman c5ffec1305 Merge pull request #3533 from kormax/felica-idi-issuer-information-parsing
Enable `hf felica info` to determine card issuer, serial, issuance date based on extracted IDi
2026-08-27 01:49:02 +07:00
iceman1001 6a3ab99611 added updated sim module firmware v4.53, it now supports T=0 and T=1. T=0 got some bug fixes too. Look at https://github.com/gentilkiwi/kproxmark3_sim for all details 2026-08-26 20:34:43 +02:00
kormax 3451febfc4 Enable 'hf felica info' to determine card issuer, serial, issuance date based on extracted IDi 2026-08-26 20:40:05 +03:00
kormax 727a7c879f Optimize FeliCa command execution behavior based on pre-existing IC code knowledge 2026-08-26 17:35:22 +02:00
Iceman 48458b6ba7 Merge pull request #3527 from kormax/felica-info-auth-idi-pmi
Determine IDi and PMi in `hf felica info` for cards with known keys
2026-08-26 18:15:00 +07:00
kormax f3bca6c291 Determine IDi and PMi in 'hf felica info' for cards with known keys 2026-08-26 11:34:57 +03:00
Akury83 7168cb25c6 Update aid_desfire.json
Update to include Fermax Australia AID

Signed-off-by: Akury83 <87064827+Akury83@users.noreply.github.com>
2026-08-25 21:33:32 +10:00
kormax add9be227b Add more system references for existing DESFire AID values 2026-08-24 21:03:57 +02:00
ry4000 26bbf6615f R&Y: Added EWR TAPP and YKF EasyGO AIDs to aid_desfire.json
1. Added `EWR TAPP` AID.
2. Added `YKF EasyGO` AID.

Signed-off-by: ry4000 <154689120+ry4000@users.noreply.github.com>
2026-08-24 18:12:20 +10:00
Iceman d3aa3d25c4 Merge pull request #3467 from kormax/felica-container-issue-information-devices
Detect and print mobile FeliCa device model in `hf felica info`
2026-08-19 02:11:01 +07:00
Iceman c9a6746586 Merge pull request #3451 from gentilkiwi/patch-1
Update Calypso operators for TAO / Orléans
2026-08-19 02:07:36 +07:00
Iceman 7174cf9036 Merge pull request #3461 from AliBello/patch-1
Add new AID entry for OV Pas card
2026-08-19 02:07:18 +07:00
kormax 4fd935c974 Introduce FeliCa mobile device model detection to 'hf felica info' 2026-08-14 18:15:51 +03:00
Akury83 4ec26b59b6 Update aid_desfire.json
Signed-off-by: Akury83 <87064827+Akury83@users.noreply.github.com>
2026-08-14 13:12:28 +10: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
Benjamin DELPY 7b504e0e79 Update Calypso operators for TAO / Orléans
Signed-off-by: Benjamin DELPY <benjamin@gentilkiwi.com>
2026-08-03 12:25:27 +02:00
kormax 3fd3c442b7 Add new known Calypso nodes 2026-07-31 23:31:52 +03:00
kormax b5e1d34bcb Add new Chinese AID values to 'aidlist.json' 2026-07-30 20:01:28 +03:00
Iceman d0892ae347 Merge pull request #3440 from ry4000/master
R&Y: Updated `aid_desfire.json`
2026-07-30 22:39:10 +07:00
kormax 0c47ee6a85 Add new AID values to 'aidlist.json' 2026-07-30 18:31:48 +03:00
ry4000 c5be0008ba R&Y: Updated aid_desfire.json
1. Added `STL Ride On` to `transport` section.
2. Updated multiple AIDs where `Country` was listed as `N/A`.
3. Updated multiple AIDs in `transport` section where airport IATA was missing.
4. Re-sorted AIDs by AID type then ascending AID order.

*MSB/LSB endian checks were not done on recently-merged AIDs.*

-r&y.

Signed-off-by: ry4000 <154689120+ry4000@users.noreply.github.com>
2026-07-31 01:18:38 +10:00