Hi Marek,
Are you trying to communicate with the card or program it?
Cheers,
Domi
2018. jan. 31. dátummal, 10:18 időpontban Marek Sebera <marek.sebera(a)gmail.com>
írta:
Hi Harald,
thank you, I'll be happy to provide patches, as soon as I learn how to
communicate with card.
Is there anything to start with? Supplier just told us they obtained the
SIM cards from "http://www.copysim.cn" and there is no reference to
recommended software for programming these cards.
I did obtain some informations using various utilities, but all I can
now do is to study "ETSI TS 102 221" and implement the
card-commands-discovery or bruteforce myself.
Or am I wrong, and I've missed some utilities that could aid my fight?
I've wrote some shell using both pySim and mitshell/card frameworks, and
I've confirmed few things (ie. available commands, and CLA being 0x00,
which means these cards are USIM), but passwords for ADM1 PIN (12345678,
44444444, 00000000) do not work. Also card partially responds to CLA
0x80, which probably indicates the availability of proprietary PDUs, as
mentioned in grcardsim wiki. Is there any better tool, or am I using
best available ones?
Also mentioning the "bad echo value", is this related to implementation
of specific sim-card, the usb reader/writer (possibly faulty) or the sim
card? Because something as simple as ping/pong (or at least this is what
it seems like from code) should not fail generally, and it occurs only
when I provide "pin_adm" (adm1) and using grcardsim and sysmoUSIM-SJS1
(prefered).
Thank you
Marek
On 01/29/2018 11:15 PM, Harald Welte wrote:
Hi Marek,
On Mon, Jan 29, 2018 at 05:39:24PM +0100, Marek
Sebera wrote:
ATR: 3B 9F 95 80 1F C3 80 31 E0 73 FE 21 13 57 86 81 02 86 98 44 18 A8
GREEN CARD, Grcard (Hong Kong ) Co.,Limited, LTE Usim Card
(Telecommunication)
Celcom Postpaid 3G (Telecommunication)
The supplier of the cards you mention hasever contributed
in any way to pySim. We simply did some protocol tracing of an early
GRSIM card (2G, not USIM or LTE) and implemented code for it based on reverse
engineering, just like for the early MagicSIM. If you have a different
card, it will for sure not work.
If you would like to implement support for the card models you are using,
please feel free to contribute patches, we're happy to add support for
more cards.
The only SIM card supplier that ever contributed development of pySim code
was sysmocom, and most recently, also fairwaves.
So I guess you have the choice of either contributing code for the cards
you work with, or use cards where the suppliers actually care about pySim
support.
Kind regards,
Harald