当前位置:网站首页>Decompile and get the source code of any wechat applet - just read this (latest)
Decompile and get the source code of any wechat applet - just read this (latest)
2022-04-23 19:19:00 【"Technology makes customers"】
One The preparation of the instruments
1 node.js Running environment
Download address :https://nodejs.org/en/
2 Decompiled script
link :https://pan.baidu.com/s/1InxRoozDDb-C-g2rKGi1Cw
Extraction code :i50k
3 Night God Simulator
Download address :https://www.yeshen.com/cn/download/fullPackage
Two Start decompiling
1 Get the applet pkg package :
Log in wechat... In the simulator , Open a small program at random A
Open file manager , find /data/data/com.tencent.mm/MicroMsg Catalog , And find a very long one
User random code , Continue to find /appbrand/pkg/xxx, Next up are the applets A Of wxapkg package ( Right click and select copy )
Find the Android shared path
The stick button is always on it , Put the small program pkg Copy the package to the Android shared path , So you can access the applet on your computer pkg package
2 Install script dependency
utilize cmd cd Go to the script directory you just downloaded , perform npm install
Installation dependency
3 Execute script command
Copy the applet pkg The path of perform
node wuWxapkg.js C:\Users\pc-03\Nox_share\ImageShare\xx.wxapkg
C:\Users\pc-03\Nox_share\ImageShare\xx.wxapkg It's my applet path , You want to copy your own applet path
3、 ... and Compile successfully
Four Abnormal situation
1、Module build failed: Error: Cannot find module ‘escodegen’ ( I met )
npm i --save-dev escodegen
2、 Error: Cannot find module ‘cheerio’( I met )
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
3 Unrecognized package
Explain the two .wxapkg In the document , The current decompiled package is not a project folder , Go again RE Look at the file manager , Is there another document ! This .wxapkg There are basic packages of wechat , There is no need to restore !!! Many blogs don't explain this , I thought it didn't decompile successfully !
4 SyntaxError: Unexpected end of input solve wxss lack
modify wxappUnpacker in wuWxss.js Part of the code , As follows :
function runVM(name,code){
let wxAppCode={},handle={cssFile:name};
let gg = new GwxCfg();
let tsandbox = {$gwx:GwxCfg.prototype["$gwx"],__mainPageFrameReady__:GwxCfg.prototype["$gwx"],__wxAppCode__:wxAppCode,setCssToHead:cssRebuild.bind(handle)};
let vm = new VM({sandbox:tsandbox});
vm.run(code);
for(let name in wxAppCode)if(name.endsWith(".wxss")){
handle.cssFile=path.resolve(frameName,"..",name);
wxAppCode[name]();
}
/*
let wxAppCode={},handle={cssFile:name};
let vm=new VM({sandbox:Object.assign(new GwxCfg(),{__wxAppCode__:wxAppCode,setCssToHead:cssRebuild.bind(handle)})});
vm.run(code);
for(let name in wxAppCode)if(name.endsWith(".wxss")){
handle.cssFile=path.resolve(frameName,"..",name);
wxAppCode[name]();
}*/
}
Decompile the applet again ,OK,wxss Come out
If you have any problem, you can add me qq2214904953 Help you decompile to get the source code of the small program
版权声明
本文为["Technology makes customers"]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/04/202204210559120998.html
边栏推荐
- Convert string to JSON
- Translation of audio signal processing and coding: Preface
- SQL server requires to query the information of all employees with surname 'Wang'
- Redis optimization series (III) solve common problems after master-slave configuration
- Thoughts on the optimization of examination papers in the examination system
- 在渤海期货办理开户安全吗。
- Using 8266 as serial port debugging tool
- Switching power supply design sharing and power supply design skills diagram
- Application of DCT transform
- 高层次人才一站式服务平台开发 人才综合服务平台系统
猜你喜欢
深度学习——特征工程小总结
Wechat applet part of the mobile phone Preview PDF did not respond
Switching power supply design sharing and power supply design skills diagram
Partage de la conception de l'alimentation électrique de commutation et illustration des compétences en conception de l'alimentation électrique
2021-2022-2 ACM training team weekly Programming Competition (8) problem solution
The fifth bullet of MySQL learning -- detailed explanation of transaction and its operation characteristics
Keysight has chosen what equipment to buy for you
2022.04.23(LC_714_买卖股票的最佳时机含手续费)
First experience of using fluent canvas
OpenHarmony开源开发者成长计划,寻找改变世界的开源新生力!
随机推荐
RuntimeError: Providing a bool or integral fill value without setting the optional `dtype` or `out`
The fifth bullet of MySQL learning -- detailed explanation of transaction and its operation characteristics
Matlab 2019 installation of deep learning toolbox model for googlenet network
Using Visual Studio code to develop Arduino
arcMap 发布切片服务
Regular expressions for judging positive integers
@Analysis of conditional on Web Application
Openlayers 5.0 loading ArcGIS Server slice service
Reflection on the performance of some OpenGL operations in the past
js上传文件时控制文件类型和大小
Audio signal processing and coding - 2.5.3 the discrete cosine transform
Using 8266 as serial port debugging tool
考试系统进入试卷优化思路
Esp01s with Arduino development environment
Oracle configuration st_ geometry
First experience of using fluent canvas
SSDB基础2
Some speculation about the decline of adults' language learning ability
openlayers 5.0 加载arcgis server 切片服务
Intuitive understanding of the essence of two-dimensional rotation