KillWxapkg/README.md
2024-07-26 11:25:28 +08:00

106 lines
3.6 KiB
Markdown
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# KillWxapkg
> 存Golang实现一个用于自动化反编译微信小程序的工具小程序安全利器自动解密解包可最大程度还原工程目录
[![stable](https://img.shields.io/badge/stable-stable-green.svg)](https://github.com/Ackites/KillWxapkg)
[![license](https://img.shields.io/github/license/Ackites/KillWxapkg)]()
[![download](https://img.shields.io/github/downloads/Ackites/KillWxapkg/total)]()
[![release](https://img.shields.io/github/v/release/Ackites/KillWxapkg)]()
[![commit](https://img.shields.io/github/last-commit/Ackites/KillWxapkg)]()
[![issues](https://img.shields.io/github/issues/Ackites/KillWxapkg)]()
[![pull](https://img.shields.io/github/issues-pr/Ackites/KillWxapkg)]()
[![fork](https://img.shields.io/github/forks/Ackites/KillWxapkg)]()
[![star](https://img.shields.io/github/stars/Ackites/KillWxapkg)]()
[![go](https://img.shields.io/github/go-mod/go-version/Ackites/KillWxapkg)]()
[![size](https://img.shields.io/github/repo-size/Ackites/KillWxapkg)]()
[![contributors](https://img.shields.io/github/contributors/Ackites/KillWxapkg)]()
------------------
## 声明
**本程序仅供于学习交流,请使用者遵守《中华人民共和国网络安全法》,勿将此工具用于非授权的测试,开发者不负任何连带法律责任。**
## 介绍
**因为采用了UPX压缩了软件体积工具运行时可能会出现误报可以放心使用工具不会对您的电脑造成任何损害。**
- [x] 小程序自动解密
- [x] 小程序自动解包,支持代码美化输出
- [x] Json美化
- [x] JavaScript美化
- [x] Html美化
- [x] 支持还原源代码工程目录结构
- [x] Json配置文件还原
- [x] JavaScript代码还原
- [ ] Wxml代码还原
- [ ] Wxss代码还原
- [ ] 转换 Uni-app 项目
- [ ] 敏感数据导出
### 工程结构还原
#### 未还原
<img src="./images/img.png" width="30%">
#### 还原后
<img src="./images/img1.png" width="30%">
## 安装
- 下载最新版本的[release](https://github.com/Ackites/KillWxapkg/releases)包
- 自行编译
```shell
# 克隆项目
git clone https://github.com/Ackites/KillWxapkg.git
# 进入项目目录
cd ./KillWxapkg
# 下载依赖
go mod tidy
# 编译
go build
```
## 用法
> 使用方法: program -id=<AppID> -in=<输入文件1,输入文件2> 或 -in=<输入目录> -out=<输出目录>
> [-restore] [-pretty] [-ext=<文件后缀>]
### 参数说明
- `-id string`
- 微信小程序的AppID
- 包已解密,可不指定
- 例:-id=wx7627e1630485288d
- `-in string`
- 输入文件路径(多个文件用逗号分隔)或输入目录路径
- 自动检测,已解密的包,自动解包,未解密的包,自动解密后解包
- 解密后的包会保存到输入目录下以AppID命名的文件夹
- 例:-in="app.wxpkg,app1.wxapkg"
- 例:-in="C:\Users\mi\Desktop\Applet\64"
- `-out string`
- 输出目录路径如果未指定则默认保存到输入目录下以AppID命名的文件夹
- `-restore`
- 是否还原源代码工程目录结构,默认不还原
- `-pretty`
- 是否美化输出,默认不美化,美化需较长时间
- `-ext string`
- 处理的文件后缀 (default ".wxapkg")
- 例:-ext=.wxapkg
- `-help`
- 显示帮助信息
### 获取微信小程序AppID
<img src="./images/img2.png" width="70%">
#### 文件夹名即为AppID
<img src="./images/img3.png" width="70%">
进入文件夹下,即可找到.wxapkg文件
## Star History
[![Star History Chart](https://api.star-history.com/svg?repos=Ackites/KillWxapkg&type=Date)](https://star-history.com/#Ackites/KillWxapkg&Date)