请根据目标程序选择32位或64位的程序
在此程序的目录下创建 inj.yml 文件
cmd: notepad.exe之后双击此程序即可启动
对于 DLL 注入,请添加 dlls 字段
cmd: notepad.exe
dlls:
- mylib.dll
- C:/path/to/another.dll可选字段 dir 将会指定程序运行目录
cmd: game/start.exe
dir: game
dlls:
- plugin.dll需要 cargo 与 MSVC 工具链
根据需求,启动32位/64位的 Visual Studio Developer 终端
git clone https://github.com/peter2500zz/hexphage
cd hexphage
git submodule init
git submodule update使用 cargo 构建
# 对于32位
cargo build --release --target i686-pc-windows-msvc
# 对于64位
cargo build --release --target x86_64-pc-windows-msvc