Cheers,
Domi
Hi Harald,thank you, I'll be happy to provide patches, as soon as I learn how tocommunicate with card.Is there anything to start with? Supplier just told us they obtained theSIM cards from "http://www.copysim.cn" and there is no reference torecommended software for programming these cards.I did obtain some informations using various utilities, but all I cannow do is to study "ETSI TS 102 221" and implement thecard-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, andI'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 CLA0x80, which probably indicates the availability of proprietary PDUs, asmentioned in grcardsim wiki. Is there any better tool, or am I usingbest available ones?Also mentioning the "bad echo value", is this related to implementationof specific sim-card, the usb reader/writer (possibly faulty) or the simcard? Because something as simple as ping/pong (or at least this is whatit seems like from code) should not fail generally, and it occurs onlywhen I provide "pin_adm" (adm1) and using grcardsim and sysmoUSIM-SJS1(prefered).Thank youMarekOn 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