From sixonefourb at gmail.com Mon Apr 22 19:27:54 2013 From: sixonefourb at gmail.com (Matt S) Date: Mon, 22 Apr 2013 15:27:54 -0400 Subject: Create File APDU for GRCard SIM Message-ID: Hello, I'm struggling to get the 'CREATE FILE' APDU to work on a GRCard SIM. I'm using the cyberflex-shell in interactive mode to send apdu's. Even though I verify ADM pin 5, and follow the format on the wiki ( http://openbsc.osmocom.org/trac/wiki/GrcardSIM), I still get the reponse 0x9804 from the cards. I must be missing a step? Below is my failed session with a SIM, trying to create FID 0xabcd under 3f00/7f20. Any guidance is greatly appreciated. ATR: 3b 99 18 00 11 88 22 33 44 55 66 77 60 (;....."3DUfw`) (ISO 7816-4) > raw a0 20 00 05 08 44 44 44 44 44 44 44 44 -------------------------------------------------------------------------------- Beginning transaction 0 >> 0000: a0 20 00 05 08 44 44 44 44 44 44 44 44 . ...DDDDDDDD << 0000: 90 00 .. Ending transaction 0 -------------------------------------------------------------------------------- -------------------------------------------------------------------------------- Beginning transaction 1 >> 0000: a0 a4 00 00 02 3f 00 .....?. << 0000: 9f 17 .. Ending transaction 1 -------------------------------------------------------------------------------- -------------------------------------------------------------------------------- Beginning transaction 2 >> 0000: a0 a4 00 00 02 7f 20 ...... << 0000: 9f 17 .. Ending transaction 2 -------------------------------------------------------------------------------- -------------------------------------------------------------------------------- Beginning transaction 3 >> 0000: 80 cf 00 01 0a ab cd 01 31 01 00 00 00 00 ff ........1...... << 0000: 98 04 .. Ending transaction 3 -------------------------------------------------------------------------------- -------------- next part -------------- An HTML attachment was scrubbed... URL: From ml at mail.tsaitgaist.info Mon Apr 22 20:13:53 2013 From: ml at mail.tsaitgaist.info (Kevin Redon) Date: Mon, 22 Apr 2013 13:13:53 -0700 Subject: Create File APDU for GRCard SIM In-Reply-To: References: Message-ID: <1366661214-sup-2164@dennou> Excerpts from Matt S's message of 2013-04-22 12:27:54 -0700: > Hello, > > I'm struggling to get the 'CREATE FILE' APDU to work on a GRCard SIM. I'm > using the cyberflex-shell in interactive mode to send apdu's. Even though I > verify ADM pin 5, and follow the format on the wiki ( > http://openbsc.osmocom.org/trac/wiki/GrcardSIM), I still get the reponse > 0x9804 from the cards. I must be missing a step? 0x98 0x04 means "in contradiction with CHV status" (3GPP TS 51.011) > > Below is my failed session with a SIM, trying to create FID 0xabcd under > 3f00/7f20. Any guidance is greatly appreciated. 7f20 is the reserved id for DFgsm. Is this file (directory) not already present on the card? > > ATR: 3b 99 18 00 11 88 22 33 44 55 66 77 60 (;....."3DUfw`) > > (ISO 7816-4) > raw a0 20 00 05 08 44 44 44 44 44 44 44 44 > > -------------------------------------------------------------------------------- > > Beginning transaction 0 > > >> 0000: a0 20 00 05 08 44 44 44 44 44 44 44 44 . ...DDDDDDDD > > << 0000: 90 00 .. > > Ending transaction 0 > > -------------------------------------------------------------------------------- > > -------------------------------------------------------------------------------- > > Beginning transaction 1 > > >> 0000: a0 a4 00 00 02 3f 00 .....?. > > << 0000: 9f 17 .. > > Ending transaction 1 > > -------------------------------------------------------------------------------- > > -------------------------------------------------------------------------------- > > Beginning transaction 2 > > >> 0000: a0 a4 00 00 02 7f 20 ...... > > << 0000: 9f 17 .. > > Ending transaction 2 the card tells you 17 bytes of response are waiting for you. this is the select file response, and will tell about the status of the file you selected, and the corresponding access conditions. did you verify them? kevin From sixonefourb at gmail.com Tue Apr 23 15:08:23 2013 From: sixonefourb at gmail.com (Matt S) Date: Tue, 23 Apr 2013 11:08:23 -0400 Subject: Create File APDU for GRCard SIM Message-ID: > Excerpts from Matt S's message of 2013-04-22 12:27:54 -0700: >> Hello, >> >> I'm struggling to get the 'CREATE FILE' APDU to work on a GRCard SIM. I'm >> using the cyberflex-shell in interactive mode to send apdu's. Even though I >> verify ADM pin 5, and follow the format on the wiki ( >> http://openbsc.osmocom.org/trac/wiki/GrcardSIM), I still get the reponse >> 0x9804 from the cards. I must be missing a step? > > 0x98 0x04 means "in contradiction with CHV status" (3GPP TS 51.011) It looks like 0x98 0x04 is 'access condition not fulfilled' or 'authentication failed'. Regardless it appears I am not verifying proper access conditions. > >> >> Below is my failed session with a SIM, trying to create FID 0xabcd under >> 3f00/7f20. Any guidance is greatly appreciated. > > 7f20 is the reserved id for DFgsm. > Is this file (directory) not already present on the card? > Yes it is present. Although the card does not contain a file in this directory that I need. I'm trying to create a file underneath the DFgsm directory. I assume I need to select the directory in which I want prior to invoking the Create File APDU. > the card tells you 17 bytes of response are waiting for you. > this is the select file response, and will tell about the status of the file you selected, and the corresponding access conditions. > did you verify them? This is the SELECT response on DFgsm (0x7f20). Upon decoding, it appears there are a total of 12 CHV's and codes. I've tried resetting PIN1, PIN2, ADM1, and ADM2 all successfully, then verifying all 4 after selecting the DFgsm file, but I still get response 0x9804 when I try to create a new file. Create File on these GRCards use a proprietary APDU which I followed from the wiki, Not sure what I'm doing wrong? SELECT 0x7f20 -------------------------------------------------------------------------------- >> 0000: a0 c0 00 00 17 ..... << 0000: 00 00 00 0f 7f 20 02 00 00 00 00 00 0a 13 00 12 ..... .......... 0010: 0c 00 83 8a 83 8a 00 90 00 ......... -------------------------------------------------------------------------------- From joel at upgrade.co.uk Tue Apr 30 11:02:09 2013 From: joel at upgrade.co.uk (Joe Loxley) Date: Tue, 30 Apr 2013 12:02:09 +0100 Subject: SIMtrace Hardware Kit (Sysmocom) Message-ID: <9C29799BF6A61B44996B87F1F1C8B152064FB63D@uomail.upgrade.local> Good morning, I was wondering where I would be able to the following item, if it is through yourselves then please can I obtain a quote for 1 unit. SIMtrace Hardware Kit (Sysmocom) Regards Joe Loxley Business Account Manager Upgrade Options Ltd Clocktower Greenhills Rural Enterprise Centre Greenhills Estate Tilford Surrey GU10 2DZ Direct Dial: Group Dial: Switchboard: Fax: E-mail: Web: +44 (0)871 231 1905 +44 (0)871 231 1908 +44 (0)871 231 1900 +44 (0)871 231 1921 joel at upgrade.co.uk www.upgrade.co.uk For e-commerce services including EDi, FTP and XML providing access to real time stock, accounting and order processing contact your account manager today. Why not subscribe to our e-mail newsletter? Send a blank e-mail with "SUBSCRIBE" in the subject line to: subscribe at mail.upgrade.co.uk View a sample at www.upgrade.co.uk/offers/sample.html DISCLAIMER: Click here to view online Follow @upgradeoptions Follow @upgradeoptions Tweet <> -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: image001.jpg Type: image/jpeg Size: 6159 bytes Desc: image001.jpg URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: image002.jpg Type: image/jpeg Size: 3055 bytes Desc: image002.jpg URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: image003.jpg Type: image/jpeg Size: 1565 bytes Desc: image003.jpg URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: image004.jpg Type: image/jpeg Size: 3228 bytes Desc: image004.jpg URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: image005.gif Type: image/gif Size: 69 bytes Desc: image005.gif URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: image006.gif Type: image/gif Size: 433 bytes Desc: image006.gif URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: image007.gif Type: image/gif Size: 1643 bytes Desc: image007.gif URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: image008.gif Type: image/gif Size: 419 bytes Desc: image008.gif URL: