Character string list information determination method and device, equipment and storage medium
By judging the device permissions and parsing the SO file list information, the problem of black products using ROOT permissions to steal live video streams is solved, accurate cracking tool detection of the device is achieved, and the effectiveness of copyright protection is improved.
Patent Information
- Application Number
- CN202410756809.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-13
- Publication Date
- 2024-10-15
AI Technical Summary
In the Internet live broadcast industry, black actors use ROOT permissions to obtain data to steal live video streams, making it difficult to implement copyright protection. It is difficult for existing technology to accurately identify whether a device is running a cracking tool.
By determining whether the target device has obtained the highest permissions, determine its process list. If the cracking tool is not running, read the memory layout file to obtain the SO file list, and parse the string list information of each SO file to more accurately check whether the device is running. Black tools.
It achieves accurate inspection of whether the device is running cracking tools, improves the effectiveness of copyright protection, and enhances the ability to detect black products.
Smart Images

Figure CN118779846A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of data processing, and in particular to a method, device, equipment and storage medium for determining string list information. Background Art
[0002] With the rapid development of the Internet live broadcast industry, the copyright issue of live broadcast content has become increasingly prominent. At present, although some technical means have been used to protect the copyright of live broadcast, there are still a large number of pirated live broadcast streams that are spread wantonly on the Internet, seriously damaging the legitimate rights and interests of copyright owners.
[0003] As the fight against the black industry continues to escalate, and the black industry and the live broadcast platform APP are in different environments, the black industry will use rooted devices to obtain more data to steal the video stream of the live broadcast platform (mobile phone rooting usually refers to Android phones, which allows users to obtain super user permissions of the Android operating system). Therefore, how to collect more information for risk control identification based on the high permissions of rooting has become an urgent problem to be solved. Summary of the invention
[0004] The embodiments of the present invention provide a method, apparatus, device and storage medium for determining string list information, which can obtain the string list information of all SOs loaded by the process of the device. Since the SO string list information includes more information about the SO, when checking whether the device is running a cracking tool of the black industry based on the string list information of all SOs, the inspection of the black industry can be made more accurate.
[0005] A first aspect of the present invention provides a method for determining string list information, comprising:
[0006] Determine whether the target device has obtained the highest authority;
[0007] If the target device has obtained the highest authority, determining the process name of each process in the process list running on the target device;
[0008] Determining whether a cracking tool is running on the target device according to the process name of each process in the process list;
[0009] If the cracking tool is not running on the target device, read the memory layout file of the first process to obtain a list of shared object SO files loaded by the first process, where the first process is any process in the process list;
[0010] Determine the string list information corresponding to each SO file in the SO file list.
[0011] A second aspect of the present invention provides a device for determining string list information, comprising:
[0012] The first judgment module is used to judge whether the target device has obtained the highest authority;
[0013] A first determination module, configured to determine the process name of each process in a process list running on the target device if the target device has obtained the highest authority;
[0014] A second judgment module is used to judge whether a cracking tool is running on the target device according to the process name of each process in the process list;
[0015] A reading module, configured to read a memory layout file of a first process to obtain a list of shared object SO files loaded by the first process if the cracking tool is not running on the target device, wherein the first process is any process in the process list;
[0016] The second determining module is used to determine the string list information corresponding to each SO file in the SO file list.
[0017] In a possible design, the first determining module is specifically configured to:
[0018] Determining a virtual file system corresponding to the target device;
[0019] Obtaining a directory handle of the virtual file system through the opendir system interface;
[0020] Traversing the process list based on the directory handle to obtain a process identifier of each process in the process list;
[0021] Formatting the process identifier of each process to obtain the file name of each process;
[0022] The process name of each process is determined according to the file name of each process.
[0023] In a possible design, the reading module is specifically used for:
[0024] Open the memory layout file through the fopen system function, and read each line of information in the memory layout file in sequence through the fgets system function;
[0025] Obtain the SO file path in the memory layout file according to each line of information;
[0026] The SO file list is determined according to the SO file path.
[0027] In a possible design, the second determining module is specifically configured to:
[0028] Read each SO file in the SO file list;
[0029] Each SO file is parsed to obtain string list information of each SO file.
[0030] In a possible design, the first determination module is specifically configured to:
[0031] Based on the system call method, judging whether there is a target file with a preset file name in the target device through the syscall function;
[0032] If the target file exists in the target device, determining that the target device has obtained the highest authority;
[0033] If the target file does not exist in the target device, it is determined that the target device does not obtain the highest authority.
[0034] In a possible design, the second determination module is specifically configured to:
[0035] Determine whether the process list contains a second process with a preset process name, wherein the preset process name is associated with the cracking tool;
[0036] If the process list includes the second process, determining that the cracking tool is running on the target device;
[0037] If the process list does not include the second process, it is determined that the cracking tool is not running on the target device.
[0038] In one possible design, the second determining module is further used to:
[0039] The string list information corresponding to each SO file is sent to the server, so that the server detects the target device according to the string list information corresponding to each SO file.
[0040] A third aspect of an embodiment of the present invention provides an electronic device, including a memory and a processor, wherein the processor is configured to implement the steps of the method for determining string list information as described in the first aspect when executing a computer management program stored in the memory.
[0041] A fourth aspect of an embodiment of the present invention provides a computer-readable storage medium on which a computer management program is stored. When the computer management program is executed by a processor, the steps of the method for determining string list information as described in the first aspect above are implemented.
[0042] In summary, it can be seen that in the embodiment provided by the present invention, by performing a preliminary analysis on the process name of the process running in the device that has obtained the highest authority, it is determined whether the cracking tool is running in the device. If the cracking tool is not running, the corresponding SO file list is obtained by reading the memory layout file of the process, and the string list corresponding to each SO file is obtained. In this way, the string list information of all SOs loaded by the process in the device can be obtained. Since the SO string list information includes more information about the SO, the inspection of the black industry can be made more accurate when checking whether the device is running the cracking tool of the black industry based on the string list information of all SOs. BRIEF DESCRIPTION OF THE DRAWINGS
[0043] Figure 1 A schematic diagram of a flow chart of a method for determining string list information provided by an embodiment of the present invention;
[0044] Figure 2 A virtual structural diagram of a device for determining string list information provided by an embodiment of the present invention;
[0045] Figure 3 A schematic diagram of the hardware structure of a device for determining string list information provided by an embodiment of the present invention;
[0046] Figure 4 A schematic diagram of an embodiment of an electronic device provided by an embodiment of the present invention;
[0047] Figure 5 A schematic diagram of an embodiment of a computer-readable storage medium provided in an embodiment of the present invention. DETAILED DESCRIPTION
[0048] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative work are within the scope of protection of the present invention.
[0049] In the following description, specific embodiments of the present invention will be described with reference to steps and symbols performed by one or more computers, unless otherwise stated. Therefore, these steps and operations will be mentioned several times as being performed by a computer, and computer execution referred to herein includes operations by a computer processing unit of electronic signals representing data in a structured form. This operation converts the data or maintains it at a location in the computer's memory system, which can be reconfigured or otherwise change the operation of the computer in a manner familiar to testers in the field. The data structure maintained by the data is a physical location in the memory, which has specific characteristics defined by the data format. However, the principles of the present invention are described in the above text, which does not represent a limitation, and testers in the field will understand that the various steps and operations described below can also be implemented in hardware.
[0050] The principles of the present invention operate with many other general or special purpose computing, communication environments or configurations. Examples of well-known computing systems, environments and configurations suitable for use with the present invention may include, but are not limited to, handheld phones, personal computers, servers, multiprocessor systems, microcomputer-based systems, mainframe computers, and distributed computing environments, including any of the above systems or devices.
[0051] The terms "first", "second", and "third" in the present invention are used to distinguish different objects rather than to describe a specific order. In addition, the terms "include", "have", and any variations thereof are intended to cover non-exclusive inclusions.
[0052] The following describes the method for determining the string list information from the perspective of the device for determining the string list information. Figure 1 , Figure 1 A flow chart of a method for determining string list information provided by an embodiment of the present invention includes:
[0053] 101. Determine whether the target device has obtained the highest authority. If so, execute step 102.
[0054] In this embodiment, the device for determining the string list information can determine whether the target device has obtained the highest authority. Specifically, the device for determining the string list information can determine whether there is a target file with a preset file name in the target device based on the system call method through the syscall function; if the target file exists in the target device, it is determined that the target device has obtained the highest authority; if the target file does not exist in the target device, it is determined that the target device has not obtained the highest authority.
[0055] It should be noted that for the sake of simplicity of description, the systems appearing in the present invention are all described using the Android system as an example. Of course, it can also be other systems, such as the Apple system or the Windows system, without specific limitation. When the target device is the Apple system or the Windows system, step 101 needs to determine whether the target device has been jailbroken. When determining, files specific to the Apple system or the Windows system after jailbreaking are obtained.
[0056] It should be noted that the determination device of the string list information can determine whether the current device has ROOT permission by accessing whether a unique file exists after ROOT. The unique file is a target file with a preset file name. Taking the Android system as an example, when the Android system is ROOT, it will include the following feature files (Apple system and Windows system will also include corresponding jailbreak files):
[0057] File: / system / xbin / su
[0058] File: / system / bin / su
[0059] File: / system / sbin / su
[0060] File: / sbin / su
[0061] File: / su / bin / su.
[0062] In the traditional solution, the system function access is called to determine whether the file exists after the Android system is rooted. However, the black industry usually hooks this function to bypass detection. Therefore, in the present invention, the determination device of the string list information avoids being hooked based on the system call method, that is, based on the system call method, the syscall (__NR_access, path, F_OK) function is used to determine whether the target file exists in the target device, where the syscall () function is a low-level system call interface that can directly call the kernel service from the user space. Syscall is an interface that directly calls the system kernel, so as to avoid being hooked. Specifically:
[0063] The device for determining the string list information can call syscall (__NR_access, path, F_OK) to check all files in the target device. As long as one file exists, it means that the target device is a ROOT device. If none of them exist, it means that the target device is not a ROOT device. The parameter path is the name of each file that needs to be detected, such as / system / xbin / su.
[0064] If it is not a ROOT device, subsequent functions will not be performed. Only ROOT devices have the authority to obtain subsequent data content.
[0065] 102. If the target device has obtained the highest authority, determine the process name of each process in the process list running on the target device.
[0066] In this embodiment, when determining that the target device has obtained the highest authority, the device for determining the string list information can determine the process name of each process in the process list running on the target device. Specifically, the device for determining the string list information can first determine the virtual file system corresponding to the target device; and obtain the directory handle of the virtual file system through the opendir system interface; then, traverse the process list based on the directory handle to obtain the process ID of each process in the process list; and format the process ID of each process to obtain the file name of each process; finally, determine the process name of each process according to the file name of each process.
[0067] It should be noted that in the Android system, the " / proc" directory is a virtual file system that contains information about the system at runtime, such as processes, memory, hardware configuration, etc. Each running process has a corresponding subdirectory named after its PID (process ID). The present invention determines the process name of each process in the process list running on the target device in the following manner:
[0068] DIR*dir=opendir(" / proc"); Get the corresponding directory handle dir through the opendir system interface. Then traverse all process names through a while loop.
[0069] while((entry=readdir(dir))!=NULL){read each entry of readdir
[0070] Int id = atoi (entry->d_name); Get the corresponding process id
[0071] sprintf(filename," / proc / %d / cmdline",id); formats the file name corresponding to the process id.
[0072] fp=fopen(filename,"r");Open the corresponding file
[0073] fgets(cmdline,sizeof(cmdline),fp);
[0074] Reading this file can get the corresponding process name cmdline,
[0075] In this way, the names of all processes running on the target device can be collected.}
[0076] 103. Determine whether a cracking tool is running on the target device according to the process name of each process in the process list. If not, execute step 104.
[0077] In this embodiment, after determining the process name of each process in the process list, the device for determining the string list information can determine whether a cracking tool is running on the target device according to the process name of each process. Usually, the black industry will run some cracking tools to steal traffic, such as Frida tools, Xposed tools, automatic key tools, etc., so the acquired process name can be used to determine whether the series of tools are running in the process list running on the target device. Specifically, it can be determined whether the process list contains a second process with a preset process name, and the preset process name has an association with the cracking tool. If the process list contains the second process, it is determined that the cracking tool is running on the target device; if the process list does not contain the second process, it is determined that the cracking tool is not running on the target device. When it is determined that the cracking tool is not running on the target device, step 104 is executed.
[0078] 104. If the cracking tool is not running on the target device, the memory layout file of the first process is read to obtain a list of shared object SO files loaded by the first process.
[0079] In this embodiment, after determining that the cracking tool is not running on the target device, the device for determining the string list information can read the internal layout file of the first process, where the first process is any process in the process list. Specifically, the device for determining the string list information can open the memory layout file through the fopen system function, and read each line of information in the memory layout file in sequence through the fgets system function; obtain the SO file path in the memory layout file according to each line of information; and determine the SO file list according to the SO file path.
[0080] It should be noted that after obtaining the process list, it may be sometimes overlooked to judge whether there is a black production tool only by the process name. Usually, there will be a lot of string information in the SO development code. These string information have the function of discovering this SO very well. Therefore, the device for determining the string list information can obtain all SO lists loaded by each process in the process list. The information of the SO includes the string list of the SO. The device for determining the string list information can read all SO lists of each process in the process list. Here, by reading the memory layout file of each process, all SO lists of the process can be obtained, including the starting address of the SO in the memory, the file path of the SO and other information. Specifically, the SO file list can be determined in the following way:
[0081] First, for the process information to be mined, the process ID of each process has been determined in step 102;
[0082] Through sprintf(path," / proc / %d / maps",pid), the name of the file can be read based on the process ID, where pid represents the corresponding process ID. Finally, the file name path can be obtained. By reading the file name path, the memory layout information of the entire process can be obtained.
[0083] FILE*p=fopen(path,"r");Open the memory layout file through the fopen system function.
[0084] Then read the memory layout file, one line at a time, until the file is complete:
[0085] while(fgets(line,sizeof(line),p)){
[0086] Among them, fgets will read a line of information and store it in the variable line;
[0087] Then we can determine whether the file name ends with .so. If so, we can determine that the file is a so file and get the so file path.}
[0088] By reading the path file (also known as the file memory mapping file), you can get the paths of all SO files loaded by the process.
[0089] 105. Determine the string list information corresponding to each SO file in the SO file list.
[0090] In this embodiment, after determining the path of each file in the SO file list, the device for determining the string list information can read each SO file in the SO file list based on the path; and parse each SO file to obtain the string list information of each SO file.
[0091] It should be noted that after determining the string list information of each SO file in the SO file list, the string list information determination device can send the string list information corresponding to each SO file to the server, so that the server detects the target device according to the string list information corresponding to each SO file.
[0092] In summary, it can be seen that in the embodiment provided by the present invention, by performing a preliminary analysis on the process name of the process running in the device that has obtained the highest authority, it is determined whether the cracking tool is running in the device. If the cracking tool is not running, the corresponding SO file list is obtained by reading the memory layout file of the process, and the string list corresponding to each SO file is obtained. In this way, the string list information of all SOs loaded by the process in the device can be obtained. Since the SO string list information includes more information about the SO, the inspection of the black industry can be made more accurate when checking whether the device is running the cracking tool of the black industry based on the string list information of all SOs.
[0093] The above describes the embodiment of the present invention from the perspective of a method for determining string list information. The following describes the embodiment of the present invention from the perspective of an apparatus for determining string list information.
[0094] See also Figure 2 , a virtual structural diagram of a device for determining string list information in an embodiment of the present invention, wherein the device 200 for determining string list information includes:
[0095] The first determination module 201 is used to determine whether the target device has obtained the highest authority;
[0096] A first determination module 202, configured to determine the process name of each process in a process list running on the target device if the target device has obtained the highest authority;
[0097] The second judgment module 203 is used to judge whether the cracking tool is running on the target device according to the process name of each process in the process list;
[0098] A reading module 204 is used to read the memory layout file of the first process to obtain a list of shared object SO files loaded by the first process if the cracking tool is not running on the target device, and the first process is any process in the process list;
[0099] The second determining module 205 is used to determine the string list information corresponding to each SO file in the SO file list.
[0100] In a possible design, the first determining module 202 is specifically configured to:
[0101] Determining a virtual file system corresponding to the target device;
[0102] Obtaining a directory handle of the virtual file system through an opendir system interface;
[0103] Traversing the process list based on the directory handle to obtain a process identifier of each process in the process list;
[0104] Formatting the process identifier of each process to obtain the file name of each process;
[0105] The process name of each process is determined according to the file name of each process.
[0106] In a possible design, the reading module 204 is specifically used for:
[0107] Open the memory layout file through the fopen system function, and read each line of information in the memory layout file in sequence through the fgets system function;
[0108] Obtain the SO file path in the memory layout file according to each line of information;
[0109] The SO file list is determined according to the SO file path.
[0110] In a possible design, the second determining module is specifically configured to:
[0111] Read each SO file in the SO file list;
[0112] Each SO file is parsed to obtain string list information of each SO file.
[0113] In a possible design, the first determination module 201 is specifically configured to:
[0114] Based on the system call method, judging whether there is a target file with a preset file name in the target device through the syscall function;
[0115] If the target file exists in the target device, determining that the target device has obtained the highest authority;
[0116] If the target file does not exist in the target device, it is determined that the target device does not obtain the highest authority.
[0117] In a possible design, the second determination module 203 is specifically configured to:
[0118] Determine whether the process list contains a second process with a preset process name, wherein the preset process name is associated with the cracking tool;
[0119] If the process list includes the second process, determining that the cracking tool is running on the target device;
[0120] If the process list does not include the second process, it is determined that the cracking tool is not running on the target device.
[0121] In a possible design, the second determining module 205 is further configured to:
[0122] The string list information corresponding to each SO file is sent to the server, so that the server detects the target device according to the string list information corresponding to each SO file.
[0123] above Figure 2 The device for determining string list information in the embodiment of the present invention is described from the perspective of modular functional entities. The device for determining string list information in the embodiment of the present invention is described in detail from the perspective of hardware processing. Figure 3 , a schematic diagram of an embodiment of a device 300 for determining string list information in an embodiment of the present invention, wherein the device 300 for determining string list information comprises:
[0124] An input device 301, an output device 302, a processor 303 and a memory 304 (the number of the processor 303 can be one or more, Figure 3 In some embodiments of the present invention, the input device 301, the output device 302, the processor 303 and the memory 304 may be connected via a communication bus or other means, wherein: Figure 3 The communication bus connection is taken as an example.
[0125] Wherein, by calling the operation instruction stored in the memory 304, the processor 303 is used to perform the following steps:
[0126] Determine whether the target device has obtained the highest authority;
[0127] If the target device has obtained the highest authority, determining the process name of each process in the process list running on the target device;
[0128] Determining whether a cracking tool is running on the target device according to the process name of each process in the process list;
[0129] If the cracking tool is not running on the target device, read the memory layout file of the first process to obtain a list of shared object SO files loaded by the first process, where the first process is any process in the process list;
[0130] Determine the string list information corresponding to each SO file in the SO file list.
[0131] By calling the operation instructions stored in the memory 304, the processor 303 is also used to execute Figure 1 Any method in the corresponding embodiment.
[0132] See also Figure 4 , Figure 4 A schematic diagram of an electronic device according to an embodiment of the present invention.
[0133] like Figure 4 As shown, an embodiment of the present invention provides an electronic device, including a memory 410, a processor 420, and a computer program 411 stored in the memory 410 and executable on the processor 420. When the processor 420 executes the computer program 411, the following steps are implemented:
[0134] Determine whether the target device has obtained the highest authority;
[0135] If the target device has obtained the highest authority, determining the process name of each process in the process list running on the target device;
[0136] Determining whether a cracking tool is running on the target device according to the process name of each process in the process list;
[0137] If the cracking tool is not running on the target device, read the memory layout file of the first process to obtain a list of shared object SO files loaded by the first process, where the first process is any process in the process list;
[0138] Determine the string list information corresponding to each SO file in the SO file list.
[0139] In the specific implementation process, when the processor 420 executes the computer program 411, it can achieve Figure 1 Any implementation manner in the corresponding embodiments.
[0140] Since the electronic device introduced in this embodiment is a device used to implement a device for determining string list information in an embodiment of the present invention, based on the method introduced in the embodiment of the present invention, technicians in this field can understand the specific implementation of the electronic device of this embodiment and its various variations. Therefore, how the electronic device implements the method in the embodiment of the present invention is not described in detail here. As long as the devices used by technicians in this field to implement the method in the embodiment of the present invention are within the scope of protection of the present invention.
[0141] See also Figure 5 , Figure 5 A schematic diagram of an embodiment of a computer-readable storage medium provided in an embodiment of the present invention.
[0142] like Figure 5 As shown, the embodiment of the present invention further provides a computer-readable storage medium 500, on which a computer program 511 is stored. When the computer program 511 is executed by a processor, the following steps are implemented:
[0143] Determine whether the target device has obtained the highest authority;
[0144] If the target device has obtained the highest authority, determining the process name of each process in the process list running on the target device;
[0145] Determining whether a cracking tool is running on the target device according to the process name of each process in the process list;
[0146] If the cracking tool is not running on the target device, read the memory layout file of the first process to obtain a list of shared object SO files loaded by the first process, where the first process is any process in the process list;
[0147] Determine the string list information corresponding to each SO file in the SO file list.
[0148] In the specific implementation process, the computer program 511 is executed by the processor to achieve Figure 1 Any implementation manner in the corresponding embodiments.
[0149] It should be noted that in the above embodiments, the description of each embodiment has its own emphasis, and for parts that are not described in detail in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.
[0150] Those skilled in the art will appreciate that embodiments of the present invention may be provided as methods, systems, or computer program products. Therefore, the present invention may take the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware. Moreover, the present invention may take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.
[0151] The present invention is described with reference to flowcharts and / or block diagrams of methods, devices (systems), and computer program products according to embodiments of the present invention. It should be understood that each process and / or block in the flowchart and / or block diagram, as well as the combination of processes and / or blocks in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded computer, or other programmable data processing device to generate a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.
[0152] These computer program instructions may also be stored in a computer readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer readable memory produce an article of manufacture including an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.
[0153] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process in the computer or other programmable device. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.
[0154] The embodiment of the present invention also provides a computer program product, which includes computer software instructions. When the computer software instructions are executed on a processing device, the processing device executes the following Figure 1 The process in the corresponding embodiment.
[0155] The computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on a computer, the process or function described in the embodiment of the present invention is generated in whole or in part. The computer may be a general-purpose computer, a special-purpose computer, a computer network, or other programmable device. The computer instructions may be stored in a computer-readable storage medium, or transmitted from one computer-readable storage medium to another computer-readable storage medium. For example, the computer instructions may be transmitted from one website site, computer, server or data center to another website site, computer, server or data center by wired (e.g., coaxial cable, optical fiber, digital subscriber line (DSL)) or wireless (e.g., infrared, wireless, microwave, etc.) means. The computer-readable storage medium may be any available medium that a computer can store or a data storage device such as a server or data center that includes one or more available media integrated. The available medium may be a magnetic medium (e.g., a floppy disk, a hard disk, a tape), an optical medium (e.g., a DVD), or a semiconductor medium (e.g., a solid state disk (SSD)), etc.
[0156] Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working processes of the systems, devices and units described above can refer to the corresponding processes in the aforementioned method embodiments and will not be repeated here.
[0157] In the several embodiments provided by the present invention, it should be understood that the disclosed systems, devices and methods can be implemented in other ways. For example, the device embodiments described above are only schematic. For example, the division of the units is only a logical function division. There are other division methods in actual implementation. For example, multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be an indirect coupling or communication connection through some interfaces, devices or units, which can be electrical, mechanical or other forms.
[0158] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
[0159] In addition, each functional unit in each embodiment of the present invention may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.
[0160] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present invention, in essence, or the part that contributes to the prior art, or all or part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including a number of instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present invention. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM), random access memory (RAM), disk or optical disk, etc., various media that can store program codes.
[0161] As described above, the above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit the same. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that the technical solutions described in the aforementioned embodiments may still be modified, or some of the technical features thereof may be replaced by equivalents. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present invention.
Claims
1. A method for determining string list information, characterized in that: include: Determine whether the target device has obtained the highest authority; If the target device has obtained the highest authority, determining the process name of each process in the process list running on the target device; Determining whether a cracking tool is running on the target device according to the process name of each process in the process list; If the cracking tool is not running on the target device, read the memory layout file of the first process to obtain a list of shared object SO files loaded by the first process, where the first process is any process in the process list; Determine the string list information corresponding to each SO file in the SO file list.
2. The method according to claim 1, characterized in that Determining the process name of each process in the process list running on the target device includes: Determining a virtual file system corresponding to the target device; Obtaining a directory handle of the virtual file system through an opendir system interface; Traversing the process list based on the directory handle to obtain a process identifier of each process in the process list; Formatting the process identifier of each process to obtain the file name of each process; The process name of each process is determined according to the file name of each process.
3. The method according to claim 1, characterized in that The reading of the memory layout file of the first process to obtain a list of shared object SO files loaded by the first process includes: Open the memory layout file through the fopen system function, and read each line of information in the memory layout file in sequence through the fgets system function; Obtain the SO file path in the memory layout file according to each line of information; The SO file list is determined according to the SO file path.
4. The method according to claim 1, characterized in that: The determining of the string list information corresponding to each SO file in the SO file list includes: Read each SO file in the SO file list; Each SO file is parsed to obtain string list information of each SO file.
5. The method according to any one of claims 1 to 4, characterized in that The determining whether the target device has obtained the highest authority includes: Based on the system call method, judging whether there is a target file with a preset file name in the target device through the syscall function; If the target file exists in the target device, determining that the target device has obtained the highest authority; If the target file does not exist in the target device, it is determined that the target device does not obtain the highest authority.
6. The method according to any one of claims 1 to 4, characterized in that The determining whether a cracking tool is running on the target device according to the process name of each process in the process list includes: Determine whether the process list contains a second process with a preset process name, wherein the preset process name is associated with the cracking tool; If the process list includes the second process, determining that the cracking tool is running on the target device; If the process list does not include the second process, it is determined that the cracking tool is not running on the target device.
7. The method according to any one of claims 1 to 4, characterized in that The method further comprises: The string list information corresponding to each SO file is sent to the server, so that the server detects the target device according to the string list information corresponding to each SO file.
8. A device for determining string list information, characterized in that: include: The first judgment module is used to judge whether the target device has obtained the highest authority; A first determination module, configured to determine the process name of each process in a process list running on the target device if the target device has obtained the highest authority; A second judgment module is used to judge whether a cracking tool is running on the target device according to the process name of each process in the process list; A reading module, configured to read a memory layout file of a first process if a cracking tool is not running on the target device, so as to obtain a list of shared object SO files loaded by the first process, wherein the first process is any one of the processes in the process list; The second determining module is used to determine the string list information corresponding to each SO file in the SO file list.
9. An electronic device, characterized in that: include: A memory and a processor, wherein the processor is used to implement the method for determining string list information as described in any one of claims 1 to 7 when executing a computer management program stored in the memory.
10. A computer-readable storage medium having a computer management program stored thereon, characterized in that: When the computer management program is executed by a processor, the method for determining string list information according to any one of claims 1 to 7 is implemented.
