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

0x01 工具介绍

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

0x02 安装与使用

1、Shellcode 生成


        
  `首先,生成二进制格式的有效负载(使用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}`
 
      

2、概念验证(POC)

picture.image

3、静态分析

picture.image

0x03 项目链接下载

https://github.com/Bl4ckM1rror/FUD-UUID-Shellcode

如有侵权,请联系删除

推荐阅读

实战|记一次奇妙的文件上传getshell

「 超详细 | 分享 」手把手教你如何进行内网渗透

神兵利器 | siusiu-渗透工具管理套件

一款功能全面的XSS扫描器

实战 | 一次利用哥斯拉马绕过宝塔waf

BurpCrypto: 万能网站密码爆破测试工具

快速筛选真实IP并整理为C段 -- 棱眼

自动探测端口顺便爆破工具t14m4t

渗透工具|无状态子域名爆破工具(1秒扫160万个子域)

查看更多精彩内容,还请关注 橘猫学安全:

每日坚持学习与分享,觉得文章对你有帮助可在底部给点个“ 再看”

0
0
0
0
评论
未登录
暂无评论