Skip to content

rust远程shellcode加载, 过Microsoft Defender、360、火绒

License

Notifications You must be signed in to change notification settings

BKLockly/RustLoader

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

RustLoader

学习rust的练习项目,shellcode未经加密解密处理❗

Rust环境

请参考 Rust环境配置说明

使用

运行gen.py填入url, 以及注入的进程(默认为notepad)

python gen.py

将控制台上输出的变量去替代对应位置的变量, 之后开始编译:

cargo build --release

生成物位于target/release/,可以用strip再次剥离其中的调试信息和其他不必要的数据。

cargo install cargo-strip
cargo strip -t target/release/RustLoader.exe

upx压缩(之后最好patcher处理一下)

upx -9 --best --force target/release/RustLoader.exe

测试

添加反沙箱后, 无法在虚拟机中测试, 以下测试均使用直接生成的产物(不使用upx, upx-patcher, 反沙箱)

微步测试检出1/28 weibu.png 火绒 huorong.png 腾讯电脑管家 tencent.png 360 360.png defender defender.png