Hello,
some years ago I have developed a working SIM card emulator for Silver Wafer Card (PIC16F877 and 24LC256).
It supports GSM 11.11 and GSM 11.14 standards and is fully functional inside cell phone (so far I have been using it for 10+ years).
Unfortunately it is written in somewhat rusty PIC assembly -- still it might be usable for your purposes.
I have published it on "https://github.com/vlp/ssim", so feel free to have a look.
Best regards
VLP
Thanks for all the answers. Everything is fine up to now.
May i ask if you know a list of the available apdu commands for SIM and
USIM?
Thanks
On 10/18/2012 01:00 PM, simtrace-request(a)lists.osmocom.org wrote:
> Send simtrace mailing list submissions to
> simtrace(a)lists.osmocom.org
>
> To subscribe or unsubscribe via the World Wide Web, visit
> https://lists.osmocom.org/mailman/listinfo/simtrace
> or, via email, send a message with subject or body 'help' to
> simtrace-request(a)lists.osmocom.org
>
> You can reach the person managing the list at
> simtrace-owner(a)lists.osmocom.org
>
> When replying, please edit your Subject line so it is more specific
> than "Re: Contents of simtrace digest..."
>
>
> Today's Topics:
>
> 1. SIMtrace hardware questions (Stefanos Malliaros)
> 2. Re: SIMtrace hardware questions (Kevin Redon)
>
>
> ----------------------------------------------------------------------
>
> Message: 1
> Date: Wed, 17 Oct 2012 21:57:58 +0300
> From: Stefanos Malliaros <stefmalli89(a)gmail.com>
> To: simtrace(a)lists.osmocom.org
> Subject: SIMtrace hardware questions
> Message-ID: <507EFFB6.3050600(a)gmail.com>
> Content-Type: text/plain; charset=UTF-8; format=flowed
>
> Good evening.
>
> I am interested in your SIMtrace hardware board and i would like to ask
> a few questions if possible. ( http://bb.osmocom.org/trac/wiki/SIMtrace)
>
> First of all i am interested in sniffing data between both SIM and USIM.
> As a result, i would like to ask if your product fully works with these
> cards and if i will be able to capture all the data between the mobile
> terminal and the (U)SIM. (eg. usim authentication)
>
> Furthermore, i have some queries about the wireshark integration.
> The wireshark intefration supports the GSMTAP protocol. this protocol is
> used in order to parse the data between the SIM card and the mobile
> terminal. Does this protocol also supports parsing data between the USIM
> and the mobile terminal?
>
> Thanks
>
> Stefanos
>
>
>
> ------------------------------
>
> Message: 2
> Date: Thu, 18 Oct 2012 00:47:05 +0200
> From: Kevin Redon <ml(a)mail.tsaitgaist.info>
> To: simtrace <simtrace(a)lists.osmocom.org>
> Subject: Re: SIMtrace hardware questions
> Message-ID: <1350513125-sup-6210@dennou>
> Content-Type: text/plain; charset=UTF-8
>
> Hi,
>
> Excerpts from Stefanos Malliaros's message of Wed Oct 17 20:57:58 +0200 2012:
>> Good evening.
>>
>> I am interested in your SIMtrace hardware board and i would like to ask
>> a few questions if possible. ( http://bb.osmocom.org/trac/wiki/SIMtrace)
>>
>> First of all i am interested in sniffing data between both SIM and USIM.
>> As a result, i would like to ask if your product fully works with these
>> cards and if i will be able to capture all the data between the mobile
>> terminal and the (U)SIM. (eg. usim authentication)
> Yes, SIMtrace is capable of sniffing the communication between (U)SIM and mobile.
> To be more precise, 2 transmission protocols exist: T=0, and T=1.
> T=0 is the default and most common protocol used. It is fully supported by SIMtrace.
> If the (U)SIM and phone both support T=1, and the (U)SIM prefers T=1 and the phone follows this preference, or the phone wants to use it (because it's faster), then T=1 can be used.
> It is not too different to T=0, but the sniffing and decoding is not implemented in SIMtrace.
> The hardware supports it, but not the software (yet). This is still a todo for the moment, but low priority because rarely used.
> Also there have been some corner cases concerning T=0 with high or curious data rates. This lead to faulty decoding but was fixed for the known cases.
> If you have such a corner case, please tell the mailing list, and it should be fixed.
>
>> Furthermore, i have some queries about the wireshark integration.
>> The wireshark intefration supports the GSMTAP protocol. this protocol is
>> used in order to parse the data between the SIM card and the mobile
>> terminal. Does this protocol also supports parsing data between the USIM
>> and the mobile terminal?
> Only the APDU (messages exchanged using T=0 or T=1) decoding for SIM has been implemented into wireshark.
> Most of the commands in USIM are similar to SIM, but there are some exceptions where the parsing will go wrong (USIM only APDU type, and some commands).
>
> regards,
> kevin
>
>
>
>
> ------------------------------
>
> _______________________________________________
> simtrace mailing list
> simtrace(a)lists.osmocom.org
> https://lists.osmocom.org/mailman/listinfo/simtrace
>
>
> End of simtrace Digest, Vol 18, Issue 3
> ***************************************
Good evening.
I am interested in your SIMtrace hardware board and i would like to ask
a few questions if possible. ( http://bb.osmocom.org/trac/wiki/SIMtrace)
First of all i am interested in sniffing data between both SIM and USIM.
As a result, i would like to ask if your product fully works with these
cards and if i will be able to capture all the data between the mobile
terminal and the (U)SIM. (eg. usim authentication)
Furthermore, i have some queries about the wireshark integration.
The wireshark intefration supports the GSMTAP protocol. this protocol is
used in order to parse the data between the SIM card and the mobile
terminal. Does this protocol also supports parsing data between the USIM
and the mobile terminal?
Thanks
Stefanos
Hi all!
I *think* Harald is pretty busy and also unlikely to attend
prospective meeting tomorrow.
Also there is bank holiday tomorrow in Germany and at least
I personally will use that to stay away from technology for
a bit, so I won't come.
Nevertheless, I thought I'd write this email to remind
people that in theory there is a meeting tomorrow and
discuss if other people attend.
I personally would propose to shift the meeting to next week
(for purely selfish reasons ;).
As far as I know, there is no formal presentation tomorrow.
Anyway, will anyone attend tomorrow or is everyone in favor
of shifting a week?
In case it takes place, for the people who did not attend so
far, the usual snippet from Harald's mails:
Oct 3, 8pm @ CCC Berlin, Marienstr. 11, 10113 Berlin
If you are interested to show up, feel free to do so. There is no
registration required. The meeting is free as in "free beer", despite
no actual free beer being around.
Cheers
Nico