使用C++的 shellcode 注入技术(附工具)

admin 2022年10月29日17:08:25评论75 views字数 832阅读2分46秒阅读模式

===================================

免责声明

请勿利用文章内的相关技术从事非法测试,由于传播、利用此文所提供的信息而造成的任何直接或者间接的后果及损失,均由使用者本人负责,作者不为此承担任何责任。工具来自网络,安全性自测,如有侵权请联系删除。

0x01 工具介绍

一种使用C++的 shellcode 注入技术,它尝试使用 XOR 加密和UUID字符串绕过 Windows Defender。

0x02 安装与使用

1、Shellcode 生成
首先,生成二进制格式的有效负载(使用CobaltStrike或msfvenom)例如,在 中msfvenom,您可以这样做(我使用的有效负载是为了说明目的,您可以使用任何您想要的有效负载):
msfvenom -p windows/messagebox -f raw -o shellcode.binUUID然后使用 Python3 脚本将 shellcode(二进制/原始格式)转换为字符串格式bin_to_uuid.py:
./bin_to_uuid.py -p shellcode.bin > uuid.txtxor使用 Python3 脚本加密UUID字符串, .uuid.txtxor_encryptor.py
./xor_encryptor.py uuid.txt > xor_crypted_out.txtCopy 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}
2、概念验证(POC)

使用C++的 shellcode 注入技术(附工具)

3、静态分析

使用C++的 shellcode 注入技术(附工具)

0x03 项目链接下载

1、通过阅读原文,到项目地址下载

2、关注公众号"网络安全者",后台回复:20221022

使用C++的 shellcode 注入技术(附工具)

原文始发于微信公众号(网络安全者):使用C++的 shellcode 注入技术(附工具)

  • 左青龙
  • 微信扫一扫
  • weinxin
  • 右白虎
  • 微信扫一扫
  • weinxin
admin
  • 本文由 发表于 2022年10月29日17:08:25
  • 转载请保留本文链接(CN-SEC中文网:感谢原作者辛苦付出):
                   使用C++的 shellcode 注入技术(附工具)http://cn-sec.com/archives/1365235.html

发表评论

匿名网友 填写信息