[Pcsclite-muscle] Need Help Reading Atmel AT88SC0204C Smart Card
L.M.J
linuxmasterjedi at free.fr
Wed Nov 13 12:15:28 PST 2024
----- Mail original -----
> De: "Bruno Jesus" <00cpxxx at gmail.com>
> À: "L.M.J" <linuxmasterjedi at free.fr>
> Cc: pcsclite-muscle at lists.infradead.org
> Envoyé: Jeudi 7 Novembre 2024 23:05:38
> Objet: Re: [Pcsclite-muscle] Need Help Reading Atmel AT88SC0204C Smart Card
>
>
>
> On Thu, Nov 7, 2024 at 6:23 PM L.M.J < linuxmasterjedi at free.fr >
> wrote:
>
>
> Hi everyone,
>
> I’m new to smart card reader technologies and would appreciate any
> guidance or resources (tutorials, websites, etc.) for reading or
> dumping the memory of an Atmel AT88SC0204C smart card (credit card
> format) on Linux. I am using an Cardman 5422 reader.
>
> I’ve been running into issues with `pcsc_scan`, which keeps looping
> without end (`- / \ -`). Here is a snapshot of the output:
>
> $ pcsc_scan
> Using reader plug'n play mechanism
> Scanning present readers...
> 0: HID Global OMNIKEY 5422 Smartcard Reader [OMNIKEY 5422CL Smartcard
> Reader] (KJ0J0F017R11102027) 00 00
> 1: HID Global OMNIKEY 5422 Smartcard Reader [OMNIKEY 5422 Smartcard
> Reader] (KJ0J0F017R11102027) 01 00
>
> Wed Nov 6 21:06:42 2024
> Reader 0: HID Global OMNIKEY 5422CL Smartcard Reader
> (KJ0J0F017R11102027) 00 00
> Card state: Card removed
> Reader 1: HID Global OMNIKEY 5422 Smartcard Reader
> (KJ0J0F017R11102027) 01 00
> Card state: Card inserted
> ATR: 3B B2 11 00 10 80 00 02
>
> ATR Analysis:
> Possibly identified card:
> Atmel memory card AT88SC0204C (source:
> /usr/share/pcsc/smartcard_list.txt)
> Documentation:
> http://www.atmel.com/dyn/resources/prod_documents/doc5211.pdf
>
> Any advice on setting up commands to read this card’s memory or
> understanding the APDU commands for the AT88SC0204C would be greatly
> appreciated!
>
>
>
>
> Similar document replacements from 2015 are publicly available here:
> https://www.microchip.com/en-us/product/AT88SC0204C
>
>
> You have to read the manual to understand the zone divisions and what
> can be done, a quick start from
> Atmel-5211-CryptoMem-Full-Specification-Datasheet.pdf are chapters
> 4.1, 4.3 and 9.4. I no longer remember how they work (this card is
> from 2001 as far as I remember) but a general rule is to never
> change keys or enable authentication mechanisms before understanding
> the complete process and having at least some cards to burn on
> errors. Start by selecting a user zone and reading from it. A blank
> card will reply without authentication.
>
Hi,
Thank you Stephan & Bruno for sharing informations.
So far, I manage to do this :
$ opensc-tool -s '00 B6 00 00 10'
Received (SW1=0x90, SW2=0x00):
3B B2 11 00 10 80 00 02 20 20 FF FF 53 02 FF FF ;....... ..S...
$ opensc-tool -s '00 B6 00 10 10'
Received (SW1=0x90, SW2=0x00):
24 20 F3 95 56 66 20 20 FF 00 00 00 23 47 03 07 $ ..Vf ....#G..
$ opensc-tool -s '00 B6 00 20 10'
Received (SW1=0x90, SW2=0x00):
EF 3F EF 3F EF 3F EF 3F FF FF FF FF FF FF FF FF .?.?.?.?........
$ opensc-tool -s '00 B6 00 30 10'
Received (SW1=0x90, SW2=0x00):
FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF ................
$ opensc-tool -s '00 B6 00 40 10'
Received (SW1=0x90, SW2=0x00):
00 00 02 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
$ opensc-tool -s '00 B6 00 50 10'
Received (SW1=0x69, SW2=0x00):
FF B6 75 CD 27 9C B2 4E 10 10 10 10 10 10 10 10 ..u.'..N........
$ opensc-tool -s '00 B6 00 60 10'
Received (SW1=0x69, SW2=0x00):
FF FF FF FF FF FF FF FF 10 10 10 10 10 10 10 10 ................
$ opensc-tool -s '00 B6 00 70 10'
Received (SW1=0x69, SW2=0x00):
FF FF FF FF FF FF FF FF 10 10 10 10 10 10 10 10 ................
Am I on a good read why to read the whole memory of the card ?
Do you have any ressources to share (website and/or youtube) video to teach how this technology works, what tools to use and how ?
Thanks you
More information about the pcsclite-muscle
mailing list