复旦微电子正式发卡脚本.txt 1.44 KB
//删除并建立mf
0084000008;[0:8]//取随机数
Fun_DesEn([01:8],FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF,[11:18])//计算DES
0082000008+[11:18];SW=9000//外部认证
800E020000;SW=9000

//建立3F00
80E03F001D38FFFFFAFA01FFFFFF12345678D6C7D0C5C8DAB4B4D4B0C7F8D3A6D3C3		;SW=9000

//建立Key文件 
80E00000073F009001F0FFFF

//写入秘钥
80D40100 15F9F0F0AAFF FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF0
80D40101 15F6F0F0FFFF FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF4

//创建05文件
80E0000507A800FAF0F0FFFE

//写入基本信息
04d60000fa888860000001100001FFFFFFFFFFFFFFFFFFFFFFFFFFFFFF001FFFFF0B63BB4F4E393131163B1303FAE1CF6FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF

//创建df01
80E0DF01103807FFFAFA85FFFFB5D8C0FBD4DACFDF

//创建秘钥文件
80E00000073F009001F0FFFF

//写入秘钥
80D40100 15F9F0F0AAFF FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF6
80D40101 15F9F0F0BBFF FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF7
80D40101 15F6F0F0FFFF FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF8

//创建15文件
80E0001507A800FABBF0FFFE

//替换秘钥命令
15F9F0F0AAFF + 新秘钥 des 得密文
84d439001c + 密文 计算mac
指令 + mac

//创建测试目录
80E0DF04103807FFFAFA85FFFFeeeeeeeeeeeeeeee
//创建测试文件
80E00001072800FAF0F0FFFF