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

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

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

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

工具目录

分类

查看所有分类
Loading categories
morphHTA — morphHTA - 变形 Cobalt Strike 的 evil.HTA | Kitploit
工具/GitHubGitHub/vysecurity/morphhta
漏洞利用框架Payload生成渗透测试
GitHubvysecurity/morphhta

morphHTA

morphHTA - 变形 Cobalt Strike 的 evil.HTA

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

最受欢迎

查看全部 →

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

探索所有工具

浏览我们的工具集合

查看所有工具 →
分享

免责声明

同往常一样,此代码和工具不得用于恶意目的。

由 MDSec Consulting 的 ActiveBreach 团队 Vincent Yiu 编写。允许在署名原作者的前提下修改代码。

Explorer 和 SWBemLocator COM Moniker 的研究由 @enigma0x3 完成

morphHTA

用法:

usage: morph-hta.py [-h] [--in <input_file>] [--out <output_file>]
                    [--maxstrlen <default: 1000>] [--maxvarlen <default: 40>]
                    [--maxnumsplit <default: 10>]

optional arguments:
  -h, --help            show this help message and exit
  --in <input_file>     File to input Cobalt Strike PowerShell HTA
  --out <output_file>   File to output the morphed HTA to
  --maxstrlen <default: 1000>
                        Max length of randomly generated strings
  --maxvarlen <default: 40>
                        Max length of randomly generated variable names
  --maxnumsplit <default: 10>
                        Max number of times values should be split in chr
                        obfuscation

示例:

/morphHTA# python morph-hta.py
███╗   ███╗ ██████╗ ██████╗ ██████╗ ██╗  ██╗      ██╗  ██╗████████╗ █████╗
████╗ ████║██╔═══██╗██╔══██╗██╔══██╗██║  ██║      ██║  ██║╚══██╔══╝██╔══██╗
██╔████╔██║██║   ██║██████╔╝██████╔╝███████║█████╗███████║   ██║   ███████║
██║╚██╔╝██║██║   ██║██╔══██╗██╔═══╝ ██╔══██║╚════╝██╔══██║   ██║   ██╔══██║
██║ ╚═╝ ██║╚██████╔╝██║  ██║██║     ██║  ██║      ██║  ██║   ██║   ██║  ██║
╚═╝     ╚═╝ ╚═════╝ ╚═╝  ╚═╝╚═╝     ╚═╝  ╚═╝      ╚═╝  ╚═╝   ╚═╝   ╚═╝  ╚═╝

Morphing Evil.HTA from Cobalt Strike
Author: Vincent Yiu (@vysec, @vysecurity)


[*] morphHTA initiated
[+] Writing payload to morph.hta
[+] Payload written

减小最大变量名长度和随机生成字符串长度以缩小 HTA 输出体积:

/morphHTA# python morph-hta.py --maxstrlen 4 --maxvarlen 4

chr() 混淆中的最大拆分次数,减少加法运算以缩短长度:

/morphHTA# python morph-hta.py --maxnumsplit 4

更改输入文件和输出文件:

/morphHTA# python morph-hta.py --in advert.hta --out advert-morph.hta

操作视频

https://www.youtube.com/watch?v=X4S2aQ4o_jA

VirusTotal 示例

建议不要上传到 VT:

混淆后的 HTA 内容示例

下载工具