preface

Some time ago to see such and such a small program to do well, for developers certainly want to engage in a interface and source code what, but I used to catch the package software found that can not be caught, anti pickpocket. So just go straight to the source.

preparation

The following are installed on the computer:

MUMU Simulator/Nocturne Simulator It is recommended to use MUMU simulator File manager: RE File manager

After installing the above emulator, open the emulator and install the RE manager and wechat in it:Open wechat, access the small program you want to climb down and use the RE manager to open the path:

You’ll see similar files like C31AD ****** ES72, which are generated by multiple wechat messages. If you can’t find it, delete these similar files first, then enter the small program from wechat and refresh the three vertical dots in the upper right corner. Find the following:Keep looking:

/ data/data/com. Tencent. Mm/MicroMsg/the above folder name/appbrand/PKG / * * * * *. WxapkgHere is also the same, you can revisit the applet, see which more ****. Wxakg file, then that is the applet file.

And then back here:Long press the PKG file and click on the upper right corner to appear as follows:Select compress the selected folder:Compressed to view:Also long press the compressed package, click on the upper right corner – click send – select Add to wechat Favorites for spare.

Now download a script that parses the wXapkg file above.

Script link extraction code: 2fQI

Then go to your wechat and unzip the PKG folder and copy it to the root directory of the downloaded script file:

Start decompiling

Preliminary work:

Install nodejs (nodejs.cn/)

Open terminal (CMD) in the root directory of the script:

Download the following dependencies in the root directory in turn:

npm install esprima

npm install css-tree npm install cssbeautify npm install vm2 npm install uglify-es npm install js-beautify npm install escodegen

Wxapkg. / PKG /123456. WxapkgWhen you’re done, you’ll find the corresponding file in the PKG folder:Open that file and now you have the initial structure of the applet:Import applets development tools directly: The source code for the applet crawls down, but the script can’t get the WXSS style file down yet, so the style is out of order. But the interface request and return data I can see! Isn’t it hot? If it’s hot, give it a thumbs up and follow it. Continue to find all kinds of bizarre things!