这里主要是脚本

int -> char

1
2
3
4
5
6
7
8
9
int enc[] ={1416114547,1597076319,1096762721,1937334096,2037671984,1851744082,863397202,1936023344}
char flag[32] = {0}
for (int i = 0; i < 8; i++)
{//下面是int类型转成char类型
flag[4 * i] = enc[i] >> 24;
flag[4 * i + 1] = (enc[i] >> 16) ^ 0xFF000000;
flag[4 * i + 2] = (enc[i] >> 8) ^ 0xFF000000;
flag[4 * i + 3] = enc[i] ^ 0xFF000000;
}