其他分享
首页 > 其他分享> > Revers篇:攻防世界reverse进阶re2-cpp-is-awesome

Revers篇:攻防世界reverse进阶re2-cpp-is-awesome

作者:互联网

攻防世界reverse进阶re2-cpp-is-awesome

IDA分析

很简单的一个程序
在这里插入图片描述

程序流程分析

获取flag

#include <iostream>

int main()
{
    char flag_list[] = "L3t_ME_T3ll_Y0u_S0m3th1ng_1mp0rtant_A_{FL4G}_W0nt_b3_3X4ctly_th4t_345y_t0_c4ptur3_H0wev3r_1T_w1ll_b3_C00l_1F_Y0u_g0t_1t";
    int dword_ptr[] = { 0x24,0x00,0x05,0x36,0x65,0x07,0x27,0x26,0x2D,0x01,0x03,0x00,0x0D,0x56,0x01,0x03,0x65,0x03,0x2D,0x16,0x02,0x15,0x03,0x65,0x00,0x29,0x44,0x44,0x01,0x44,0x2B };
    char v9 = 0;
    int v5 = 0;
    while (v5<(sizeof(dword_ptr)/4))
    {
        
        v9 = flag_list[dword_ptr[v5]];
        ++v5;
        printf("%c", v9);
    }
    return 0;
}

运行结果

结果为:ALEXCTF{W3_L0v3_C_W1th_CL45535}
在这里插入图片描述

标签:reverse,re2,awesome,0x03,flag,0x44,v5,v9
来源: https://blog.csdn.net/weixin_44644249/article/details/113690530