Up
Down
Comment
collect
Report
share

关于我自写的封包加密用于绕过网盘审查的软件说明
核心算法
尾部追加式隐写(appended-data / polyglot),固定 306 字节自描述头:
HEADER_FMT = ">4sBBIIQQ16s256sI"
magic="STG\u0001" ver=1 flags total index orig_size payload_len nonce(16) name(256) crc32
- 封装:先
divmod(size, n)把压缩包按载体数量等分 → 每片使用独立Web links(os.urandom)(16)作为 nonce,并用AES-256-CTR加密 → 完整复制载体后再追加密文 → 末尾写入 306B 头。 - 还原:
seek(-306, END)读头 → 校验 magic 与payload_len ≤ size-306→ 按 total 分组并检查缺片 → 用Web links(tempfile.mkdtemp)()拼接 → 逐片 crc32 校验 → 校验最终大小orig_size后写出。 - 密钥:给密钥文件则取其
sha256(内容);否则使用硬编码的BUILTIN_KEY = b"BS_STEGO_BUILTIN_KEY_2025_v1!!##";flags.bit0表示自定义密钥,还原时未带密钥文件会直接拒绝。
原理
| 网盘审查面 | 为什么失效(针对这些原理我逐条解决的) |
|---|---|
| 秒传/哈希指纹库 | 尾部追加 + 每片新 nonce,哈希与源 zip 无关,不命中违规库 |
| 类型识别 | 载体是合法 mp4/png,容器头正常,识别为普通媒体 |
| 图片/视频内容审核 | 密文在 IEND/FFD9/box 之后的解析器不读区,不进像素、不进帧、不进音轨,OCR/分类/ASR 什么都看不到 |
| 压缩包解包扫描 | 全文 AES-CTR,PK\u0003\u0004、文件名表、目录结构全部消失 |
| 尾部取证 | 唯一能发现的地方——熵接近 8 bit/byte、文件长度与容器声明不符,但没有密钥解不出内容 |
前提是字节保真:网盘上传/下载原文件不转码,所以有效;一旦过转码、二压、重新封装、图片重编码/加水印/CDN 图片处理,尾部整体丢失,永远还原不出。分片 + 自定义密钥再加一层:单文件不是完整数据,拿全了没密钥也解不开。
软件截图:


(加密的工具我没上传留个还原工具的下载链接)
DeclarationAll articles on this site, unless otherwise indicated or marked, are original publications of this site. Any individual or organization is prohibited from copying, stealing, collecting, or publishing the content of this site to any website, book, or other media platform without the consent of the author. If the content of this site infringes upon the legitimate rights and interests of the original author, please contact us for processing: DMCA Report













This uploader feels lonely