1. Get the wxapkg package
- The mobile phone obtains root authority, installs the RE manager and finds the package in the applet directory
- Use Thunderbolt Simulator or other simulators, install WeChat, access the Mini Program through WeChat, install the RE Manager, and find the package corresponding to the Mini Program. The emulator needs to enable root permissions in the settings.
- Use the computer version of wxapkg
to search under D:\WeChat\WeChat Files\WeChat Files\Applet after the cache folder. You can delete the contents of the entire directory and use the applet to generate it again.
_APP_wxapkg main package, other subpackages.
2. Use the decryption tool to decrypt the package.
It can be processed in subcontracts, and it is recommended to process one at a time.
After decryption, the corresponding program files will be generated in the wxpack directory of the current directory.
3. Decompile the program
Use wuPack.js to decompile.
node wuWxapkg.js -s=/gift slave.wxapkg
-s="The directory where the subpackage is stored after compilation", if it is the main package, you don't need to specify the -s parameter.
After editing, the corresponding source code file will be generated in the specified directory.
The test was successful.
Required resource files
- node.js operating environment
https://nodejs.org/en/ - Decompiled script
https://github.com/xuedingmiaojun/… - Small package decryption tool
- install dependencies
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
What is missing at runtime
Decompile resources.rarClick to download
If you are interested in the editor's articles, welcome to pay attention to each other and learn from each other! !