攻防世界easyre
ida查看 通过input字符串定位到401080
首先判断输入的字符长度,在将字符串逆序,再将每个字符与6异或,与固定字符串比较相等则正确,
#include <iostream>
using namespace std;
int main()
{
char cByte[] = { 0x78,0x49,0x72,0x43,0x6A,0x7E,0x3C,0x72,0x7C,0x32,0x74,0x57,0x73,0x76,0x33,0x50,0x74,0x49,0x7F,0x7A,0x6E,0x64,0x6B,0x61,0 };
char a1[0x100] = { 0 };
for (int i = 0; i < strlen(cByte); i++)
{
cByte[i] = (cByte[i] ^ 6) - 1;
}
for (int i = 0; i < strlen(cByte); i++)
{
a1[i] = cByte[strlen(cByte) - i - 1];
}
cout << a1;
}