Project

General

Profile

SoftSIM » History » Revision 10

Revision 9 (Anonymous, 02/19/2016 10:49 PM) → Revision 10/15 (laforge, 01/15/2017 01:56 PM)

 
 
 h2. presentation 


 


 softSIM is a collection of tools to play with the SIM application (in the SIM card or elsewhere). 

 It uses "bluetooth":http://bluetooth.org/ "profile":https://www.bluetooth.org/Technical/Specifications/adopted.htm "SIM Access Profile":https://www.bluetooth.org/DocMan/handlers/DownloadDoc.ashx?doc_id=158740 as abstraction layer to access the SIM (but no bluetooth is required). 

 The final purpose is to provide a virtual SIM, simulated in software. 


 


 h2. requirements 


 


 All the scripts are written in ruby : 
 <pre> 
 
 sudo apt-get install ruby 
 </pre> 
 
 To use all tools, additional libraries and gems are required (you might want to use "sudo gem install" if you have ruby smartcard package loading problems): 
 <pre> 
 
 sudo apt-get install rubygems ruby-dev libdbus-ruby pcscd ruby-serialport libpcsclite1 libpcsclite-dev libruby libxml-ruby 
 gem install --user-install smartcard 
 </pre> 
 
 detailed information is in README 

 to get the code : 
 <pre> 
 
 git clone git://git.osmocom.org/softsim.git 
 </pre> 


 


 h2. tools 



 



 h3. SAP 


 


 SAP is useful as it provides a easy common way to talk to the SIM, not restricted to any device (as PCSC is). 

 <pre> 
 
 <pre> 
 
 A tool to connect to BTSAP servers is also provided (some phones offer this profile). 

 You have to tell the Server how to communicate with the SIM. 
 <pre> 

 

 <pre> 


 


 h3. SIM information 


 


 <pre> 

 

 <pre> 


 


 h3. SIM copy 


 


 <pre> 
 
 <pre> 
 
 ./demo_client.rb -t copy 
 </pre> 
 
 This file can then be used by the SIMOS server to do softSIM. 

 There are limitations to the copy. 
 Only the body of the files with access condition ALWAYS or CHV1 can be read, otherwise only the header is saved. 
 Ki (the secret key used for authentication and encryption) can not be extracted (SIM cards can not be cloned). 
 Only some A38 triplets are saved. 

 Copying a card takes > 5min. 
 Sometimes the copy hangs (the APDU traffic is blocked). 
 I don't know the origin of this problem (smartcard gem, pcscd, reader, card, ???). 
 Just wait ~30s and it will continue. 


 


 h2. bugs & more 


 


 Please contact the author if any bug is discovered.
Add picture from clipboard (Maximum size: 48.8 MB)