public byte[] AddBanInfo(byte[] data)
{
int index = IndexOf(data, System.Text.Encoding.Default.GetBytes("ACM_NeedToBan"));
if (index != -1)
{
data[index + 0xD] = 0x74;
}
index = IndexOf(data, System.Text.Encoding.Default.GetBytes("ACM_NeedToArrest"));
if (index != -1)
{
data[index + 0x10] = 0x74;
}
index = IndexOf(data, System.Text.Encoding.Default.GetBytes("ACM_IsExcluded"));
if (index != -1)
{
data[index + 0xE] = 0x74;
}
byte[] dataadd = {
0xBE, 0x03, 0x7B, 0x22, 0x43, 0x68, 0x65, 0x63, 0x6B, 0x73, 0x22, 0x3A, 0x7B, 0x22, 0x52, 0x31,
0x22, 0x3A, 0x7B, 0x22, 0x64, 0x61, 0x74, 0x61, 0x22, 0x3A, 0x7B, 0x22, 0x4D, 0x61, 0x78, 0x55,
0x73, 0x65, 0x72, 0x43, 0x6F, 0x69, 0x6E, 0x73, 0x41, 0x66, 0x74, 0x65, 0x72, 0x41, 0x72, 0x72,
0x65, 0x73, 0x74, 0x22, 0x3A, 0x34, 0x39, 0x39, 0x33, 0x35, 0x38, 0x30, 0x35, 0x2C, 0x22, 0x4D,
0x61, 0x78, 0x55, 0x73, 0x65, 0x72, 0x43, 0x6F, 0x69, 0x6E, 0x73, 0x42, 0x65, 0x66, 0x6F, 0x72,
0x65, 0x41, 0x72, 0x72, 0x65, 0x73, 0x74, 0x22, 0x3A, 0x32, 0x31, 0x30, 0x38, 0x34, 0x38, 0x37,
0x35, 0x35, 0x36, 0x7D, 0x2C, 0x22, 0x74, 0x69, 0x6D, 0x65, 0x73, 0x74, 0x61, 0x6D, 0x70, 0x22,
0x3A, 0x31, 0x35, 0x34, 0x36, 0x30, 0x39, 0x35, 0x31, 0x32, 0x39, 0x7D, 0x2C, 0x22, 0x52, 0x34,
0x22, 0x3A, 0x7B, 0x22, 0x64, 0x61, 0x74, 0x61, 0x22, 0x3A, 0x7B, 0x22, 0x6E, 0x75, 0x6D, 0x62,
0x65, 0x72, 0x22, 0x3A, 0x31, 0x7D, 0x2C, 0x22, 0x74, 0x69, 0x6D, 0x65, 0x73, 0x74, 0x61, 0x6D,
0x70, 0x22, 0x3A, 0x31, 0x35, 0x34, 0x36, 0x30, 0x39, 0x35, 0x31, 0x32, 0x39, 0x7D, 0x7D, 0x2C,
0x22, 0x61, 0x72, 0x72, 0x65, 0x73, 0x74, 0x65, 0x64, 0x22, 0x3A, 0x7B, 0x22, 0x42, 0x6F, 0x6D,
0x62, 0x73, 0x42, 0x6F, 0x6F, 0x73, 0x74, 0x22, 0x3A, 0x31, 0x39, 0x2C, 0x22, 0x43, 0x72, 0x6F,
0x73, 0x73, 0x42, 0x6F, 0x6E, 0x75, 0x73, 0x22, 0x3A, 0x36, 0x2C, 0x22, 0x44, 0x79, 0x6E, 0x61,
0x6D, 0x69, 0x74, 0x65, 0x41, 0x6E, 0x64, 0x4C, 0x69, 0x67, 0x68, 0x74, 0x6E, 0x69, 0x6E, 0x67,
0x42, 0x6F, 0x6F, 0x73, 0x74, 0x22, 0x3A, 0x39, 0x2C, 0x22, 0x47, 0x6C, 0x6F, 0x76, 0x65, 0x42,
0x6F, 0x6E, 0x75, 0x73, 0x22, 0x3A, 0x33, 0x2C, 0x22, 0x48, 0x61, 0x6D, 0x6D, 0x65, 0x72, 0x42,
0x6F, 0x6E, 0x75, 0x73, 0x22, 0x3A, 0x31, 0x30, 0x2C, 0x22, 0x4C, 0x69, 0x67, 0x68, 0x74, 0x6E,
0x69, 0x6E, 0x67, 0x42, 0x6F, 0x6F, 0x73, 0x74, 0x22, 0x3A, 0x31, 0x35, 0x2C, 0x22, 0x63, 0x6F,
0x69, 0x6E, 0x73, 0x22, 0x3A, 0x32, 0x31, 0x30, 0x38, 0x34, 0x38, 0x37, 0x35, 0x35, 0x36, 0x2C,
0x22, 0x73, 0x74, 0x61, 0x72, 0x73, 0x22, 0x3A, 0x38, 0x39, 0x31, 0x34, 0x2C, 0x22, 0x74, 0x6F,
0x6B, 0x65, 0x6E, 0x73, 0x22, 0x3A, 0x31, 0x32, 0x30, 0x7D, 0x2C, 0x22, 0x62, 0x61, 0x6E, 0x6E,
0x65, 0x64, 0x22, 0x3A, 0x74, 0x72, 0x75, 0x65, 0x2C, 0x22, 0x6C, 0x65, 0x76, 0x65, 0x6C, 0x73,
0x22, 0x3A, 0x7B, 0x22, 0x61, 0x72, 0x72, 0x65, 0x73, 0x74, 0x22, 0x3A, 0x31, 0x35, 0x37, 0x35,
0x2C, 0x22, 0x62, 0x61, 0x6E, 0x22, 0x3A, 0x31, 0x36, 0x35, 0x32, 0x7D, 0x2C, 0x22, 0x74, 0x69,
0x6D, 0x65, 0x73, 0x74, 0x61, 0x6D, 0x70, 0x22, 0x3A, 0x7B, 0x22, 0x61, 0x72, 0x72, 0x65, 0x73,
0x74, 0x22, 0x3A, 0x31, 0x35, 0x34, 0x36, 0x32, 0x31, 0x31, 0x33, 0x34, 0x39, 0x2C, 0x22, 0x62,
0x61, 0x6E, 0x22, 0x3A, 0x31, 0x35, 0x35, 0x32, 0x36, 0x36, 0x33, 0x35, 0x32, 0x36, 0x7D, 0x7D
};
int start = IndexOf(data, System.Text.Encoding.Default.GetBytes("ACM_StateStores"));
int end = IndexOf(data, System.Text.Encoding.Default.GetBytes("AGId"));
if (end - start > 15)
{
byte[] buff = new byte[data.Length - 5 + dataadd.Length];
Array.Copy(data, buff, start + 0xF);
Array.Copy(dataadd,0, buff, start + 0xF, dataadd.Length);
Array.Copy(data, end - 1, buff, start + 0xF + dataadd.Length, data.Length - end + 1);
data = buff;
}
return data;
}
就是上面的转化成易语言,哪位帮忙弄一下,感谢
[注意]传递专业知识、拓宽行业人脉——看雪讲师团队等你加入!