c++ - 如何处理 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[]
}
解决方案
推荐阅读
- facebook-graph-api - 我可以使用 Facebook Marketing API Targeting Search 获得自定义地址自动填充选项吗?
- c - 在C中同时读取命令行和recvfrom
- database - 错误:列“own_amount”的类型为数字,但表达式的类型为字符变化
- sql - 在 BigQuery/Standard SQL 中使用数组确定给定日期的状态
- swift - 如何解决 UIResponder 无法识别的问题?
- user-interface - 有人可以解释如何添加滑块对象以控制自己的伺服电机吗?
- python - Plotly-Dash:3 个回调,相同的输入列表 - 2 个被调用,1 个不被调用
- login - Identity Server 4 注册用户后自动登录
- java - Firebase MLKit 可以用来检测多边形吗?
- c++ - 通过 C++ 单击按钮后更新 QML TableView