The latest WeChat applet decompilation method (pro-test is effective, no simulator required)

This method is a method that I accidentally discovered through trial and error. The following are the problems and solutions I encountered. Other methods are welcome to discuss


1. Download node.js , and go directly to the official website to download it. There are configuration tutorials online, so I won’t talk about it here.

Make sure there is an npm folder in the installation directory, which will be used later.

2. Download the cracking tool and unzip it. I unzip it to the desktop https://codeload.github.com/superBiuBiuMan/wechatMiniAppReverse/zip/refs/heads/main

 3. Find the applet file

PC-side applet path: In the file management location set by WeChat, open the Appet folder under this directory

Confirm the applet you want to use by checking the modification date. If you can’t find it, delete all the files in the Applet and then re-enter the applet to be cracked on the PC side WeChat, and a new applet file will be automatically generated in the Applet.

Click the folder to enter, _APP_.wxapkg is the small program package we are looking for

 

 

After finding it, copy the .wxapkg file to the first-level directory file, such as the desktop folder D:\Desktop, otherwise the cracking tool will report an error if it cannot find the file.

 4. Decryption

Because the wxapkg on the PC side is encrypted and stored, if you unpack it directly, the Magic number is not correct! error will pop up

So it must be decrypted first.

win+R, enter cmd to open the console, and then enter the cracking tool directory 1.first through cd+file name and press Enter step by step.

Then input according to the format of pc_wxapkg_decrypt.exe -wxid WeChat applet id -in wxapkg path to be decrypted -out decrypted path     .

For example, the original path of wxapkg is: C:\Users\xxxx\Documents\WeChat Files\Applet\wx2xxx84w9w7a3xxxx\_APP_.wxapkg, then the WeChat applet id is: wx2xxx84w9w7a3xxxx

The wxapkg path to be decrypted is the wxapkg path copied to the first-level directory before, mine is D:\Desktop\ _APP_.wxapkg

Decrypted path: Find a first-level directory at random, and then give the decrypted wxapkg a name, mine is D:\123\123_.wxapkg

My complete input: D:\Desktop\wechatMiniAppReverse-main\1.first> pc_wxapkg_decrypt.exe -wxid wxc20a5f25f3cc21f5 -in D:\Desktop\__APP__.wxapkg -out D:\123\123_.wxapkg

Enter, the decryption is complete

The decrypted file was successfully generated in the decrypted path

 

5. Unpack

Switch the console to the D:\Desktop\wechatMiniAppReverse-main\2.second\nodejs directory,

Enter node .\wuWxapkg.js to decrypt the file directory

For example node .\wuWxapkg.js D:\123\123_.wxapkg

Enter, report an error

 Found that the uglify-es project is missing, so through D:\Desktop\wechatMiniAppReverse-main\2.second\nodejs> npm install uglify-es

Install the missing block, the result is an error again, missing npm-cli.js

 The reason is that the node.js version that comes with the cracking tool is too old and lacks the npm directory

The solution is to copy all the latest node.js files that we downloaded and installed on the official website at the beginning to the 2.second\nodejs folder of the cracking tool, and replace the same items

Paste all of them into the following nodejs folder and replace the same items

Then return to the console to install the uglify-es project

 successfully installed

 The console is in the D:\Desktop\wechatMiniAppReverse-main\2.second\nodejs> directory

Enter node .\wuWxapkg.js D:123\123_.wxapkg and press Enter to start unpacking. At this time, the cheerio project may be missing

The problem is not big, just npm install what is missing, continue npm install cheerio

 

 successfully installed

Continue to unpack, and "the applet file was not found in the node.js directory. It is guessed that the decrypted applet should be placed in the 2.second\node.js directory before unpacking.

 Then copy 123_.wxapkg to the nodejs folder, change the console input to node .\wuWxapkg.js D:\Desktop\wechatMiniAppReverse-main\2.second\nodejs\123_.wxapkg, press Enter

Successfully unpacked! ! !

Open 2.second\node.js, find the 123_ file, open it and it will be a successfully decompiled applet! Use the WeChat developer tools to open the folder and you can prostitute other people's code for nothing.


This is the first time I write an article, please forgive me, if there are any mistakes, please point them out. . .

Guess you like

Origin blog.csdn.net/m0_59031272/article/details/126475664