Home > Back-end >  How to write the IMSI unicom SIM card
How to write the IMSI unicom SIM card

Time:10-09

Our company to do the virtual operation, apply to the China unicom card, and then to make card, produce a piece of card, including the white card, when I need to give the white card card, write a IMSI, this don't know how to write, I now use ISO7816 protocol specification, here are some command:
Value command name terms
'0' ERASE e BINARY 6.4
'20' VERIFY the validation of 6.12
'70' MANAGE CHANNEL management CHANNEL 6.16
'82' EXTERNAL AUTHENTICATE EXTERNAL validation 6.14
'84' GET CHALLENGE random number 6.15
'88' INTERNAL AUTHENTICATE INTERNAL validation 6.13
"A4" SELECT the FILE SELECT files
6.11'BO' READ BINARY READ BINARY 6.1
"CO" GET RESPONSE RESPONSE 7.1
"C2" ENVELOPE ENVELOPE 7.2
"CA" GET DATA to GET the DATA of 6.9
'DO' WRITE WRITE BINARY BINARY 6.2
"D2" WRITE RECORD written RECORD 6.6
'D6 UPDATE BINARY UPDATE BINARY file
6.3"DA" PUT the DATA updating DATA 6.10
'DC' UPDATE RECORD RECORD UPDATE 6.8
Add records to the 'E2 APPEND RECORD 6.7

I can now READ BINARY READ IMSI, the code is as follows:
Select (0 x3f00 resApdu);//to find the main file
Select (0 x7f20 resApdu);//find a directory file
Select (0 x6f07 resApdu);//to find basic file
Then the ReadBinary (0, 0, resApdu); Analytical data returned IMSI,
Now I don't know how to write, please tell master

CodePudding user response:

Help, I would only break small capacity card number to do more in the past
  • Related