By caching on the phone applet files, decompile restore the original code
Implementation:
First of all you need to know is a small program files stored in the phone's location
- then the specific location where it?
---- specific directory location:/data/data/com.tencent.mm/MicroMsg/{{一串32位的16进制字符串名文件夹}}/appbrand/pkg/ 在这个目录下会有一些 xxx.wxapkg 这样后缀的文件,这些就是小程序或者小游戏的包。
———— xxx.wxapkg 是什么呢?
------ micro-channel applet source code to read notes 1 file Here is a detailed description of we can look at.
Then get a small program .wxapkg package
- the way I get: I was on the computer with root over Android phone emulator, install RE File Manager, and then acquired by the manager.
----Implementation :
1. Install mobile simulator (here I use the night god simulator)
Download: https://www.yeshen.com/cn/download/fullPackage
2, micro-channel installation, qq, RE manager on the simulator
RE Manager to download to your computer, and then drag it to the inside of the simulator.
Download Manager RE: https://pan.baidu.com/s/1PPBx08rNutXxhlMMJbuTpQ
Micro-channel, qq download directly on the simulation.
3, set the root
The need to set up super-user privileges to RE After installing the RE Manager.
4, to cache game or applet
Open the micro-channel and then find you want to get the code of the game or small game or program to open this small program, the program starts running after the source file has been downloaded to the local.
5, find the source file
The simulator operation page switch to the desktop, run the RE Manager, and then locate the directory manager said before the inside:
/data/data/com.tencent.mm/MicroMsg/{{一串32位的16进制字符串名文件夹}}/appbrand/pkg/
Here it is what we need these package source files, and then find the program just run through what a time to visit is on it.
6, compression
We need to first use a file compression zip, will prompt the file is invalid if you do not send compressed files.
Press this file, there will be a toolbar, then click the button to the right of the toolbar, select the selected file compression
After compression finished viewing the prompts to click
7, transmitted to the computer
When you find the desired file, or long press the file, there will be a toolbar, then click the button to the right of the toolbar, select Send, and then select the location you want to send (three selection method will do as long as you can get this file is on the line)
8, to get the file
This is the file we need. The next step is to decompile it parses out the source here.
Finally, decompile
- First anti-compiler to use node .js operating environment
---- node Download: https://nodejs.org/en/
- The script then decompile used (on GitHub qwerty472123
Great God wrote node.js version)
---- Download https://github.com/qwerty472123/wxappUnpacker
After these two are installed, open the folder where the script file is compiled, then shift + right mouse button and choose "Open command window here" in the menu
Then install the following dependencies:
npm install esprima
npm install css-tree
npm install cssbeautify
npm install vm2
npm install uglify-es
npm install js-beautify
npm install
After these are installed, the last step decompile came:
Continue entering the current command line
node wuWxapkg.js [-d] <files ...> // files that you want to decompile the file name
For example: there is a _-1568765780_11.wxapkg this file
Copy the address bar directly address + filename
node .\wuWxapkg.js C:\Users\Administrator\Desktop\app123\_-1568765780_11.wxapkg
Enter run
After the completion of the source file in the folder will appear in a folder of the same name, this folder is the source of all you need games or applets.
Source: CSDN Original: https: //blog.csdn.net/chao2458/article/details/81381692 utm_source = copy?