Wiki » History » Version 1
Anonymous, 02/19/2016 10:48 PM
1 | 1 | Dieter Spaar has modified the shadysim.py to support the configured OTA mode on the sysmoUSIM-SJS1 (and by extension the SIM Cards issued at 31C3, the following camp and 32C3). |
|
---|---|---|---|
2 | |||
3 | == What is it about == |
||
4 | |||
5 | (U)SIM cards are Java capable and there is the Globalplatform that specifies standards API. SMS can |
||
6 | be addressed directly to the SIM card, the SIM card will get events for network selection and others, it |
||
7 | can modify call establishment attempts. |
||
8 | |||
9 | The following will show how to build the example applet and install it on your USIM. If you create plugins |
||
10 | please make them available as Free Software and point us to them. If you find interesting Globalplatform |
||
11 | APIs or hacks please talk about it. |
||
12 | |||
13 | == What you will need == |
||
14 | |||
15 | * sysmoUSIM-SJS1 card |
||
16 | * KIC, KID private keys of the card |
||
17 | * PCSC, serial card reader or be able to send SMS to the SIM card |
||
18 | * JDK to create Java1.1 bytecode to create/customize SIM Toolkit applets. |
||
19 | |||
20 | == Building an example applet == |
||
21 | |||
22 | {{{ |
||
23 | git clone git://git.osmocom.org/sim/sim-tools/ |
||
24 | git clone git://git.osmocom.org/sim/hello-stk |
||
25 | cd hello-stk |
||
26 | make |
||
27 | ls -la ./build/javacard/org/toorcamp/HelloSTK/javacard/HelloSTK.cap |
||
28 | }}} |
||
29 | |||
30 | If you have a javac in your system you have now built an example Helloworld applet. |
||
31 | |||
32 | == Working with a PC/SC reader == |
||
33 | |||
34 | Make sure you have the KIC1, KIC2, KIC3 and KID1, KID2 and KID3 for your card. If you have a |
||
35 | CCC Event card from 31C3 or later you should be set and for the sysmoUSIM-SJS1 be sure to buy |
||
36 | the option that includes the ADM1 keys as otherwise no OTA keys will be provided to you (you will |
||
37 | have to buy a new batch of cards then). |
||
38 | |||
39 | {{{ |
||
40 | #Clone if you have not done the above |
||
41 | git clone git://git.osmocom.org/sim/sim-tools/ |
||
42 | cd sim-tools |
||
43 | |||
44 | # Load the applet |
||
45 | python shadysim.py --pcsc -l HelloSTK.cap -i HelloSTK.cap |
||
46 | --enable-sim-toolkit --module-aid d07002ca44900101 |
||
47 | --instance-aid d07002CA44900101 |
||
48 | --nonvolatile-memory-required 0100 |
||
49 | --volatile-memory-for-install 0100 |
||
50 | --max-menu-entry-text 15 |
||
51 | --max-menu-entries 05 --kic KIC1 |
||
52 | --kid KID1 |
||
53 | |||
54 | # Delete it (it takes time) |
||
55 | python shadysim.py --pcsc -d d07002CA449001 |
||
56 | --kic KIC1 |
||
57 | --kid KID1 |
||
58 | }}} |