标签:encoding dns font under 循环 get bin style 相等
// Bingo.EncryptStr // Token: 0x06000013 RID: 19 RVA: 0x00002424 File Offset: 0x00000624 public bool CheckStr(string text) { if (text.Length != 20) { return false; } byte[] bytes = Encoding.ASCII.GetBytes(text); byte[] array = new byte[] { 119, 77, 103, 79, 21, 115, 133, 97, 115, 87, 22, 115, 103, 89, 88, 93, 22, 89, 119, 81 }; byte[] array2 = new byte[] { 57, 13 }; for (int i = 0; i < array.Length; i++) { bytes[i] = Convert.ToByte((int)((bytes[i] ^ array2[0]) + array2[1])); if (bytes[i] != array[i]) { return false; } } return true; }
#include <stdio.h> #include <string.h> int main() { int arr1[] = { 119, 77, 103, 79, 21, 115, 133, 97, 115, 87, 22, 115, 103, 89, 88, 93, 22, 89, 119, 81 }; int arr2[] = {57,13}; int flag[20]; int length = 24 - 4; for (int i = 0; i < length; i++) flag[i] = ((arr1[i] - arr2[1]) ^ arr2[0]); for (int k = 0; k < length; k++) printf("%c", flag[k]); return 0; }
GeekChal 2019 - RE4(千反田和冰窠) - WriteUp
标签:encoding dns font under 循环 get bin style 相等
原文地址:https://www.cnblogs.com/Travelr/p/11869711.html