Decompile the WeChat applet to obtain the subpackaged js and html files.

1. Get the wxapkg package

  1. The mobile phone obtains root authority, installs the RE manager and finds the package in the applet directory
  2. 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.
  3. 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.
    insert image description here
    _APP_wxapkg main package, other subpackages.

2. Use the decryption tool to decrypt the package.

insert image description here
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.
insert image description here

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.
insert image description here

Required resource files

  1. node.js operating environment
    https://nodejs.org/en/
  2. Decompiled script
    https://github.com/xuedingmiaojun/…
  3. Small package decryption tool
  4. 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! !

Guess you like

Origin blog.csdn.net/qq_33183456/article/details/126363673