Offensive and defensive world EasyRe WP

Offensive and defensive world EasyRe

After checking the unpacking information, throw it into ida32, press shift+F12 and find that there is a flag in the first line, but it is not correct, and there is a right\n

Insert picture description here

So it can be judged that the real flag is near this instruction, so check the pseudo code

Insert picture description here
After seeing this, it is easy to reverse the flag, the code is as follows:

#include <stdio.h>
#include <string.h>
#include <stdlib.h>

int  main()
{
    
    
    const char* tar = "xIrCj~<r|2tWsv3PtIzndka";
    char flag[25] = {
    
    0};
    for (int i = 0; i < 24; i++)
    {
    
    
        flag[i] = tar[23 - i] ^ 0x6;
        flag[i]--;
    }
    printf("%s",flag);

} 

Guess you like

Origin blog.csdn.net/steve95/article/details/109186345