Skip to content
KitploitKITPLOIT
工具博客
提交
工具博客
提交

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

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

··订阅源·联系·隐私·© 2026 Kitploit

工具目录

分类

查看所有分类
Loading categories
InvisibilityCloak — 用于 C# 后期利用工具的概念验证混淆工具包 | Kitploit
工具/GitHubGitHub/h4wkst3r/invisibilitycloak
后渗透利用红队Payload 开发
GitHubh4wkst3r/invisibilitycloak

InvisibilityCloak

用于 C# 后期利用工具的概念验证混淆工具包

查看仓库
6321904年前Kitploit 审核通过

最受欢迎

查看全部 →

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

探索所有工具

浏览我们的工具集合

查看所有工具 →
分享

InvisibilityCloak

面向C#后渗透工具的混淆工具概念验证。它将针对C# Visual Studio项目执行以下操作。

  • 修改工具名称
  • 修改项目GUID
  • 根据用户输入的混淆方法,对源代码文件中的兼容字符串进行混淆
  • 移除单行注释(例如:// this is a comment)
  • 移除编译后的发布版.NET程序集的PDB字符串选项

博客文章: https://securityintelligence.com/posts/invisibility-cloak-obfuscate-c-tools-evade-signature-based-detection

不进行混淆的字符串候选

以下字符串候选不参与混淆

  • 长度小于3个字符的字符串
  • 使用字符串插值的字符串(例如:Console.WriteLine($"Hello, {name}! Today is {date.DayOfWeek}, it's {date:HH:mm} now.");)
  • case语句,因为它们需要是静态值
  • 常量变量,因为它们需要是静态值
  • 方法签名中的字符串,因为它们需要是静态值
  • 包含" => "的行,用于switch语句,需要是静态值
  • 在if语句中进行比较时使用的is,因为比较的值必须是静态的
  • 正则表达式中的字符串
  • 重写字符串,因为它们需要是静态值
  • 以下随机的字符串边缘情况,因为它们曾在编码/解码时引发问题
    • 以'开头或结尾的字符串
    • 行中包含""'
    • 行中包含+ @"
    • 行中包含"""
    • 行中包含""
    • 行中包含Encoding.Unicode.GetString
    • 行中包含Encoding.Unicode.GetBytes
    • 行中包含Encoding.ASCII.GetBytes
    • 以"开头、以")]结尾的行。这通常用于命令行开关,需要是静态值。

支持信息

  • Windows
  • Linux(基于Debian的系统)
  • Python3

参数/选项

  • -d, --directory - Visual Studio项目所在的目录
  • -m, --method - 混淆方法 (base64, rot13, reverse)
  • -n, --name - 新工具的名称
  • -h, --help - 帮助菜单
  • --version - 获取工具版本

用法/示例

运行InvisibilityCloak并启用字符串混淆

Base64字符串混淆

python InvisibilityCloak.py -d /path/to/project -n "TotallyLegitTool" -m base64

python InvisibilityCloak.py -d C:\path\to\project -n "TotallyLegitTool" -m base64

ROT13字符串混淆

python InvisibilityCloak.py -d /path/to/project -n "TotallyLegitTool" -m rot13

python InvisibilityCloak.py -d C:\path\to\project -n "TotallyLegitTool" -m rot13

反向字符串混淆

python InvisibilityCloak.py -d /path/to/project -n "TotallyLegitTool" -m reverse

python InvisibilityCloak.py -d C:\path\to\project -n "TotallyLegitTool" -m reverse

运行InvisibilityCloak但不进行字符串混淆

python InvisibilityCloak.py -d /path/to/project -n "TotallyLegitTool"

python InvisibilityCloak.py -d C:\path\to\project -n "TotallyLegitTool"

基于签名的检测统计信息

下表显示了使用InvisibilityCloak对20个流行的公共C#工具进行混淆前后的基于签名的检测统计。

此数据专门针对Microsoft Defender(免费版),截至2022年4月14日准确。

编译后的C#工具大小统计

下表展示了20个流行的公共C#工具在使用InvisibilityCloak进行不同字符串混淆方法前后的文件大小。

未来规划

  • 增加对包含多个C#项目文件(多项目解决方案)的C#项目的支持
  • 变量名和方法名的混淆支持
下载工具
工具链接未混淆使用InvisibilityCloak混淆后
ADCSPwnhttps://github.com/bats3c/ADCSPwn检测到未检测到
Certifyhttps://github.com/GhostPack/Certify检测到未检测到
Farmerhttps://github.com/mdsecactivebreach/Farmer检测到未检测到
Rubeushttps://github.com/GhostPack/Rubeus检测到检测到
SafetyKatzhttps://github.com/GhostPack/SafetyKatz检测到未检测到
Seatbelthttps://github.com/GhostPack/Seatbelt检测到未检测到
SharpClipboardhttps://github.com/slyd0g/SharpClipboard未检测到未检测到
SharPersisthttps://github.com/mandiant/SharPersist未检测到未检测到
SharpExechttps://github.com/anthemtotheego/SharpExec检测到未检测到
SharpGPOAbusehttps://github.com/FSecureLABS/SharpGPOAbuse检测到未检测到
SharpHoundhttps://github.com/BloodHoundAD/SharpHound未检测到未检测到
SharpLoggerhttps://github.com/djhohnstein/SharpLogger检测到未检测到
SharpMovehttps://github.com/0xthirteen/SharpMove检测到未检测到
SharpRDPhttps://github.com/0xthirteen/SharpRDP检测到检测到
SharpSecDumphttps://github.com/G0ldenGunSec/SharpSecDump检测到未检测到
SharpUphttps://github.com/GhostPack/SharpUp未检测到未检测到
SharpViewhttps://github.com/tevora-threat/SharpView检测到未检测到
SharpWMIhttps://github.com/GhostPack/SharpWMI检测到未检测到
StandInhttps://github.com/xforcered/StandIn检测到未检测到
WireTaphttps://github.com/djhohnstein/WireTap未检测到未检测到
工具链接未混淆ROT13字符串混淆Base64字符串混淆反向字符串混淆
ADCSPwnhttps://github.com/bats3c/ADCSPwn718 KB728 KB722 KB720 KB
Certifyhttps://github.com/GhostPack/Certify170 KB198 KB178 KB176 KB
Farmerhttps://github.com/mdsecactivebreach/Farmer13 KB17 KB14 KB13 KB
Rubeushttps://github.com/GhostPack/Rubeus418 KB605 KB469 KB455 KB
SafetyKatzhttps://github.com/GhostPack/SafetyKatz714 KB716 KB948 KB715 KB
Seatbelthttps://github.com/GhostPack/Seatbelt543 KB904 KB618 KB608 KB
SharpClipboardhttps://github.com/slyd0g/SharpClipboard6 KB7 KB6 KB7 KB
SharPersisthttps://github.com/mandiant/SharPersist231 KB281 KB248 KB243 KB
SharpExechttps://github.com/anthemtotheego/SharpExec30 KB57 KB36 KB34 KB
SharpGPOAbusehttps://github.com/FSecureLABS/SharpGPOAbuse70 KB98 KB79 KB76 KB
SharpHoundhttps://github.com/BloodHoundAD/SharpHound880 KB897 KB885 KB883 KB
SharpLoggerhttps://github.com/djhohnstein/SharpLogger19 KB27 KB20 KB20 KB
SharpMovehttps://github.com/0xthirteen/SharpMove41 KB100 KB50 KB49 KB
SharpRDPhttps://github.com/0xthirteen/SharpRDP322 KB346 KB326 KB325 KB
SharpSecDumphttps://github.com/G0ldenGunSec/SharpSecDump42 KB55 KB45 KB43 KB
SharpUphttps://github.com/GhostPack/SharpUp35 KB50 KB40 KB39 KB
SharpViewhttps://github.com/tevora-threat/SharpView719 KB856 KB742 KB738 KB
SharpWMIhttps://github.com/GhostPack/SharpWMI53 KB92 KB62 KB61 KB
StandInhttps://github.com/xforcered/StandIn162 KB294 KB197 KB189 KB
WireTaphttps://github.com/djhohnstein/WireTap282 KB292 KB285 KB284 KB