Method, device, equipment and storage medium for processing data
By obtaining the exception stack and deobfuscation mapping file of the iOS APP, and storing the index file locally, the problem of difficulty in stack parsing when the iOS APP crashes or freezes is solved, and the efficiency and speed of deobfuscation processing are improved.
Patent Information
- Application Number
- CN202010893284.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2020-08-31
- Publication Date
- 2024-08-30
- Estimated Expiration
- 2040-08-31
AI Technical Summary
In unstable usage scenarios, it is difficult to parse the stacks generated when iOS APP crashes or freezes. Especially when the number of users is high, the anti-obfuscation processing efficiency is low, and it is difficult to effectively handle millions or even tens of millions of crash and freeze stacks.
By obtaining the deobfuscation mapping file corresponding to the exception stack and version number of the target application, and storing the index file locally to increase the reading speed, the deobfuscation processing of the exception stack is achieved, and network bandwidth usage and processing time are reduced.
It improves the efficiency of stack deobfuscation by APP manufacturers, shortens the processing time, and improves the ability to handle exception stacks.
Smart Images

Figure CN112016059B
Abstract
Description
Technical Field
[0001] The present application relates to the field of computer technology, specifically to the field of application development, and in particular to methods, devices, equipment and storage media for processing data. Background Art
[0002] The usage scenarios of mobile Internet applications (APPs) are unstable. Under various uncertain factors such as network, mobile phone performance, or the iteration and launch of new APP functions, APP crashes or freezes often occur. In order to prevent others from obtaining the project source code through decompilation technology after the project is packaged into an application package, iOS APP application manufacturers usually obfuscate the commercial project source code to avoid source code leakage. However, it also increases the difficulty of parsing the stack generated by the obfuscated crashes and freezes. In the APP of iOS manufacturers, although the probability of crashes and freezes is very low, with a daily active user base of over 100 million, the crash and freeze stacks generated are also in the millions or even tens of millions. At this time, it also poses certain challenges to the anti-obfuscation capabilities of APP manufacturers. Summary of the invention
[0003] Provided are a method, apparatus, device and storage medium for processing data.
[0004] According to a first aspect, a method for processing data is provided, comprising: obtaining an exception stack generated by a target application; obtaining a first target deobfuscation mapping file and a second target deobfuscation mapping file corresponding to a version number of the target application, wherein the first target deobfuscation mapping file corresponds to an obfuscated version of the target application released by an operating system manufacturer, and the second target deobfuscation mapping file corresponds to an obfuscated version released by the manufacturer of the target application; in response to determining that a target index file corresponding to the version number is locally stored, deobfuscating the exception stack according to the exception stack, the target index file, the first target deobfuscation mapping file, and the second target deobfuscation mapping file.
[0005] According to a second aspect, a device for processing data is provided, comprising: a first acquisition unit, configured to acquire an exception stack generated by a target application; a second acquisition unit, configured to acquire a first target deobfuscation mapping file and a second target deobfuscation mapping file corresponding to the version number of the target application, wherein the first target deobfuscation mapping file corresponds to an obfuscated version of the target application released by an operating system manufacturer, and the second target deobfuscation mapping file corresponds to an obfuscated version released by the manufacturer of the target application; and a deobfuscation processing unit, configured to, in response to determining that a target index file corresponding to the version number is locally stored, perform deobfuscation processing on the exception stack according to the exception stack, the target index file, the first target deobfuscation mapping file, and the second target deobfuscation mapping file.
[0006] According to a third aspect, an electronic device for processing data is provided, comprising: at least one processor; and a memory communicatively connected to the at least one processor; wherein the memory stores instructions executable by the at least one processor, and the instructions are executed by the at least one processor so that the at least one processor can execute the method described in the first aspect.
[0007] According to a fourth aspect, a non-transitory computer-readable storage medium storing computer instructions is provided, wherein the computer instructions are used to cause a computer to execute the method as described in the first aspect.
[0008] The technology of this application can improve the anti-obfuscation processing efficiency of the stack by APP manufacturers.
[0009] It should be understood that the content described in this section is not intended to identify the key or important features of the embodiments of the present disclosure, nor is it intended to limit the scope of the present disclosure. Other features of the present disclosure will become easily understood through the following description. BRIEF DESCRIPTION OF THE DRAWINGS
[0010] The accompanying drawings are used to better understand the present solution and do not constitute a limitation of the present application.
[0011] Figure 1 is an exemplary system architecture diagram in which an embodiment of the present application may be applied;
[0012] Figure 2 is a flow chart of an embodiment of a method for processing data according to the present application;
[0013] Figure 3 is a flow chart of another embodiment of a method for processing data according to the present application;
[0014] Figure 4 is a schematic diagram of an application scenario of the method for processing data according to the present application;
[0015] Figure 5 is a structural schematic diagram of an embodiment of a device for processing data according to the present application;
[0016] Figure 6 It is a block diagram of an electronic device used to implement the method for processing data in an embodiment of the present application. DETAILED DESCRIPTION
[0017] The following is a description of exemplary embodiments of the present application in conjunction with the accompanying drawings, including various details of the embodiments of the present application to facilitate understanding, which should be considered as merely exemplary. Therefore, it should be recognized by those of ordinary skill in the art that various changes and modifications can be made to the embodiments described herein without departing from the scope and spirit of the present application. Similarly, for the sake of clarity and conciseness, the description of well-known functions and structures is omitted in the following description.
[0018] It should be noted that, in the absence of conflict, the embodiments and features in the embodiments of the present application can be combined with each other. The present application will be described in detail below with reference to the accompanying drawings and in combination with the embodiments.
[0019] Figure 1 An exemplary system architecture 100 is shown to which embodiments of the method for processing data or the apparatus for processing data of the present application can be applied.
[0020] like Figure 1 As shown, the system architecture 100 may include terminal devices 101, 102, 103, a network 104 and a server 105. The network 104 is used to provide a medium for communication links between the terminal devices 101, 102, 103 and the server 105. The network 104 may include various connection types, such as wired, wireless communication links or optical fiber cables, etc.
[0021] The user can use the terminal devices 101, 102, 103 to interact with the server 105 through the network 104 to receive or send messages, etc. Various communication client applications can be installed on the terminal devices 101, 102, 103, such as shopping applications, social platform applications, audio and video playback applications, etc. The operating system of the terminal devices 101, 102, 103 can be an iOS system, and the application programs installed thereon may crash or freeze during use, at which time a stack will be generated. The terminal devices 101, 102, 103 can send the generated stack to the server 105.
[0022] Terminal devices 101, 102, 103 can be hardware or software. When terminal devices 101, 102, 103 are hardware, they can be various electronic devices, including but not limited to smart phones, tablet computers, e-book readers, car computers, laptop computers, desktop computers, etc. When terminal devices 101, 102, 103 are software, they can be installed in the electronic devices listed above. It can be implemented as multiple software or software modules (for example, to provide distributed services), or it can be implemented as a single software or software module. No specific limitation is made here.
[0023] The server 105 may be a server that provides various services, such as a background server that performs deobfuscation processing on the stack sent by the terminal devices 101, 102, and 103. The background server may perform deobfuscation processing on the stack using the deobfuscation mapping file, obtain corresponding code information, and feed back the obtained code information to the technician.
[0024] It should be noted that the server 105 can be hardware or software. When the server 105 is hardware, it can be implemented as a distributed server cluster consisting of multiple servers, or it can be implemented as a single server. When the server 105 is software, it can be implemented as multiple software or software modules (for example, for providing distributed services), or it can be implemented as a single software or software module. No specific limitation is made here.
[0025] It should be noted that the method for processing data provided in the embodiment of the present application is generally executed by the server 105. Accordingly, the device for processing data is generally disposed in the server 105.
[0026] It should be understood that Figure 1 The number of terminal devices, networks and servers in the embodiment is only for illustration. Any number of terminal devices, networks and servers may be provided according to implementation requirements.
[0027] Continue to refer Figure 2 , shows a process 200 of an embodiment of a method for processing data according to the present application. The method for processing data in this embodiment includes the following steps:
[0028] Step 201, obtaining an exception stack generated by a target application.
[0029] In this embodiment, the execution subject of the method for processing data (for example Figure 1The server 105 shown) can obtain the exception stack generated by the target application in various ways. Specifically, the target application will generate logs during operation and generate exception stacks when it crashes or freezes. The exception stack includes the error when the application exception occurs, and also includes the location of the code at the time of the exception and the program call link. The application can store the log and exception stack (drop to disk). In order to speed up the deobfuscation processing speed of the exception stack, the application can send the exception stack to the middleware, and the above-mentioned middleware can be Kafka. In some specific applications, the above-mentioned execution subject can be a distributed real-time streaming processing system with Structured Streaming of the Spark cluster as the core. The distributed streaming processing system may include multiple executors (Executor), the specific number of which can be determined according to actual needs. The executor can subscribe to the message middleware, pull the exception stack therein for processing, and then write it to the storage system, such as the Elastic Search (ES, Elastic Search) system.
[0030] Step 202: Obtain a first target deobfuscation mapping file and a second target deobfuscation mapping file corresponding to the version number of the target application.
[0031] After obtaining the exception stack, the execution subject can parse the exception stack to determine the version number of the target application. Generally speaking, the exception stack includes "Version" information, which corresponds to the version number.
[0032] After determining the version number of the target application, the execution subject can also obtain the first target anti-obfuscation mapping file and the second target anti-obfuscation mapping file corresponding to the version number. Here, the anti-obfuscation mapping file can exist in the form of key-value, where the key can be the obfuscated content and the value is the deobfuscated content. The first target anti-obfuscation mapping file can correspond to the obfuscated version of the target application of the iOS system, and the second target anti-obfuscation mapping file can correspond to the obfuscated version released by the manufacturer of the target application. The execution subject can obtain the above-mentioned first target anti-obfuscation mapping file and the second target anti-obfuscation mapping file from the multi-level cache system. In terms of response speed, the speed of reading and writing data in the memory of the local process> the speed of interacting with the key-value memory storage system (such as Redis cluster)>> the speed of reading and writing disk IO. Therefore, the execution subject can use the Redis cluster as a multi-level cache system to improve the reading speed. The multi-level cache system can include first anti-obfuscation mapping files and second anti-obfuscation mapping files of multiple versions of multiple applications.
[0033] Step 203, in response to determining that a target index file corresponding to the version number is stored locally, deobfuscation processing is performed on the exception stack according to the exception stack, the target index file, the first target deobfuscation mapping file, and the second target deobfuscation mapping file.
[0034] In this embodiment, the execution subject can also determine whether a target index file corresponding to the version number is stored locally. Here, the target index file can correspond to the key part in the first target anti-obfuscation mapping file and the second target anti-obfuscation mapping file. For APPs installed on the iOS system, their anti-obfuscation mapping files are usually very large, while the target index file is relatively small. If a very large bandwidth is required to obtain the anti-obfuscation mapping file during the anti-obfuscation process, network congestion may be caused, and the acquisition time is also very long (usually about 5s), which reduces the processing ability of the exception stack. In this embodiment, by obtaining the target index file and storing the target index file locally, it will not occupy too much memory, improve the reading speed, and the acquisition time is also short (usually 10ms), thereby improving the processing ability of the exception stack. In some specific applications, the target index file may include multiple numerical ranges. In the first target anti-obfuscation mapping file and the second target anti-obfuscation mapping file, each numerical range corresponds to a corresponding code.
[0035] In this embodiment, if the execution subject has a target index file stored locally, the exception stack can be deobfuscated according to the exception stack, the target index file, the first target deobfuscation mapping file, and the second target deobfuscation mapping file. Specifically, the execution subject can read the information in the exception stack to determine the corresponding numerical range. Then, the first target deobfuscation mapping file and the second target deobfuscation mapping file are queried according to the above numerical range to determine the corresponding code, so as to achieve deobfuscation of the exception stack.
[0036] The method for processing data provided by the above-mentioned embodiment of the present application, when processing the exception stack, does not occupy too much memory by storing the target index file locally, improves the reading speed, and shortens the acquisition time (usually 10ms), thereby improving the processing capability of the exception stack.
[0037] Continue to see Figure 3 , which shows a process 300 of another embodiment of a method for processing data according to the present application. Figure 3 As shown, the method for processing data in this embodiment may include the following steps:
[0038] Step 301: Pull the obfuscated file of the application from the preset path at a preset time interval; perform format conversion on the pulled obfuscated file to obtain a first obfuscated file.
[0039] In this embodiment, the execution subject can pull the obfuscated file of the application from the preset path at a preset time interval. For example, the execution subject can pull the obfuscated files of each application from the official website of the iOS system every 3 hours. The obfuscated file may be a dsym binary file. The execution subject can parse it and convert it into a mapping file in symbol format. The mapping file in symbol format is identified as a recognizable mapping file, that is, the first obfuscated file.
[0040] In some specific implementations, the above step 301 is performed by setting a dysm file parsing server cluster. In addition, the dysm file parsing server cluster can store the obtained first obfuscated file in a file system. Here, the file system can be any database for storing files.
[0041] Step 302: Obtain a first obfuscated file and a second obfuscated file; parse the first obfuscated file and the second obfuscated file respectively to obtain a first anti-obfuscation mapping file and a second anti-obfuscation mapping file.
[0042] The execution subject can obtain the above-mentioned first obfuscated file and the second obfuscated file. For example, the above-mentioned first obfuscated file and the second obfuscated file are obtained from the file system. The obfuscated file includes an obfuscated code. Here, the first obfuscated file can be an obfuscated file of the application corresponding to the iOS system, and the second obfuscated file is an obfuscated file released by the APP manufacturer. The execution subject can parse the first obfuscated file and the second obfuscated file respectively to obtain the first anti-obfuscation mapping file and the second anti-obfuscation mapping file. The above-mentioned parsing process can be to establish a mapping relationship between the development code and the obfuscated code according to the obfuscated code and the parameters used in the obfuscation process. The parameters used in the above-mentioned obfuscation process are used to identify the development code that uniquely corresponds to the obfuscated code. The above-mentioned obfuscated code can be a numerical value or a string.
[0043] In some specific applications, a mapping resolution server cluster may be set to perform the above step 302. The mapping resolution server cluster may also receive a deobfuscation mapping file manually uploaded by a user. The mapping resolution server cluster may store the first deobfuscation mapping file and the second deobfuscation mapping file obtained by the resolution in a multi-level cache system. The multi-level cache system may include a Redis cluster and an HBASE cluster.
[0044] Step 303, obtain a first deobfuscation mapping file and a second deobfuscation mapping file corresponding to the application; determine an index file of the application according to the first deobfuscation mapping file and the second deobfuscation mapping file; store the first deobfuscation mapping file, the second deobfuscation mapping file and the index file.
[0045] In this embodiment, the execution subject may obtain the first anti-obfuscation mapping file and the second anti-obfuscation mapping file corresponding to each application. For example, the first anti-obfuscation mapping file and the second anti-obfuscation mapping file are obtained from the multi-level cache system. The execution subject may determine the index file of the application based on the anti-obfuscation mapping file and the second anti-obfuscation mapping file. Specifically, the execution subject may use the obfuscated code part as the index file. The execution subject may store the first anti-obfuscation mapping file, the second anti-obfuscation mapping file and the index file in the multi-level cache system.
[0046] Step 304, obtaining the exception stack generated by the target application.
[0047] Step 305: Obtain a first target deobfuscation mapping file and a second target deobfuscation mapping file corresponding to the version number of the target application.
[0048] Step 306 , in response to determining that a target index file corresponding to the version number is stored locally, deobfuscation processing is performed on the exception stack according to the exception stack, the target index file, the first target deobfuscation mapping file, and the second target deobfuscation mapping file.
[0049] The principles of steps 304 to 306 are similar to those of steps 201 to 203 and will not be described in detail here.
[0050] Step 307: in response to determining that the target index file is not stored locally, obtaining the target index file and storing the target index file locally.
[0051] In this embodiment, if the target index file is stored locally, the target index file is obtained and stored locally to facilitate reading when the exception stack is processed later.
[0052] In some optional implementations of this embodiment, the above method may further include: Figure 3 The following steps not shown in the figure: in response to determining that the target index file has not been accessed within a preset time period, deleting the target index file.
[0053] In this implementation, if a certain index file has not been accessed within a preset time period, it means that the utilization rate of the index file is low, and the execution subject can delete the index file to save memory.
[0054] Continue to see Figure 4 , which shows a schematic diagram of an application scenario of the method for processing data according to the present application. Figure 4The application scenario shown includes an iOS system dysm format file parsing server cluster 401, a file system 402, a mapping parsing server cluster 403, a multi-level cache system 404, and a distributed streaming processing system 405. Among them, the iOS system dysm format file parsing server cluster 401 can pull the obfuscated file in dysm format from the iOS system official website every 3 hours, and perform format parsing on the obtained obfuscated file. The obtained obfuscated file is stored in the file system 402. At the same time, the obfuscated file provided by the APP manufacturer is also stored in the file system 402. The mapping parsing server cluster 403 can obtain the obfuscated file from the file system 402, parse it, obtain the anti-obfuscation mapping file, and generate an index file. And the obtained anti-obfuscation mapping file and index file are stored in the multi-level cache system 404. The distributed streaming processing system 405 obtains the index file from the multi-level cache system 404. And when the exception stack is received, the anti-obfuscation mapping file is queried according to the index file to implement the anti-obfuscation processing of the exception stack.
[0055] Further references Figure 5 As an implementation of the methods shown in the above figures, the present application provides an embodiment of a device for processing data, and the device embodiment is similar to Figure 2 Corresponding to the method embodiment shown, the device can be specifically applied to various electronic devices.
[0056] like Figure 5 As shown, the device 500 for processing data in this embodiment includes: a first acquisition unit 501, a second acquisition unit 502 and an anti-obfuscation processing unit 503.
[0057] The first acquisition unit 501 is configured to acquire an exception stack generated by a target application.
[0058] The second acquisition unit 502 is configured to acquire a first target anti-obfuscation mapping file and a second target anti-obfuscation mapping file corresponding to the version number of the target application program, wherein the first target anti-obfuscation mapping file corresponds to the obfuscated version of the target application program released by the operating system manufacturer, and the second target anti-obfuscation mapping file corresponds to the obfuscated version released by the manufacturer of the target application program.
[0059] The deobfuscation processing unit 503 is configured to, in response to determining that a target index file corresponding to the version number is stored locally, perform deobfuscation processing on the exception stack according to the exception stack, the target index file, the first target deobfuscation mapping file and the second target deobfuscation mapping file.
[0060] In some optional implementations of this embodiment, the apparatus 500 may further include: Figure 5The third acquisition unit not shown in the figure is configured to acquire the target index file and store the target index file locally in response to determining that the target index file is not stored locally.
[0061] In some optional implementations of this embodiment, the apparatus 500 may further include: Figure 5 The fourth acquisition unit, index file generation unit and file storage unit not shown in the figure.
[0062] The fourth acquisition unit is configured to acquire a first deobfuscation mapping file and a second deobfuscation mapping file corresponding to the application.
[0063] The index file generating unit is configured to generate an index file of the application according to the first deobfuscation mapping file and the second deobfuscation mapping file.
[0064] The file storage unit is configured to store a first deobfuscation mapping file, a second deobfuscation mapping file, and an index file.
[0065] In some optional implementations of this embodiment, the fourth acquisition unit is further configured to: acquire a first obfuscated file and a second obfuscated file; and parse the first obfuscated file and the second obfuscated file respectively to obtain a first deobfuscation mapping file and a second deobfuscation mapping file.
[0066] In some optional implementations of this embodiment, the fourth acquisition unit is further configured to: pull the obfuscated file of the application from the preset path at preset time intervals; and perform format conversion on the pulled obfuscated file to obtain the first obfuscated file.
[0067] In some optional implementations of this embodiment, the apparatus 500 may further include: Figure 5 The deleting unit not shown in the figure is configured to: in response to determining that the target index file has not been accessed within a preset time period, delete the target index file.
[0068] It should be understood that the units 501 to 503 described in the apparatus 500 for processing data are respectively the same as those described in the reference Figure 2 Therefore, the operations and features described above for the method for processing data are also applicable to the device 500 and the units contained therein, and will not be described in detail here.
[0069] According to an embodiment of the present application, the present application also provides an electronic device and a readable storage medium.
[0070] like Figure 6, is a block diagram of an electronic device for executing a method for processing data according to an embodiment of the present application. The electronic device is intended to represent various forms of digital computers, such as laptop computers, desktop computers, workbenches, personal digital assistants, servers, blade servers, mainframe computers, and other suitable computers. The electronic device can also represent various forms of mobile devices, such as personal digital processing, cellular phones, smart phones, wearable devices, and other similar computing devices. The components shown herein, their connections and relationships, and their functions are merely examples and are not intended to limit the implementation of the present application described and / or required herein.
[0071] like Figure 6 As shown, the electronic device includes: one or more processors 601, a memory 602, and interfaces for connecting various components, including high-speed interfaces and low-speed interfaces. The various components are interconnected using different buses and can be installed on a common mainboard or installed in other ways as needed. The processor can process instructions executed in the electronic device, including instructions stored in or on the memory to display the graphical information of the GUI on an external input / output device (such as a display device coupled to the interface). In other embodiments, if necessary, multiple processors and / or multiple buses can be used together with multiple memories and multiple memories. Similarly, multiple electronic devices can be connected, and each device provides some necessary operations (for example, as a server array, a group of blade servers, or a multi-processor system). Figure 6 A processor 601 is taken as an example.
[0072] The memory 602 is a non-transitory computer-readable storage medium provided in the present application. The memory 602 stores instructions executable by at least one processor to enable at least one processor to execute the method for processing data provided in the present application. The non-transitory computer-readable storage medium of the present application stores computer instructions, which are used to enable a computer to execute the method for processing data provided in the present application.
[0073] The memory 602 is a non-transient computer-readable storage medium that can be used to store non-transient software programs, non-transient computer executable programs and modules, such as program instructions / modules corresponding to the method for processing data in the embodiment of the present application (for example, the attached Figure 5 The processor 601 executes various functional applications and data processing of the server by running the non-transient software programs, instructions and modules stored in the memory 602, that is, implements the method for processing data in the above method embodiment.
[0074] The memory 602 may include a program storage area and a data storage area, wherein the program storage area may store an operating system, an application required by at least one function; the data storage area may store data created according to the use of an electronic device that executes a method for processing data, etc. In addition, the memory 602 may include a high-speed random access memory, and may also include a non-transient memory, such as at least one disk storage device, a flash memory device, or other non-transient solid-state storage device. In some embodiments, the memory 602 may optionally include a memory remotely arranged relative to the processor 601, and these remote memories may be connected to the electronic device that executes the method for processing data via a network. Examples of the above-mentioned network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.
[0075] The electronic device executing the method for processing data may further include: an input device 603 and an output device 604. The processor 601, the memory 602, the input device 603 and the output device 604 may be connected via a bus or other means. Figure 6 The example of connecting through bus is taken in the following.
[0076] The input device 603 can receive input digital or character information, and generate key signal input related to user settings and function control of the electronic device for executing the method for processing data, such as a touch screen, a keypad, a mouse, a track pad, a touch pad, an indicator rod, one or more mouse buttons, a trackball, a joystick and other input devices. The output device 604 may include a display device, an auxiliary lighting device (e.g., an LED) and a tactile feedback device (e.g., a vibration motor), etc. The display device may include, but is not limited to, a liquid crystal display (LCD), a light emitting diode (LED) display and a plasma display. In some embodiments, the display device may be a touch screen.
[0077] Various implementations of the systems and techniques described herein can be realized in digital electronic circuit systems, integrated circuit systems, dedicated ASICs (application specific integrated circuits), computer hardware, firmware, software, and / or combinations thereof. These various implementations can include: being implemented in one or more computer programs that can be executed and / or interpreted on a programmable system including at least one programmable processor, which can be a special purpose or general purpose programmable processor that can receive data and instructions from a storage system, at least one input device, and at least one output device, and transmit data and instructions to the storage system, the at least one input device, and the at least one output device.
[0078] These computer programs (also referred to as programs, software, software applications, or code) include machine instructions for programmable processors and can be implemented using high-level procedural and / or object-oriented programming languages, and / or assembly / machine languages. As used herein, the terms "machine-readable medium" and "computer-readable medium" refer to any computer program product, device, and / or means (e.g., disk, optical disk, memory, programmable logic device (PLD)) for providing machine instructions and / or data to a programmable processor, including a machine-readable medium that receives machine instructions as a machine-readable signal. The term "machine-readable signal" refers to any signal for providing machine instructions and / or data to a programmable processor.
[0079] To provide interaction with a user, the systems and techniques described herein can be implemented on a computer having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to the user; and a keyboard and pointing device (e.g., a mouse or trackball) through which the user can provide input to the computer. Other types of devices can also be used to provide interaction with the user; for example, the feedback provided to the user can be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user can be received in any form (including acoustic input, voice input, or tactile input).
[0080] The systems and techniques described herein may be implemented in a computing system that includes back-end components (e.g., as a data server), or a computing system that includes middleware components (e.g., an application server), or a computing system that includes front-end components (e.g., a user computer with a graphical user interface or a web browser through which a user can interact with implementations of the systems and techniques described herein), or a computing system that includes any combination of such back-end components, middleware components, or front-end components. The components of the system may be interconnected by any form or medium of digital data communication (e.g., a communications network). Examples of communications networks include: a local area network (LAN), a wide area network (WAN), and the Internet.
[0081] A computer system may include clients and servers. Clients and servers are generally remote from each other and usually interact through a communication network. The relationship of client and server is generated by computer programs running on respective computers and having a client-server relationship to each other.
[0082] According to the technical solution of the embodiment of the present application, the anti-obfuscation processing efficiency of the stack by APP manufacturers can be improved.
[0083] It should be understood that the various forms of processes shown above can be used to reorder, add or delete steps. For example, the steps recorded in this application can be executed in parallel, sequentially or in different orders, as long as the expected results of the technical solution disclosed in this application can be achieved, and this document is not limited here.
[0084] The above specific implementations do not constitute a limitation on the protection scope of this application. It should be understood by those skilled in the art that various modifications, combinations, sub-combinations and substitutions can be made according to design requirements and other factors. Any modifications, equivalent substitutions and improvements made within the spirit and principles of this application should be included in the protection scope of this application.
Claims
1. A method for processing data, include: Get the exception stack generated by the target application; Obtaining a first target anti-obfuscation mapping file and a second target anti-obfuscation mapping file corresponding to the version number of the target application, wherein the first target anti-obfuscation mapping file corresponds to the obfuscated version of the target application released by the operating system manufacturer, and the second target anti-obfuscation mapping file corresponds to the obfuscated version released by the manufacturer of the target application; In response to determining that a target index file corresponding to the version number is locally stored, deobfuscating the exception stack according to the exception stack, the target index file, the first target deobfuscation mapping file, and the second target deobfuscation mapping file, including: reading information in the exception stack to determine a corresponding numerical range, the target index file querying the first target deobfuscation mapping file and the second target deobfuscation mapping file according to the numerical range to determine a corresponding code, and deobfuscating the exception stack; In the first target anti-obfuscation mapping file and the second target anti-obfuscation mapping file, each numerical range corresponds to a corresponding code.
2. The method according to claim 1, in, The method further comprises: In response to determining that the target index file is not stored locally, the target index file is acquired and stored locally.
3. The method according to claim 1, in, The method further comprises: Obtaining a first deobfuscation mapping file and a second deobfuscation mapping file corresponding to the application; Generate an index file of the application according to the first deobfuscation mapping file and the second deobfuscation mapping file; The first deobfuscation mapping file, the second deobfuscation mapping file, and the index file are stored.
4. The method according to claim 3, in, The obtaining of the first deobfuscation mapping file and the second deobfuscation mapping file corresponding to the application comprises: Obtain a first obfuscated file and a second obfuscated file; The first obfuscation file and the second obfuscation file are parsed respectively to obtain a first anti-obfuscation mapping file and a second anti-obfuscation mapping file.
5. The method according to claim 4, in, The obtaining of the first obfuscated file and the second obfuscated file includes: Pull the obfuscated files of the application from the preset path at preset intervals; The format of the pulled obfuscated file is converted to obtain the first obfuscated file.
6. The method according to claim 1, in, The method further comprises: In response to determining that the target index file has not been accessed within a preset time period, the target index file is deleted.
7. A device for processing data, include: A first acquisition unit is configured to acquire an exception stack generated by a target application; A second acquisition unit is configured to acquire a first target deobfuscation mapping file and a second target deobfuscation mapping file corresponding to the version number of the target application; The deobfuscation processing unit is configured to, in response to determining that a target index file corresponding to the version number is locally stored, perform deobfuscation processing on the exception stack according to the exception stack, the target index file, the first target deobfuscation mapping file, and the second target deobfuscation mapping file, including: reading information in the exception stack to determine a corresponding numerical range, the target index file querying the first target deobfuscation mapping file and the second target deobfuscation mapping file according to the numerical range to determine a corresponding code, and performing deobfuscation processing on the exception stack; In the first target anti-obfuscation mapping file and the second target anti-obfuscation mapping file, each numerical range corresponds to a corresponding code.
8. The device according to claim 7, in, The device also includes: The third acquisition unit is configured to acquire the target index file and store the target index file locally in response to determining that the target index file is not stored locally.
9. The device according to claim 7, in, The device also includes: A fourth acquisition unit is configured to acquire a first deobfuscation mapping file and a second deobfuscation mapping file corresponding to the application program; an index file generating unit, configured to generate an index file of the application according to the first deobfuscation mapping file and the second deobfuscation mapping file; The file storage unit is configured to store the first deobfuscation mapping file, the second deobfuscation mapping file, and the index file.
10. The device according to claim 9, in, The fourth acquisition unit is further configured to: Obtain a first obfuscated file and a second obfuscated file; The first obfuscation file and the second obfuscation file are parsed respectively to obtain a first anti-obfuscation mapping file and a second anti-obfuscation mapping file.
11. The device according to claim 10, in, The fourth acquisition unit is further configured to: Pull the obfuscated files of the application from the preset path at preset intervals; The format of the pulled obfuscated file is converted to obtain the first obfuscated file.
12. The device according to claim 7, in, The apparatus further comprises a deleting unit configured to: In response to determining that the target index file has not been accessed within a preset time period, the target index file is deleted.
13. An electronic device for processing data, include: at least one processor; as well as a memory communicatively connected to the at least one processor; wherein, The memory stores instructions that can be executed by the at least one processor, and the instructions are executed by the at least one processor to enable the at least one processor to perform the method according to any one of claims 1 to 6.
14. A non-transitory computer-readable storage medium storing computer instructions, wherein the computer instructions are used to cause the computer to execute the method of any one of claims 1 to 6.
15. A computer program product, comprising a computer program, which, when executed by a processor, implements the method according to any one of claims 1 to 6.
Citation Information
Patent Citations
Code processing method and apparatus as well as computing device
CN106203007A
Crash information processing method, device and system
CN107239381A
