Script-half.txt 2.46 KB
//卡片复位
RESET 
//选择应用
call sendcmd(00 A4 04 00 10 D6C7D0C5C8DAB4B4D4B0C7F8D3A6D3C3)
//校验认证码
call sendcmd(80 2A 00 00 10 FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF) 
//创建MF
call sendcmd(80 E0 00 00 19 3F00FFFFAAAA0108FFD6C7D0C5C8DAB4B4D4B0C7F8D3A6D3C3) 
//创建密钥文件
call sendcmd(80 E0 02 00 0B 1E 0000 0090 EFAA 00 30 FF FF) 
//主控密钥3900
call sendcmd(80D401001539F0F0FF0A FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF0) 
//内部认证密钥3001
call sendcmd(80D401011530F0AAFF01 FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF) 
//内部认证密钥3002
call sendcmd(80D401021530F0AAFF01 FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF) 
//内部认证密钥3003
call sendcmd(80D401031530F0AAFF01 FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF) 
//维护密钥3601
call sendcmd(80D401011536F0AAFF01 FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF4) 
//维护密钥3602
call sendcmd(80D401021536F0AAFF01 FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF4) 

//创建dir变长记录文件0001
call sendcmd(80E0 0200 0B 02 0001 0050 F0F0 01 21 FF FF) 
call sendcmd(00DC 010C 32 70 30 61164F08B5D8C0FBD4DACFDF500A11111111111111111111 61164F08B5D8C0FBC7AEB0FC500A22222222222222222222) 
//创建应用基本信息文件0005
call sendcmd(80E0 0200 0B 00 0005 00FA F0F0 05 21 00 FF) 
//写0005文件 卡面号6/卡类型编码8/发卡机构编码10/RFU 226
call sendcmd(00D6 8500 1A 888880000001 100001FFFFFFFFFF 8888FFFFFFFFFFFFFFFF 002F) 
                  
//创建保留文件0006
call sendcmd(80E0 0200 0B 00 0006 00FA F0F0 06 22 FF FF) 

//创建DF01
call sendcmd(80E0 0100 11 DF01 07FF AAAA 9508 FF B5D8C0FBD4DACFDF) 
//选择DF01
call sendcmd(00A4 0400 08 B5D8C0FBD4DACFDF)
//创建密钥文件
call sendcmd(80 E0 02 00 0B 1E 0000 0200 EFAA 00 30 FF FF) 
//主控密钥3900
call sendcmd(80D401001539F0F0FF0A FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF6) 
//外部认证密钥3901
call sendcmd(80D401011539F0AAFF01 FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF7) 
//维护密钥3601
call sendcmd(80D401011536F0AAFF01 FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF8) 
//维护密钥3602
call sendcmd(80D401021536F0AAFF01 FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF8) 
//创建应用基本信息文件0015
call sendcmd(80E0 0200 0B 00 0015 00FA F1F0 15 22 00 FF) 
//创建应用基本信息文件0016
call sendcmd(80E0 0200 0B 00 0016 00FA F0F0 16 21 00 FF) 
//本地特色应用记录文件0019 
call sendcmd(80E0 0200 0B 02 0019 0119 F0F0 19 21 FF FF) 
//创建DF02
call sendcmd(80E0 0100 11 DF02 07FF AAAA 9508 FF B5D8C0FBC7AEB0FC) 
//选择DF02
call sendcmd(00A4 0400 08 B5D8C0FBC7AEB0FC)
//创建密钥文件
call sendcmd(80 E0 02 00 0B 1E 0000 0200 EFAA 00 30 FF FF) 
//主控密钥3900
call sendcmd(80D401001539F0F0330A 88888888888888888888888888888888) 
//结束个人化
call sendcmd(800A000000)