当前位置:网站首页>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
边栏推荐
- 工程水文学名词解释总结
- mysql黑窗口~建库建表
- 为什么毕业季不要表白?
- ASP.NET Core 产生连续 Guid
- 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
- 工程力学复习资料
- Ubuntu Topic 5: Setting a Static IP Address
- Codeforces Round #796 (Div. 2) (A-D)
- 腾讯云部署----DevOps
- 更新数据表update
猜你喜欢
button控件的使用
type of timer
How useful is four-quadrant time management?
C language "the third is" upgrade (mode selection + AI chess)
Kubernetes principle analysis and practical application manual, too complete
DBeaver连接MySQL 8.x时Public Key Retrieval is not allowed 错误解决
mongo进入报错
微信聊天记录中搜索红包
Efficient use of RecyclerView Section 1
t-sne 数据可视化网络中的部分参数+
随机推荐
MySQL database operations
radiobutton的使用
自动化测试如何创造业务价值?
Public Key Retrieval is not allowed error solution when DBeaver connects to MySQL 8.x
SQL、HQL、JPQL 到底有什么区别
button控件的使用
R language ggplot2 visualization: use the ggboxplot function of the ggpubr package to visualize the box plot, use the font function to customize the font size, color, style (bold, italic) of the legen
Excel快速对齐表格的中姓名(两个字姓名和三个字姓名对齐)
After Grafana is installed, the web opens and reports an error
Kubernetes原理剖析与实战应用手册,太全了
复制延迟案例(3)-单调读
Linux查看redis版本(查看mongodb版本)
Handling write conflicts under multi-master replication (4) - multi-master replication topology
Female service community product design
【MySQL】Mysql范式及外键作用
mysql黑窗口~建库建表
对话庄表伟:开源第一课
7、常见面试口语提问问题汇总
BGP综合实验(建立对等体、路由反射器、联邦、路由宣告及聚合)
Implementing click on the 3D model in RenderTexture in Unity