gsm - How to work with SIM cards (Installing applet) -


i have smart card following atr:

atr = 3b 9e 94 80 1f 42 80 31 00 73 21 10 66 54 59 53 04 4c 25 cf.

based on output of atr-parse.appspot.com found mci (mobile communication company of iran) sim card.

these info gained historical bytes :

(compact tlv data object)

tag: 3, len: 1 (card service data byte)

card service data byte: 0

  • ef.dir , ef.atr access services: record(s) command

  • card mf

tag: 7, len: 3 (card capabilities)

selection methods: 190

  • record number supported

  • short ef identifier supported

  • implicit df selection

  • df selection file identifier

  • df selection path

  • df selection full df name

data coding byte: 33

  • behaviour of write functions: proprietary

  • value 'ff' first byte of ber-tlv tag fields: valid

  • data unit in quartets: 1

command chaining, length fields , logical channels: 16

  • logical channel number assignment: card

  • maximum number of logical channels: 1

tag: 6, len: 6 (pre-issuing data)

data: 54 59 53 04 4c 25 "tys.l%"

as see above mentioned card has mf.

the problem can't card. in first step want list contents. took @ ts 11.11, ts 102.221,ts 131.102 , ts 151.011 specifications.

as far understand above documents system file of card consist of master file aid 3f00 , df-s , ef-s. example base on below table of ts 151.011 specification tried select df-s :

enter image description here

these results :

connected rtp ccid usb reader 0 atr: 3b 9e 94 80 1f 42 80 31 00 73 21 10 66 54 59 53 04 4c 25 cf  > apdu > a0 a4 04 00 02 5f 30 < 6a 82  > apdu > a4 a4 04 00 00 < 6e 00  > apdu > a0 a4 04 00 00 < 67 00  > apdu > 00 a4 04 00 00 < 61 13  > apdu > 00 c0 00 00 13 < 6f 11 84 09 a0 00 00 00 62 03 01 08 01 a5 04 9f 65 01 ff < 90 00  > apdu > 00 a4 04 00 09 a0 00 00 00 62 03 01 08 01 < 61 13  > apdu > a0 a4 04 00 09 a0 00 00 00 62 03 01 08 01 < 6e 00  > apdu > 00 a4 04 00 09 a0 00 00 00 62 03 01 08 01 < 61 13  > apdu > 00 c0 00 00 13 < 6f 11 84 09 a0 00 00 00 62 03 01 08 01 a5 04 9f 65 01 ff < 90 00  > apdu > 00 a4 04 00 02 3f 00 < 6a 82  > apdu > a0 a4 04 00 02 3f 00 < 6e 00 

as see above failed of them , find aid of isd only.

i tried list contents globalplatformpro tool also, seems card not support initial update apdu command :

c:\users\user\desktop\today>java -jar gp.jar -visa2 -key 47454d5850524553534f53414d504c45 -unlock -list -v -d -i # detected readers sunpcsc [*] rtp ccid usb reader 0 scardconnect("rtp ccid usb reader 0", t=*) -> t=0, 3b9e94801f4280310073be211066545953044c25cf scardbegintransaction("rtp ccid usb reader 0") reader: rtp ccid usb reader 0 atr: 3b9e94801f4280310073be211066545953044c25cf more information card:     http://smartcard-atr.appspot.com/parse?atr=3b9e94801f4280310073be211066545953044c25cf  a>> t=0 (4+0000) 00a40400 00 a<< (0019+2) (249ms) 6f118409a00000006203010801a5049f6501ff 9000 auto-detected isd aid: a00000006203010801 ***** card info: a>> t=0 (4+0000) 80ca9f7f 00 a<< (0000+2) (73ms) 6a86 data(cplc) returned sw: 6a86 no cplc ***** card data a>> t=0 (4+0000) 80ca0066 00 a<< (0000+2) (81ms) 6e00 no card data ***** key info a>> t=0 (4+0000) 80ca00e0 00 a<< (0000+2) (82ms) 6e00 a>> t=0 (4+0000) 00ca00e0 00 a<< (0000+2) (60ms) 6e00 data(key information template) not supported a>> t=0 (4+0008) 80500000 08 fe44f8e8df60349b 00 a<< (0000+2) (61ms) 6d00 pro.javacard.gp.gpexception: initialize update failed sw: 6d00         @ pro.javacard.gp.globalplatform.check(globalplatform.java:1092)         @ pro.javacard.gp.globalplatform.opensecurechannel(globalplatform.java:398)         @ pro.javacard.gp.gptool.main(gptool.java:371)  c:\users\user\desktop\today>  

i want know what's wrong? how can install java card applets on sim card?

note worked java card successfully,but totally confused these kind of sim cards. appreciate 1 shed light on issue. regards.

if obtain card market (not own development card) it's impossible install applet on since don't know keyset of isd. made in order grant card issuer , card owner (mno) full control on content of sim card.

another possible explanation not sim card support gp nor javacard. there existing sim card comply 2g/3g/4g standard (gsm 11.11, 11.14, 102.222 etc) able user authenticate network only. such simcard own stk application , it's not implemented javacard applet.


Comments

Popular posts from this blog

javascript - AngularJS custom datepicker directive -

javascript - jQuery date picker - Disable dates after the selection from the first date picker -