首页 > 解决方案 > 如何处理 shellcode 的输入?

问题描述

我现在正在做一个小的初学者练习。"从 argv[1] 和 argv[0] 写入文件 .cpp show messageBox,转换为 shellcode 并将该 shellcode 传递给第二个 .cpp 文件(第二个 .cpp 文件将输入 2 个值,传递这 2 个值而不是 shellcode 中的 args文件 1) .

我编写了 .cpp 文件 1. 然后使用从https://github.com/hasherezade/pe_to_shellcode转换为 shellcode 。但现在我不知道如何将 shellcode 传递给.cpp 2。文件并将 2 个初始输入值传递给 shellcode 以执行它们。请向开始学习 shellcode 的人解释,因为我是新手:<

ps:这是我的.cpp 1文件

    #include <Windows.h>
    #include <stdio.h>
    int main(int argc, char** argv)
    {   
        MessageBoxA(0, argv[1], argv[0], MB_OK); 
    }

.cpp 2文件看起来像这样

#include <stdio.h>
int main(int argc, char* argv[]) {
    char hello[] = "Hello ";
    char Name[] = "Kenzn2";
    // shellcode show messageBox from Hello[] and Name[]
}

标签: c++shellcode

解决方案


推荐阅读