当前位置:网站首页>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
边栏推荐
- Common processing of point cloud dataset
- Using oes texture + glsurfaceview + JNI to realize player picture processing based on OpenGL es
- The platinum library cannot search the debug process records of some projection devices
- Codeforces Round #784 (Div. 4)
- 深度学习——特征工程小总结
- Problems caused by flutter initialroute and home
- Client interns of a large factory share their experience face to face
- Oracle配置st_geometry
- 优先使用组合而不使用继承
- OpenHarmony开源开发者成长计划,寻找改变世界的开源新生力!
猜你喜欢

Esp01s with Arduino development environment

8266 obtain 18b20 temperature

Keysight has chosen what equipment to buy for you

【C语言进阶11——字符和字符串函数及其模拟实现(2))】

Client interns of a large factory share their experience face to face

Introduction to micro build low code zero Foundation (lesson 3)

Use of fluent custom fonts and pictures

Pdf reference learning notes

Installation, use and problem summary of binlog2sql tool

Audio signal processing and coding - 2.5.3 the discrete cosine transform
随机推荐
Transaction processing of SQL Server database
FTP, SSH Remote Access and control
OpenHarmony开源开发者成长计划,寻找改变世界的开源新生力!
The difference between ordinary inner class and static inner class
SSDB foundation 1
Reflection on the performance of some OpenGL operations in the past
SSDB foundation 2
深度学习环境搭建步骤—gpu
Modify the font size of hint in editext
命令-sudo
Openlayers 5.0 loading ArcGIS Server slice service
Partage de la conception de l'alimentation électrique de commutation et illustration des compétences en conception de l'alimentation électrique
SSDB基础3
An example of using JNI to directly access surface data
Xlslib use
PostgreSQL
Oracle配置st_geometry
ArcGIS JS API dojoconfig configuration
[play with lighthouse] Tencent cloud lightweight server builds a full platform video analysis video download website
[record] typeerror: this getOptions is not a function