GSM Shop GSM Shop
GSM-Forum  

Welcome to the GSM-Forum forums.

You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features.
Only registered members may post questions, contact other members or search our database of over 8 million posts.

Registration is fast, simple and absolutely free so please - Click to REGISTER!

If you have any problems with the registration process or your account login, please contact contact us .

Go Back   GSM-Forum > Other Gsm/Mobile Related Forums > Sim Cloning and Scaning

Reply
 
LinkBack Thread Tools Display Modes
Old 07-31-2012, 14:23   #1 (permalink)
Junior Member
 
Join Date: Mar 2004
Age: 39
Posts: 26
Member: 57612
Status: Offline
Thanks Meter: 0
Question Strange sim card reading error


Hello!

I have Cardinal Sim editor and a Phoenix compatible usb sim reader and the program could read every sim card I inserted so far, but I've got a card recently and the program says: unknown smart card error (end of the hex string: C6A0) All the cards work with echo option, except for this one. I was trying to figure out the proper settings for this card but to no avail. Anyway, I don't think that there's a problem with the settings because I can get the ATR and the scanner part works, though return values are weird and in scripter too.

Here is the ATR:

Code:
>>> ATR Info Tool [CARDinal] <<<

  Pure ATR = 3B 9E 95 80 1F C7 80 31 E0 73 FE 21 1B 66 D0 00 6C A2 0B 00 

  TS      = 3B
  T0      = 9E

    TA[0] = 95
    TD[0] = 80
    TD[1] = 1F
    TA[2] = C7

    HIST  = 80 31 E0 73 FE 21 1B 66 D0 00 6C A2 0B 00 
    ASCII = .  1  .  s  .  !  .  f  .  .  l  .  .  .  

  Default 'F' = 512
  Default 'D' = 16
  'P' (Vpp)   = 5 V
  'I' (Ipp)   = max. 50 mA
  'N' (GTime) = 2 + 0 etu = 2 etu

  Selected 'F' = 372
  Selected 'D' = 1

  Default protocol = T=0
  Selected protocol = T=0

  Supported protocols : T=0; T=15;
Why does the pure ATR consist of 20 bytes? In the case of the other cards all the pure ATRs consist of only 9 bytes. The protocol T=15; is not there by the other cards.

Here is the script example:

Code:
; .SCR Script sample for CARDinal Scripter
; 
; Use this script on GSM SIM card
;
; semicolon = comment
; command   = CLA INS P1 P2 P3 R01 DataToSend R02
;                               |      |       |-- Status Word
;                               |      |---------- DATA (lenght = P3)
;                               |----------------- ACK
;
; command   = CLA INS P1 P2 P3 R01 DataToRec  R02
;                               |      |       |-- Status Word
;                               |      |---------- rXX; XX=P3
;                               |----------------- ACK
;
; command   = CLA INS P1 P2 P3 R02
;                           |   |----------------- Status Word
;                           |--------------------- P3 = 00

 a0 a4 00 00 02 r01 3f 00 r02 ; SelectFile(3f00)     - ROOT - GSM MF
 a0 c0 00 00 06 r01  r06  r02 ; GetResponse(6 Bytes)
;a0 c0 00 00 06 r09           ; equivalent with previous command

 a0 a4 00 00 02 r01 2f e2 r02 ; SelectFile(2fE2)     - ICCID
 a0 c0 00 00 06 r01  r06  r02 ; GetResponse(6 Bytes)

 a0 b0 00 00 0a r01  r0a  r02 ; ReadBinary(10 Bytes)

;a0 fa 00 00 00 r02           ; Sleep - this command is ignored on Phase 2/2+ SIM cards
Code:
Checking script ...
    Script is OK!

ATR = 3B 9E 95 80 1F C7 80 31 E0 73 FE 21 1B 66 D0 00 6C A2 0B 00

--> CMD  = A0 A4 00 00 02
<-- SW   = C6A0

--> CMD  = A0 C0 00 00 06
<-- SW   = A400

--> CMD  = A0 A4 00 00 02
<-- SW   = 0002

--> CMD  = A0 C0 00 00 06
<-- SW   = A0C0

--> CMD  = A0 B0 00 00 0A
<-- SW   = 0000
[End of script]
What does that C6A0 code mean?

GSM Sim utility also supports this type of card reader, so I also tested the card with that program and interestingly it CAN read the ADN and SMS. But I don't like that program because when you want to write back the data to the card, it totally messes up sms messages and you cannot see the data in hexa.

So is this some kind of protection or encryption of sim data or how comes it that Cardinal cannot read data from the card, but GSM SIM utility can?

(in mobile phone the card works well)

Thanks for any help.
  Reply With Quote
Old 07-31-2012, 14:35   #2 (permalink)
Junior Member
 
Join Date: Mar 2004
Age: 39
Posts: 26
Member: 57612
Status: Offline
Thanks Meter: 0
Moreover if you want to use any functions (other than scanner, scripter, get atr), the cardinal says unknown smart card error and refers to the number C6A0.
  Reply With Quote
Old 11-12-2014, 21:59   #3 (permalink)
Junior Member
 
Join Date: Nov 2014
Posts: 2
Member: 2291718
Status: Offline
Thanks Meter: 0
how to read access conditions

Hello!

Quote:
Originally Posted by ntamas2 View Post

a0 a4 00 00 02 r01 2f e2 r02 ; SelectFile(2fE2) - ICCID
a0 c0 00 00 06 r01 r06 r02 ; GetResponse(6 Bytes)
a0 b0 00 00 0a r01 r0a r02 ; ReadBinary(10 Bytes)
Help me, please, what the apdu command is to read firstly 16 bytes of access conditions of EF, and then to read a data? It may seen as 'a0 b0 xx 00 10'. What are the exact values of p1 and p2 ?
  Reply With Quote
Old 11-22-2014, 19:25   #4 (permalink)
Junior Member
 
Join Date: Nov 2014
Posts: 2
Member: 2291718
Status: Offline
Thanks Meter: 0
For details, please see: h t t p : / / i s . m u n i . c z / t h / 3 2 4 5 4 6 / f i _ b / t e x t . p d f , p 17-18.
  Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
thread Thread Starter Forum Replies Last Post
Eeprom reading KLImax Nokia Legacy Phones ( DCT-1 ,2 ,3 ,L ) 2 09-22-2011 15:55
SIM restriction pending -- what does it mean? Ryu Nokia Legacy Phones ( DCT-1 ,2 ,3 ,L ) 7 07-17-2011 10:05

 



All times are GMT +1. The time now is 11:21.



Powered by Searchlight © 2024 Axivo Inc.
vBulletin Optimisation provided by vB Optimise (Pro) - vBulletin Mods & Addons Copyright © 2024 DragonByte Technologies Ltd.
- GSM Hosting Ltd. - 1999-2023 -
Page generated in 0.13477 seconds with 9 queries

SEO by vBSEO