Since the official release of the WeChat mini program, it has attracted enough attention in the industry and also brought a new wave of dividends. WeChat mini programs are ubiquitous and available at any time, but do not require installation or uninstallation. They are extremely popular and widespread. WeChat will record user data generated by mini programs, including geographical location, chat history, etc. In the era of big data, data is a fully confirmed tool, and information can be obtained through data. WeChat applet is the application that users have the most contact with, and it is easy to generate a large amount of data, so WeChat data extraction has always been the focus of the industry. Today we will talk about how to extract data from mini programs in the local environment.
WeChat version 6.5.3 and above already carries the environment required for mini programs. The appbrand file is a file related to mini programs and is stored under the account ID.
After analysis by data personnel, AppBrandComm.db is an unconventional database. By decrypting it, it was found that if the mini program is not used, the values of multiple tables in the database are Empty; if you have used the applet, the data will be stored in the table. Enterprise mini programs are being launched one after another. Due to WeChat’s internal setting of the size of mini programs (the current size is one trillion), enterprises can only implement some simple functions. In AppBrandComm.db, a table stores the association between applet and package names.
Get the local storage data of the WeChat applet used. WeChat applet stores data in key-data key-value format. Among them, the key value indicates "Program Name - Operation", the data value is specific data, and the data storage type is indicated in the table. Each small program in each item table has a size value, indicating the total data size, and the total data size of all key-data of the program is counted.
Get the appId and appName from the AppBrandWxaAppInfo table in AppBrandComm.db
Get the appId and appName from the AppBrandKVData table in AppBrandComm.db Get key, data, dataType.
KEY value: appId_keyword [such as history];
Data: corresponding key value data;
WeChat applet attempts to create a micro operating system in the operating system , subverting the existing network application model. Whether it is a website or an APP, it will become a mini program in WeChat. Most of the forensic tools and software on the market are aimed at directly extracting mobile application data, but there are not many software or tools that can support the extraction of WeChat applet data. Studying the data analysis and extraction of WeChat mini programs in the local environment is of great significance to the development of the mini program industry.
Recommendation: " Mini Program Development Tutorial"
The above is the detailed content of An introduction to the method of locally extracting data using WeChat mini-programs. For more information, please follow other related articles on the PHP Chinese website!