赞
踩
现在微信小程序有很多,但是想自己开发时候遇到技术瓶颈想参考(借鉴)别人小程序怎么办,网上资料又很少,很多坑爹的需要付费。作为搞技术的人直接把小程序反编译是不是更直接,接下来敲小黑板。
我们用到的工具很简单:
1、UnpackMiniApp.exe
2、反编译工具 wxappUnpacker-master
3、微信客户端
步骤1、先到微信程序中拿下安装包
步骤2、打开UnpackMiniApp.exe工具,选择需要解密的程序包,Tip:需要再UnpackMiniApp.exe同一级目录下新增文件夹wxpack,否则将会报错
步骤3、将解密成功的包放到反编译工程里面,接下来就是真正的反编译
步骤4、执行反编译命令
执行前先安装必要插件
- npm install esprima
- npm install css-tree
- npm install js-beautify
- npm install uglify-es
- npm install vm2
- npm install cssbeautify
检验下成果:
步骤5、打完收工
在运行中还会报其他的错误,不同计算机有可能不一样,下面贴出本人出现的错误以及解决方法:
1、Error: Cannot find module 'uglify-es'
- npm install esprima
-
- npm install css-tree
-
- npm install js-beautify
-
- npm install uglify-es
-
- npm install vm2
-
- npm install cssbeautify
2、Module build failed: Error: Cannot find module ‘escodegen’
npm i --save-dev escodegen
3、 Error: Cannot find module ‘cheerio’
- 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
站在巨人肩膀上地址链接:
反编译微信小程序保姆级教程(PC端程序包)_素质教育漏网之魚的博客-CSDN博客_pc小程序反编译
如果有这方面的研究可以加企鹅一起讨论:3329064898
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。