Applet climb, crawl source code

The main idea :

  After the applet is running, it will first download and then run the resource, get the resource bundle applet, decompile a program for the package after the micro-channel compression decompile, to restore most of the code.

  As of the day of recording, this method is not micro-letters repair.

1. Capture Source Package wxapkg

  Opening the small icon of the process, micro-channel already downloaded the source files from a remote server to the phone, and in principle, local phone already has this source, as long as there is jailbreak or root privileges, access to. Do not have root privileges, you can use the Android emulator. Recommend the use of a god, comes with root, attach the address: Download  

  After opening the simulator, mounted micro-channel, RE manager (used to access the source file). Open from inside and is provided: superuser => = upper right corner of the menu Settings> Automatic Response => Allow

      

 

 

 Then enter the micro letter, opening the applet, after running for a while, with RE, locate the file about the location

  {Root /data/data/com.tencent.mm/MicroMsg/  } / appbrand / PKG /User

{User} to a string of hexadecimal characters.

 

 

Once these files are compressed, share it by sending a letter to the micro friend, etc., do not take the compression step, then, would prompt access to resources fail.

Micro-channel will be in compressed according to certain rules when packed, a single sub-base is wxapkg files, including some dependencies. wxapkg own micro-channel is a binary file, poke here to see the great God resolved 

 

2. decompile

  After getting wxapkg file, then you can decompile a.

  Provided that the node environment, clone the git resources  https://github.com/qwerty472123/wxappUnpacker  , in its catalog Installation depends  npm install 

    or

npm install esprima

npm install css-tree

npm install cssbeautify

npm install vm2

npm install uglify-es

npm install js-beautify

 

  After installation is complete, execution command,  Node wuWxapkg.js [-d] <Files ...>

  [-d] <files ...> is wxapkg resource location, such as:  Node wuWxapkg.js D: \ wxApp \ Resource \ _1123949441_304.wxapkg

  To decompile the program source code after execution, address file compiled with wxapkg address resource directory

 

Reference: two-step rapid access applet source code

Or   using micro-channel TBS crawling page has an applet on the line     (not determined)

Guess you like

Origin www.cnblogs.com/_error/p/11726356.html