![License: MIT]()
HTMLSmuggler - JS payload generator for IDS bypass and payload delivery via HTML smuggling.
The full explanation what is HTML Smuggling may be found here.
The primary objective of HTML smuggling is to bypass network security controls, such as firewalls and intrusion detection systems, by disguising malicious payloads (e.g. executables/archives/etc.) within seemingly harmless HTML and Ja code. By exploiting the dynamic nature of web applications, attackers can deli content to a user's browser without triggering security alerts or being detected by traditional security mechanisms. Thanks to this technique, the download of a malicious file is not displayed in any way in modern IDS solutions.
The main goal of HTMLSmuggler tool is creating an independent ja library with embedded malicious user-defined payload. This library may be integrated into your phishing sites/email html attachments/etc. to deli payload to the target user system (bypassing IDS and IPS system). An example of created ja library may be found here.
* Built-in highly configurable Ja obfuscator that fully hides your payload makes it impossible to extract your payload from ja manually.
* Powerful client-side bots and headless crawlers detection library that doesn't share your payloads with smart secure mail gateways and their friends.
* Delay before loading to avoid sandboxes that are in a hurry.
* May be used both as an independent JS library or embedded in JS frameworks such as React, Vue.js, etc.
* The simplicity of the template allows you to add extra data handlers/compressions/obfuscations.
* Support a lot of browsers (including old IE10).
1. Install yarn package manager.
2. Install dependencies:
3. Read help message.
1. (Optional) Modify ja options in obfuscator.js, my preset is nice, but very slow.
2. Compile your ja payload:
> ⚠️ AVOID USAGE OF PAYLOADS BIGGER THAN 3 MiB (see FAQ)
3. Get your payload from dist/payload.esm.js or dist/payload.umd.js. After that, it may be inserted into your page and called with download() (or custom specified with -f flag) function.
> payload.esm.js is used in import { download } from 'payload.esm'; imports (ECMAScript standart).
>
> payload.umd.js is used in html script SRC and require('payload.umd'); imports (CommonJS, AMD and pure html).
A full example may be found here.
1. Do preparation steps.
2. Import created script to html file (or insert it inline):
3. Call download() function from body:
4. Happy phishing :)
A full example may be found here.
1. Do preparation steps.
2. Import created script to vue file:
3. Call download() function:
4. Happy phishing :)
Q: I have an error RangeError: Maximum call stack size exceeded, how to solve it?
A: This issue described here. To fix it, try to disable splitStrings in obfuscator.js or make smaller payload (it's recommended to use up to 2 MB payloads because of this issue).
---
Q: Why does my payload build so long?
A: The bigger payload you use, the longer it takes to create a JS file. To decrease time of build, try to disable splitStrings in obfuscator.js. Below is a table with estimated build times using default obfuscator.js.
| Payload size | Build time |
| --- | --- |
| 525 KB | 53 s |
| 1.25 MB | 8 m |
| 3.59 MB | 25 m |
开发语言:JavaScript
Star 数:202
该项目属于红蓝攻防方向的开源资源,代码结构清晰,适合安全研究人员学习参考。项目围绕✉️ HTML Smuggling generator&obfuscator for your Red Team operations展开,提供了可运行的实现,对理解相关安全机制、工具原理与攻防技术具有较高的研究价值。
从技术实现角度看,此类项目的核心在于对底层原理的深入理解与工程化落地。开发者在研究过程中可以结合官方文档与社区讨论,梳理项目的初始化流程、核心模块职责与数据流转,逐步掌握其中的技术细节与设计思路。
1. 下载源码压缩包,解压到本地环境。
2. 根据项目类型准备对应的运行环境与依赖。
3. 按照 README 中的步骤完成配置与部署。
4. 在隔离的测试环境中运行验证,避免影响生产系统。
本资源来源于开源社区,仅供安全研究、技术学习与合法授权范围内的攻防演练使用,请勿用于任何非法或侵害他人权益的用途。使用本项目产生的一切后果由使用者自行承担。
| 资源标题 | HTMLSmuggler - ✉️ HTML Smuggling generator&obfuscator for your Re |
| 所属分类 | 红蓝攻防 |
| 发布作者 | admin |
| 发布时间 | 2026-10-06 00:47:04 |
| 下载权限 | 免费下载 |
| 附件数量 | 2 个下载链接 |
| 浏览次数 | 181 |
| 讨论数量 | 0 |
| 主题状态 | 正常讨论中 |