
#
SIM CardsThe SIM cards used in our infrastructure are mostly programmable cards developed by Open-Cells. SIM cards interface is a standard one: raw dialog over a serial interface. These readers are seen as a standard bidirectional serial link over USB in Linux and windows. Any other raw serial interface UICC to USB would be compatible.
The cards are encoded and programmed to use PLMN (MNC: 208 and MCC: 92) using UICC/SIM programing tool from Open Cells open-cells
#
Programming SIM CardsReading Existing value in the SIM card
Example of writing into the SIM card the follwing Information:
SIM card parameter | Value |
---|---|
adm | 12345678 |
IMSI | 208920100001101 |
ISDN | 00000001 |
ACC | 0001 |
KEY | 6874736969202073796d4b2079650a73 |
OPC | 504f20634f6320504f50206363500a4f |
SPN | SnTLux |
Run the following command:
This gives the following results:
info
The parameters referenced here are referring to France's MCC. However, this should be designed carfully according to the PLMN code (MCC and MNC) of the Base-Station and to avoid IMSI collision. see the mobile country code section on Wikipidia.
#
List of SIM cards within the InfrastructureTable below provides a partial information about the SNT SIM Cards.
SIM# | PLMN | ID | Ki | OP | SQN | SPN | vendor |
---|---|---|---|---|---|---|---|
0 | 27072 | 0100001101 | 6874736969202073796d4b2079650a73 | 504f20634f6320504f50206363500a4f | 000000000021 | SNT | OpenCells |
1 | 20892 | 0000000001 | 6874736969202073796d4b2079650a74 | 504f20634f6320504f50206363500a4f | 000000000021 | SNT | OpenCells |
2 | 20892 | 0000000002 | 6874736969202073796d4b2079650a73 | 504f20634f6320504f50206363500a44 | 000000000020 | SNT | OpenCells |
3 | 27001 | xxxxxxxxxx | xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx | xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx | xxxxxxxxxxxx | POST | POST |
4 | 27001 | xxxxxxxxxx | xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx | xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx | xxxxxxxxxxxx | POST | POST |
5 | 27077 | xxxxxxxxxx | xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx | xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx | xxxxxxxxxxxx | Proximus | Proximus |
6 | 27077 | xxxxxxxxxx | xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx | xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx | xxxxxxxxxxxx | Proximus | Proximus |
info
The PLMN and IMSIs will be updated to match Luxembourg's MCC
.
#
Notes- PLMN: MCC|MNC, where | means concatenation.
- IMSI: PLMN|ID, where | means concatenation.
- The apn: snt.ipv4
- The algorithm: Milenage
- SQN: use a pair value
- OPc:8E27B6AF0E692E750F32667A3B14605D (9f36a7be1f783f641e23776b2a05714c xor 11111111111111111111111111111111). To calculate the encrypted OP, use the following tools as follows: Enter Ki value in the first field (AES Key) , Enter OP value in the second field (Input Data), Click Encrypt. Then XOR the resulted value with the OP.