当前位置:网站首页>2020微信小程序反编译教程(小程序反编译源码能用吗)
2020微信小程序反编译教程(小程序反编译源码能用吗)
2022-07-31 15:37:00 【全栈程序员站长】
大家好,又见面了,我是你们的朋友全栈君。
文章主要实现:废话不多说下面就直接来流程了!
第1步:先安装 node.js 点击下载
第2步:再下载wxappUnpacker反编译包 点击下载包
第3步: 保证以上都安装后 电脑命令窗口:CMD 运行第2步目录运行加载node 依赖:
命令窗口复制以下黄色命令:
npm install uglify-es --save
npm install esprima --save
npm install css-tree --save
npm install cssbeautify --save
npm install vm2 --save
npm install uglify-es --save
npm install js-beautify --save
npm install escodegen --save
npm install cheerio --save安装后
获取小程序apk包 (提示:如何获取能破的小程序包 需要另外的软件配合网上多的是这里就不提供了)
现在分为两种
第1种简单小程序 一次性就可以搞定
第2种大公司小程序(插件和分包) 需要4个步骤: 按步骤继续
node wuWxapkg.js 文件路径 +wxapkg 文件解包
node wuConfig.js 文件路径+ app-config.json
node wuJs.js 文件路径+ app-service.js (或小游戏中的 game.js app-wxss.js app-wxss.js )
node wuWxml.js 文件路径+
node wuWxss.js 文件路径+ 注意细节:
先编译主包 node wuWxapkg.js -o -d -s=文件地址 xxxx.wxapkg 文件包
再编译分包 node wuWxapkg.js -d -s=文件地址 xxxx.wxapkg 子文件包
node wuWxml.js -m +app-wxss.js
再执行:—————–》22
node wuConfig.js <files…> 将 app-config.json 中的内容拆分到各个文件对应的 .json 和 app.json , 并通过搜索 app-config.json 所在文件夹下的所有文件尝试将 iconData 还原为 iconPath 。
node wuJs.js <files…> 将 app-service.js (或小游戏中的 game.js ) 拆分成一系列原先独立的 javascript 文件,并使用 Uglify-ES 美化,从而尽可能还原编译前的情况。
node wuWxml.js [-m] <files…> 将编译/混合到 page-frame.html ( 或 app-wxss.js ) 中的 wxml 和 wxs 文件还原为独立的、未编译的文件。如果加上-m指令,就会阻止block块自动省略,可能帮助解决一些相关过程的 bug 。
node wuWxss.js <dirs…> 通过获取文件夹下的 page-frame.html ( 或 app-wxss.js ) 和其他 html 文件的内容,还原出编译前 wxss 文件的内容。
node wuWxapkg.js [-o] [-d] [-s=<Main Dir>] <files…> 将 wxapkg 文件解包,并将包中上述命令中所提的被编译/混合的文件自动地恢复原状。如果加上-o指令,表示仅解包,不做后续操作。如果加上-d指令,就会保留编译/混合后所生成的新文件,否则会自动删去这些文件。同时,前面命令中的指令也可直接加在这一命令上。
而如果需要解压分包,请先解压主包,然后执行node wuWxapkg.js [-d] -s=<Main Dir> <subPackages…>,其中Main Dir为主包解压地址。
除-d与-s外,这些指令两两共存的后果是未定义的(当然,是不会有危险的)。
发布者:全栈程序员栈长,转载请注明出处:https://javaforall.cn/127971.html原文链接:https://javaforall.cn
边栏推荐
- How does automated testing create business value?
- [CUDA study notes] First acquaintance with CUDA
- 多主复制下处理写冲突(4)-多主复制拓扑
- After Grafana is installed, the web opens and reports an error
- 01 Encounter typescript, build environment
- Efficient use of RecyclerView Section 3
- C language "the third is" upgrade (mode selection + AI chess)
- 多主复制的适用场景(2)-需离线操作的客户端和协作编辑
- 做事软件开发-法的重要性所在以及合理结论的认识
- 全新宝马3系上市,安全、舒适一个不落
猜你喜欢
随机推荐
11 pinia使用
工程流体力学复习
WeChat chat record search in a red envelope
微信聊天记录中搜索红包
Why don't you make a confession during the graduation season?
Oracle dynamically registers non-1521 ports
R语言ggplot2可视化:使用ggpubr包的ggboxplot函数可视化分组箱图、使用ggpar函数改变图形化参数(caption、添加、修改可视化图像的题注、脚注内容)
Codeforces Round #796 (Div. 2)(A-D)
ASP.NET Core generates continuous Guid
Excel quickly aligns the middle name of the table (two-word name and three-word name alignment)
ansible学习笔记02
RecyclerView高效使用第二节
R language ggplot2 visualization: use the ggmapplot function of the ggpubr package to visualize the MA plot (MA-plot), the font.legend parameter and the font.main parameter to set the title and legend
AVH部署实践 (一) | 在Arm虚拟硬件上部署飞桨模型
01 Encounter typescript, build environment
R language moves time series data forward or backward (custom lag or lead period): use the lag function in the dplyr package to move the time series data forward by one day (set the parameter n to a p
R language ggplot2 visualization: use the ggboxplot function of the ggpubr package to visualize the grouped box plot, use the ggpar function to change the graphical parameters (caption, add, modify th
Applicable scenario of multi-master replication (2) - client and collaborative editing that require offline operation
Bilateral filtering acceleration "recommended collection"
Deployment application life cycle and Pod health check








