当前位置:网站首页>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
边栏推荐
- Esp01s with Arduino development environment
- The flyer realizes page Jump through routing routes
- NiO related Basics
- openlayers 5.0 加载arcgis server 切片服务
- Audio signal processing and coding - 2.5.3 the discrete cosine transform
- Thoughts on the optimization of examination papers in the examination system
- OpenHarmony开源开发者成长计划,寻找改变世界的开源新生力!
- Using bafayun to control the computer
- ArcMap连接 arcgis server
- Encyclopedia of professional terms and abbreviations in communication engineering
猜你喜欢

网络协议之:sctp流控制传输协议

RuntimeError: Providing a bool or integral fill value without setting the optional `dtype` or `out`

开关电源设计分享及电源设计技巧图解

Redis optimization series (III) solve common problems after master-slave configuration

Application of DCT transform

Installation, use and problem summary of binlog2sql tool

Prefer composition to inheritance

Keysight has chosen what equipment to buy for you

Getting started with vcpkg

Audio signal processing and coding - 2.5.3 the discrete cosine transform
随机推荐
The flyer realizes page Jump through routing routes
Regular expressions for judging positive integers
Introduction to micro build low code zero Foundation (lesson 3)
RuntimeError: Providing a bool or integral fill value without setting the optional `dtype` or `out`
js获取本机ip地址
HTTP cache - HTTP authoritative guide Chapter VII
Client interns of a large factory share their experience face to face
SSDB Foundation
Codeforces Round #784 (Div. 4)
Zlib realizes streaming decompression
Solve the problem of invalid listview Click
Wechat video extraction and receiving file path
PostgreSQL
Translation of audio signal processing and coding: Preface
redis优化系列(三)解决主从配置后的常见问题
FTP, SSH Remote Access and control
Convert string to JSON
该买什么设备,Keysight 给你挑好了
Switching power supply design sharing and power supply design skills diagram
Intuitive understanding of the essence of two-dimensional rotation