EasyRe
2020-02-13 21:29:24 Author: bbs.pediy.com(查看原文) 阅读量:157 收藏

[原创]EasyRe

2020-2-5 15:07 468

攻防世界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;
}

2020安全开发者峰会(2020 SDC)议题征集 中国.北京 7月!


文章来源: https://bbs.pediy.com/thread-257522.htm
如有侵权请联系:admin#unsafe.sh