SoftSIM » History » Version 2
tsaitgaist, 02/19/2016 10:49 PM
info_client added
1 | 1 | tsaitgaist | == presentation == |
---|---|---|---|
2 | |||
3 | softSIM is a collection of tools to play with the SIM application (in the SIM card or elsewhere). |
||
4 | |||
5 | It uses [http://bluetooth.org/ bluetooth] [https://www.bluetooth.org/Technical/Specifications/adopted.htm profile] [https://www.bluetooth.org/DocMan/handlers/DownloadDoc.ashx?doc_id=158740 SIM Access Profile] as abstraction layer to access the SIM (but no bluetooth is required). |
||
6 | |||
7 | The final purpose is to provide a virtual SIM, simulated in software. |
||
8 | |||
9 | == requirements == |
||
10 | |||
11 | All the scripts are written in ruby : |
||
12 | {{{ |
||
13 | sudo apt-get install ruby |
||
14 | }}} |
||
15 | To use all tools, additionnal libraries and gems are required : |
||
16 | {{{ |
||
17 | sudo apt-get install rubygems ruby-dev |
||
18 | gem source -a http://rubygems.org |
||
19 | sudo apt-get install libdbus-ruby |
||
20 | sudo gem install serialport |
||
21 | sudo apt-get install pcscd libpcsclite1 libpcsclite-dev libruby |
||
22 | sudo gem install smartcard |
||
23 | sudo apt-get install libxml-ruby |
||
24 | }}} |
||
25 | detailed information is in README |
||
26 | |||
27 | to get the code : |
||
28 | {{{ |
||
29 | git clone git://git.osmocom.org/softsim.git |
||
30 | }}} |
||
31 | |||
32 | == tools == |
||
33 | |||
34 | 2 | tsaitgaist | === SAP === |
35 | |||
36 | 1 | tsaitgaist | SAP is useful as it provides a easy common way to talk to the SIM, not restricted to any device (as PCSC is). |
37 | |||
38 | 2 | tsaitgaist | The SAP methods are implemented in {{{sap/common.rb}}}. Client and Server are also provided in {{{sap/client.rb}}} and {{{sap/server.rb}}}. |
39 | 1 | tsaitgaist | The client is ready to use, with the {{{connect,atr,apdu,disconnect}}} methods. |
40 | A tool to connect to BTSAP servers is also provided (some phones offer this profile). |
||
41 | |||
42 | You have to tell the Server how to communicate with the SIM. |
||
43 | Two implementations are provided : {{{pcsc_server.rb}}} uses as normal card reader (PCSC), and {{{sim_server.rb}}} which is the software SIM (a SIMOS is partially implemented, the SIM files have to be provided). |
||
44 | |||
45 | To test it, use {{{demo_client.rb}}} and {{{demo_server.rb}}}. |
||
46 | 2 | tsaitgaist | |
47 | === SIM information === |
||
48 | |||
49 | {{{info_client.rb}}} retrieves and displays information stored in the SIM (IMSI,MSISDM,[http://www.mirider.com/weblog/2010/08/03/#20100803-ciphering_indicator OFM],Kc,...). |
||
50 | |||
51 | You can run it using {{{demo_client.rb}}} |
||
52 | 1 | tsaitgaist | |
53 | Please contact the author if any bug is discovered. |