攻防世界---Reversing-x64Elf-100

简介: 攻防世界---Reversing-x64Elf-100

1.下载附件,先查壳,无壳

2.用IDA分析,找到main函数,使用fn+f5,反编译

3.分析代码

4.双击进入条件函数中查看代码

5.编写代码,来源:

https://blog.csdn.net/2303_80796023/article/details/137086655?ops_request_misc=%257B%2522request%255Fid%2522%253A%2522171324225816800213098524%2522%252C%2522scm%2522%253A%252220140713.130102334..%2522%257D&request_id=171324225816800213098524&biz_id=0&utm_medium=distribute.pc_search_result.none-task-blog-2~all~sobaiduend~default-1-137086655-null-null.142^v100^pc_search_result_base5&utm_term=%E6%94%BB%E9%98%B2%E4%B8%96%E7%95%8CReversing-x64Elf-100&spm=1018.2226.3001.4187

https://blog.csdn.net/2303_80796023/article/details/137086655?ops_request_misc=%257B%2522request

#include<stdio.h>
int main() {
    char str1[] = "Dufhbmf";
    char str2[] = "pG`imos";     //拆成三个数组,str1,str2,str3
    char str3[] = "ewUglpt";
    char result;
    for (int i = 0; i <= 11; i++) {
        if (i % 3 == 0) {
            result = str1[2 * (i / 3)] - 1;
        }
        else if (i % 3 == 1) {
            result = str2[2 * (i / 3)] - 1;
        }
        else {
            result = str3[2 * (i / 3)] - 1;
        }
        printf("%c", result);
    }
    return 0;
}

6.运行得flag

Code_Talkers

相关文章
|
XML JSON jenkins
Python代码覆盖率分析工具----Coverage
Python代码覆盖率分析工具----Coverage
704 0
|
存储 前端开发 算法
C++线程 并发编程:std::thread、std::sync与std::packaged_task深度解析(一)
C++线程 并发编程:std::thread、std::sync与std::packaged_task深度解析
626 0
|
安全 Shell PHP
wzsc_文件上传(条件竞争)
wzsc_文件上传(条件竞争)
497 0
|
监控 安全 网络安全
恶意软件分析:解析与实践指南
【8月更文挑战第31天】
653 0
攻防世界toddler_regs菜鸟周更
攻防世界toddler_regs菜鸟周更
155 0
|
PHP
ctfshow-web3(伪协议php://input的利用)
ctfshow-web3(伪协议php://input的利用)
597 0
|
安全 PHP 数据安全/隐私保护
攻防世界17.fileinclude
攻防世界17.fileinclude