Method, device and equipment for detecting external plug-in and storage medium

By obtaining the socket function addresses of the system and the .so files loaded by the system, and combining server information and PLTGOT table updates, abnormal data can be monitored in real time. This solves the problem that existing cheat detection methods are easily bypassed, and achieves efficient and accurate cheat detection.

CN115577355BActive Publication Date: 2026-11-20武汉斗鱼鱼乐网络科技有限公司
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202110759396.8
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-07-05
Publication Date
2026-11-20
Estimated Expiration
2041-07-05

AI Technical Summary

Technical Problem

Existing methods for detecting cheats are easily bypassed by cheats by modifying parts of the data or names of the .so files, resulting in low detection efficiency and insufficient accuracy.

Method used

By obtaining the socket function addresses in the system and the .so files loaded by the system, their consistency is determined, and the .so files corresponding to the relevant socket functions are selected. This is then combined with the external plug-in information on the server for matching. A detection thread is built to monitor abnormal data in real time, and the socket function addresses are automatically updated using the PLTGOT table to improve detection accuracy.

Benefits of technology

Even if the plug-in mods the name or part of the data of the .so file, it can still effectively detect the plug-in file. The method is simple and has a wide coverage, with efficient detection capabilities. It is applicable to different systems and improves the universality and accuracy of detection.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115577355B_ABST
    Figure CN115577355B_ABST
Patent Text Reader

Abstract

The application provides a method for detecting plug-ins, comprising: acquiring all so files, wherein the all so files comprise system so files and system loaded so files, the system so files comprise first socket functions, and the system loaded so files comprise second socket functions; judging whether the addresses of the first socket functions and the addresses of the second socket functions are consistent; if the addresses of the first socket functions and the addresses of the second socket functions are inconsistent, selecting any two related socket functions in the second socket functions and acquiring so files corresponding to the any two related socket functions; if the any two related socket functions match socket functions of a plug-in stored on a server and the corresponding so files are the same file, the file is a plug-in so file. The application also provides a device for detecting network plug-ins, an electronic device and a computer readable storage medium.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of computer networks, and specifically to a method, apparatus, device, and computer-readable storage medium for detecting network plug-ins. Background Technology

[0002] The main method for detecting cheats is to compare the hash value of the cheat's .so file with the hash value of the .so file in the program, or to determine whether the names of the .so files in the program and the cheat's .so file are the same. Although the above detection methods can detect cheats, as cheats are constantly updated and upgraded, they can bypass the existing detection by modifying some data or names of the cheat's .so file. Therefore, the existing detection scheme is prone to missing some cheats and has low detection efficiency.

[0003] Public content

[0004] To overcome the above problems, this disclosure provides a method for detecting cheats, including:

[0005] Obtain all .so files, including system .so files and system-loaded .so files. The system .so files include a first socket function, and the system-loaded .so files include a second socket function.

[0006] Determine whether the address of the first socket function and the address of the second socket function are the same;

[0007] If the address of the first socket function is inconsistent with the address of the second socket function, then select any two related socket functions in the second socket function and obtain the .so file corresponding to the two related socket functions.

[0008] If any two related socket functions match the external socket functions stored on the server, and the corresponding .so files are the same file, then the file is an external .so file.

[0009] Optionally, obtaining all .so files includes:

[0010] Enumerate all memory files of programs currently running in the system;

[0011] Obtain the data information of each of the memory files;

[0012] Determine whether the data information of each of the memory files possesses the data information characteristics of an SO file;

[0013] If the data information of a memory file has the characteristics of the data information of the SO file, then the memory file is obtained. All memory files include the system SO file and the SO file loaded by the system.

[0014] Optionally, after obtaining all .so files, the process further includes:

[0015] Obtain the PLTGOT table, which stores the addresses of the system .so files and the .so files loaded by the system;

[0016] When the system loads a new .so file, the address of the new .so file is automatically filled into the PLTGOT table.

[0017] Optionally, selecting any two related socket functions from the second socket functions includes:

[0018] Use a linked list of strings to store the names of all related socket functions;

[0019] Collect the relevant socket functions;

[0020] Create a list of related socket functions to store the string linked list and the related socket functions;

[0021] Select any two related socket functions from the second socket function list.

[0022] Optionally, if any two related socket functions match external socket functions stored on the server, and the corresponding .so files are the same file, then the file is an external .so file, including:

[0023] Obtain the relative offsets of any two related socket functions in the corresponding .so file, as well as the names of any two related socket functions;

[0024] Based on the relative offsets of any two related socket functions in the corresponding .so file, and the names of the two related socket functions, find the external .so file and the names of the socket functions in the external .so file stored on the server.

[0025] If any two related socket functions match two corresponding socket functions of the external plugin, and the two corresponding socket functions belong to the same file, then the file is the external plugin .so file.

[0026] Optionally, the method for detecting cheats further includes:

[0027] Construct a detection thread, which is used to detect abnormal data;

[0028] Modify at least one of the first socket functions or the socket function of the system-loaded .so file to obtain at least one abnormal data.

[0029] The detection thread continuously detects whether any abnormal data other than the at least one abnormal data appears.

[0030] If any abnormal data other than the at least one abnormal data is detected, then the other abnormal data is considered to be a cheat.

[0031] Optionally, the method for detecting cheats further includes:

[0032] The time interval for reporting abnormal data is statistically significant.

[0033] Determine whether the time interval is within a preset range;

[0034] If the time interval is not within the preset range, an alarm will be triggered.

[0035] This disclosure also provides a device for detecting cheats, including:

[0036] The first acquisition module is used to acquire all .so files, including .so files within the system and .so files loaded by the system. The .so files within the system include a first socket function, and the .so files loaded by the system include a second socket function.

[0037] The judgment module is used to determine whether the address of the first socket function and the address of the second socket function are the same;

[0038] The analysis module is used to select any two related socket functions from the second socket function if the address of the first socket function is inconsistent with the address of the second socket function.

[0039] The second acquisition module is used to acquire the .so file corresponding to any two related socket functions;

[0040] The matching module is configured to identify a file as an external file if any two related socket functions match external socket functions stored on the server, and the corresponding .so files are the same file.

[0041] This disclosure also provides an electronic device, including a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that the processor executes the program to implement any of the above-described methods for detecting cheats.

[0042] This disclosure also provides a computer-readable storage medium having a computer program stored thereon, characterized in that, when the program is executed by a processor, it implements any of the above-described methods for detecting cheats.

[0043] Based on the above technical solution, it can be seen that this disclosure has at least the following beneficial effects:

[0044] This disclosure provides a method for detecting cheat software, including:

[0045] By acquiring all .so files, including system .so files and system-loaded .so files, the system .so files contain a first socket function, and the system-loaded .so files contain a second socket function. The system then checks if the addresses of the first and second socket functions are the same. If they are different, it selects any two related socket functions from the second socket function set and acquires their corresponding .so files. If any two related socket functions match external socket functions stored on the server, and the corresponding .so files are the same, then the file is considered an external .so file. Even if a hacker modifies the name or some data of the .so file, they cannot bypass the detection method provided in this disclosure. Attached Figure Description

[0046] To gain a more complete understanding of this disclosure and its advantages, reference will now be made to the following description taken in conjunction with the accompanying drawings, wherein:

[0047] Figure 1 A flowchart illustrating the detection of cheats according to an embodiment of the present disclosure is shown schematically;

[0048] Figure 2 A flowchart illustrating the detection of cheats according to another embodiment of this disclosure is shown schematically;

[0049] Figure 3 A flowchart illustrating the detection of cheats according to another embodiment of this disclosure is shown schematically;

[0050] Figure 4 A block diagram of a device for detecting add-ons according to an embodiment of the present disclosure is shown schematically;

[0051] Figure 5 A hardware structure diagram of an electronic device according to an embodiment of the present disclosure is shown schematically. Detailed Implementation

[0052] To make the objectives, technical solutions, and advantages of the embodiments of the present invention clearer, the technical solutions of the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of the present invention, not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of the present invention.

[0053] The terminology used herein is for the purpose of describing particular embodiments only and is not intended to limit the scope of this disclosure. Unless otherwise defined, technical or scientific terms used in this invention should be understood in their ordinary sense by one of ordinary skill in the art to which this invention pertains. The terms “comprising,” “including,” etc., as used herein indicate the presence of features, steps, operations, and / or components, but do not exclude the presence or addition of one or more other features, steps, operations, or components.

[0054] Figure 1 A flowchart illustrating the detection of network cheats according to an embodiment of this disclosure is shown schematically. A cheat generally refers to a program that, during computer operation, is triggered by a certain event to attach itself to the space of another program. For the Android platform, some malicious programs often sense, acquire, and modify the network data of the system's running programs (modifying the socket function address using the system socket function as a port, and importing the cheat's socket function through the modified socket function address). Since the client and server communicate via network data, modifying network data can enable any type of "cheat" program. Cheats cause extreme unfairness in online games and also increase the amount of junk data on the server side. Figure 1 As shown, this disclosure provides a method for detecting network cheats, the method comprising:

[0055] Step S101: Obtain all .so files;

[0056] In this embodiment of the disclosure, all .so files include system .so files and system-loaded .so files. The system .so files include a first socket function, and the system-loaded .so files include a second socket function.

[0057] Step S102: Determine whether the address of the first socket function and the address of the second socket function are the same;

[0058] All .so files were obtained in step S101. Based on all .so files, the first socket function and the second socket function were obtained. The second socket function is the function loaded by the system through the first socket function. At the same time, the second socket function may also be a function that has been modified by a hacker. To determine whether the second socket function has been modified by a hacker, we first check whether the address of the exported function of the second socket function is consistent with the address stored in the system. If the address of the first socket function is inconsistent with the address of the second socket function, it means that the address of the second socket function has been modified by the hacker to the hacker's address, and step S103 is executed.

[0059] If the address of the first socket function is inconsistent with the address of the second socket function, then execute step S103 and select any two related socket functions in the second socket function.

[0060] In step S102, find the second socket function whose address has been modified, and select any two related socket functions from it.

[0061] Step S104: Obtain the .so files corresponding to any two related socket functions.

[0062] Step S105: If any two related socket functions match the external socket functions stored on the server, and the corresponding .so files are the same file, then the file is an external file.

[0063] In this step, the server stores information about cheats available on the market, including cheat .so files. Each cheat .so file contains a cheat's socket function. If any two related socket functions match the cheat information stored on the server, and the .so files corresponding to the two related socket functions are the same file, then this .so file is a cheat file.

[0064] It should be noted that the methods for detecting network cheats listed in the above embodiments are only for illustrative purposes and do not limit the application scenarios of this method.

[0065] Through the embodiments disclosed herein, the external function and the corresponding external file can be found by selecting only any two related socket functions. The method is simple and has a wide detection coverage. Even if a hacker modifies some data or names of the external .so file, the existing detection cannot be bypassed.

[0066] Figure 2A flowchart illustrating the detection of add-ons according to another embodiment of this disclosure is shown schematically. When a system uses a third-party component, the third-party component may load an .so file. Existing technology involves manually updating the .so file record by identifying the name of the new .so file. However, .so file names differ across systems, making this existing update method prone to errors or omissions, lacking versatility, and difficult to maintain. As a preferred embodiment, such as... Figure 2 As shown, step S101, the method for obtaining all .so files, includes the following steps:

[0067] Step S201: Enumerate all memory files of programs currently running on the system.

[0068] Step S202: Obtain data information for each memory file.

[0069] Step S203: Determine whether the data information of each memory file has the characteristics of the data information of the .so file;

[0070] The specific method for this step is as follows:

[0071] FILE*f=fopen(″ / proc / self / maps″,″r″)

[0072] This method reads the maps information of all memory files and then checks each statement to determine whether a memory file is a .so file.

[0073] while(fgets(line,sizeof(line),f)){

[0074] Write a while loop to read the memory information in file f until the end of the file is reached;

[0075] ret=sscanf(line,"%"PRIxPTR"-%*lx%4s%lx%*x:%*x%*d%n",&base,prot,&offset,&pos)

[0076] The above encoding is used to parse and read a line of information and extract the values ​​of each field from it;

[0077] If the parsing fails, it means that the memory is not the memory of an .so file; if the parsing succeeds, it means that the memory is the memory of an .so file.

[0078] Where base represents the address of this memory file; prot represents the memory attribute information of the memory file, including read / write attributes, execution attributes, etc.; offset represents the offset address of this memory file in the .so file; and pos represents the path of this .so file.

[0079] If the return value `ret! = 3`, it means that the correct value was not found, so continue reading the next line of data; check if `offset` is equal to 0. If it is not equal to 0, it means that this memory file is not at the beginning of the .so file; at the same time, check if the current memory attribute `prot! = 'rp'`. This memory attribute 'rp' means that this memory attribute is readable and executable, because the code in the .so file has readable and executable memory attributes. If it is not equal, the next line needs to be read.

[0080] If all the above conditions are met, then it may be the beginning of a .so file. For the robustness and fault tolerance of the program, it is necessary to further judge the starting data of this memory file to determine whether it is a .so file. Because .so file code all start with magic number 0x7F 0x45 0x4C 0x46, we judge whether the memory file starts with this. If so, it indicates that it is a .so file.

[0081] Step S204: If the data information of a memory file has the characteristics of the data information of an SO file, then obtain the memory file;

[0082] All memory files include system .so files and system-loaded .so files.

[0083] Because the embodiments of this disclosure enumerate the memory files of the programs running on the system in real time and check which of the memory files are .so files, this method can be used to view the files without needing their filenames. It is applicable to different systems, has universality, and is more accurate.

[0084] As an optional embodiment, after obtaining all .so files, the process further includes:

[0085] The PLTGOT table is retrieved. The PLTGOT table stores the addresses of system .so files and .so files loaded by the system. When a new .so file is loaded by the system, its address is automatically populated into the PLTGOT table. The specific method is as follows:

[0086] The system iterates through all sections of the .so file, searching for the section named PT_DYNAMIC, which is the .dynamic section. If loading a new .so file requires calling related system socket functions, the .dynamic section stores the name of the .so file corresponding to the loaded socket function, as well as the name of the called system socket function. The address of the loaded socket function corresponding to the PLTGOT table is obtained through the PT_DYNAMIC section. Therefore, when loading a .so file, the system iterates through the .dynamic section for the .so files that need to be called, loads the corresponding system .so files sequentially based on the names of all system socket functions in the called .so files, and obtains the address of the socket function for the corresponding .so file from it, filling it into the PLTGOT table of that .so file.

[0087] By automatically updating the socket function address in the PLTGOT table, the matching of function addresses in external files can be more comprehensive and accurate.

[0088] As an optional embodiment, refer to Figure 3 Step S103: Select any two related socket functions from the second socket functions, including:

[0089] Step S301: Use a string linked list to store the names of all related socket functions and collect the related socket functions;

[0090] The relevant socket functions include the following list:

[0091] "getaddrinfo", "socket", "setsockopt", "bind", "listen", "connect", "shutdown", "send", "recv", etc.

[0092] List <string>socketFunc; stores a list of all relevant socket function names using a linked list of strings. <string>Used to store all function names.

[0093] Step S302: Create a list of related socket functions to store the string linked list and the related socket functions.

[0094] Step S303: Select any two relevant socket functions from the list of relevant socket functions.

[0095] By creating a list of related socket functions, it is convenient to select any two related socket functions from the second socket function list, and the selection range is reasonable without consuming unnecessary memory.

[0096] As an optional embodiment, step S104, where any two related socket functions match external socket functions stored on the server, and the corresponding .so files are the same file, then the file is an external .so file, includes:

[0097] Select any two related socket functions, obtain their corresponding exported function addresses based on the modified function addresses of the two related socket functions, traverse the memory files currently running in the system, and search for the .so file to which the corresponding exported function address belongs. If the two related socket functions belong to the same .so file, then this .so file is the cheat .so file. The cheat detection method disclosed in this embodiment obtains the relative distance between the two related socket functions in the .so file and the names of the two related socket functions, and compares them with the cheat .so file stored on the server. This avoids false positives. Moreover, the cheat detection method disclosed in this embodiment does not obtain the name of the .so file, nor does it hash the code in the .so file. Even if some data or names of the cheat .so file are modified, the cheat detection method disclosed in this embodiment can still detect it.

[0098] Meanwhile, in order to improve the security of the method for detecting cheats disclosed in this embodiment, different cheats can select different related socket functions, so that the target socket function for detection is constantly changing, thereby increasing the threshold for hackers to crack it.

[0099] As an optional embodiment, the method for detecting cheats further includes:

[0100] Build a detection thread to detect abnormal data;

[0101] Since the system program cannot detect when cheats are added, an independent thread is built to continuously detect them. This prevents cheats from being added again after the initial detection and thus going undetected. The independent detection thread will continuously perform the detection, so any cheats added to the system can be detected in a timely manner.

[0102] The difference between an independent detection thread and a non-independent thread is that an independent thread only executes the detection function. Hackers can easily pause this detection thread, reduce its priority, or adjust its sleep time, preventing the detection thread from performing detection normally. Therefore, this embodiment discloses a method that selects at least one socket function or a socket function in a system-loaded .so file that has no impact on system functionality and modifies it to obtain at least one abnormal data. The thread will then detect this abnormal data and report it to the server. The server will continuously receive data reported by the client. If other abnormal data besides the at least one abnormal data is detected, the other abnormal data is considered a cheat. The time interval between reporting abnormal data is counted, and it is determined whether the time interval is within a preset range. If the time interval is not within the preset range, an alarm is triggered. The method disclosed in this embodiment simplifies the detection scheme and can quickly detect whether there is a cheat.

[0103] Figure 4 A block diagram of a device for detecting add-ons according to an embodiment of the present disclosure is shown schematically. Figure 4 As shown, this disclosure also provides a device 400 for detecting cheats, comprising:

[0104] The first acquisition module 410 is used to acquire all .so files, including .so files within the system and .so files loaded by the system. The .so files within the system include the first socket function, and the .so files loaded by the system include the second socket function.

[0105] The judgment module 420 is used to determine whether the address of the first socket function and the address of the second socket function are the same;

[0106] All .so files are obtained through the first acquisition module 410. Based on all .so files, the first socket function and the second socket function are obtained. The second socket function is the function loaded by the system through the first socket function. At the same time, the second socket function may also be a function that has been modified by a hacker. To determine whether the second socket function has been modified by a hacker, we first check whether the address of the exported function of the second socket function is consistent with the address stored in the system. If the address of the first socket function is inconsistent with the address of the second socket function, it means that the address of the second socket function has been modified by the hacker to the hacker's address, and the process proceeds to the analysis module 430.

[0107] Analysis module 430 is used to select any two related socket functions from the second socket function if the address of the first socket function is inconsistent with the address of the second socket function.

[0108] The second acquisition module 440 is used to acquire the .so file corresponding to any two related socket functions.

[0109] Matching module 450 is used to identify a file as an external file if any two related socket functions match external socket functions stored on the server and the corresponding .so files are the same file.

[0110] In this module, the server stores information about plug-ins available on the market, including plug-in .so files. The plug-in .so files contain plug-in socket functions. If any two related socket functions match the plug-in information stored on the server, and the .so files corresponding to the two related socket functions are the same file, then this .so file is a plug-in file.

[0111] This embodiment also includes:

[0112] The building module is used to build a detection thread, which is used to detect abnormal data.

[0113] The selection module is used to select at least one first socket function or a socket function of a system-loaded .so file for modification to obtain at least one exception data.

[0114] The detection module is used to detect in real time whether there is any abnormal data other than the at least one abnormal data. If any abnormal data other than the at least one abnormal data is detected, then the other abnormal data is a cheat.

[0115] The statistics module is used to count the time intervals at which abnormal data is reported.

[0116] An alarm module is used to determine whether the time interval is within a preset range. If the time interval is not within the preset range, an alarm is triggered.

[0117] It should be noted that the device part for detecting cheats in the embodiments of this disclosure corresponds to the method part for detecting cheats in the embodiments of this disclosure. For a detailed description of the device part for detecting cheats, please refer to the method part for detecting cheats, which will not be repeated here.

[0118] Please see Figure 5 , Figure 5 A hardware structure diagram of an electronic device is shown.

[0119] The electronic device described in this embodiment includes:

[0120] The memory 501, the processor 502, and the computer program stored in the memory 501 and executable on the processor 502, wherein the processor 502 executes the program to implement the aforementioned... Figure 1 The view management method described in the illustrated embodiment.

[0121] Furthermore, the electronic device also includes:

[0122] At least one input device 503; at least one output device 504.

[0123] The aforementioned memory 501, processor 502, input device 503, and output device 504 are connected via bus 505.

[0124] The input device 503 can specifically be a camera, touch panel, physical buttons, or mouse, etc. The output device 504 can specifically be a display screen.

[0125] The memory 501 can be a high-speed random access memory (RAM) or a non-volatile memory, such as a disk storage device. The memory 501 is used to store a set of executable program code, and the processor 502 is coupled to the memory 501.

[0126] Furthermore, this disclosure also provides a computer-readable storage medium, which may be disposed in the electronic device described in the above embodiments, and the computer-readable storage medium may be as described above. Figure 2 The electronic device in the illustrated embodiment. A computer program is stored on the computer-readable storage medium, which, when executed by a processor, implements the aforementioned... Figure 1 The method for detecting cheat programs is described in the illustrated embodiment. Furthermore, the computer storage medium can also be a USB flash drive, external hard drive, read-only memory (ROM), random access memory (RAM), magnetic disk, or optical disk, or any other medium capable of storing program code.

[0127] It should be noted that the functional modules in the various embodiments of this disclosure can be integrated into one processing module, or each module can exist physically separately, or two or more modules can be integrated into one module. The integrated modules described above can be implemented in hardware or as software functional modules.

[0128] If the integrated module is implemented as a software functional module 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.

[0129] It should be noted that, for the sake of simplicity, the foregoing method embodiments are all described as a series of actions. However, those skilled in the art should understand that the present invention is not limited to the described order of actions, because according to the present invention, some steps can be performed in other orders or simultaneously. Furthermore, those skilled in the art should also understand that the embodiments described in the specification are preferred embodiments, and the actions and modules involved are not necessarily essential to the present invention.

[0130] In the above embodiments, the descriptions of each embodiment have different focuses. For parts not described in detail in a certain embodiment, please refer to the relevant descriptions of other embodiments.

[0131] The above is a description of a method, apparatus, electronic device, and readable storage medium for detecting cheats provided by the present invention. For those skilled in the art, based on the ideas of the embodiments of the present invention, there will be changes in the specific implementation methods and application scope. Therefore, the content of this specification should not be construed as a limitation of the present invention.< / string> < / string>

Claims

1. A method for detecting cheat software, characterized in that, include: Obtain all .so files, including system .so files and system-loaded .so files. The system .so files include a first socket function, and the system-loaded .so files include a second socket function. Determine whether the address of the first socket function and the address of the second socket function are the same; If the address of the first socket function is inconsistent with the address of the second socket function, then select any two related socket functions in the second socket function and obtain the .so file corresponding to the two related socket functions. If any two related socket functions match the external socket functions stored on the server, and the corresponding .so files are the same file, then the file is an external .so file.

2. The method for detecting cheats according to claim 1, characterized in that, The process of obtaining all .so files includes: Enumerate all memory files of programs currently running in the system; Obtain the data information of each of the memory files; Determine whether the data information of each of the memory files possesses the data information characteristics of an SO file; If the data information of a memory file has the characteristics of the data information of the SO file, then the memory file is obtained. All memory files include the system SO file and the SO file loaded by the system.

3. The method for detecting cheats according to claim 2, characterized in that, After obtaining all .so files, the process also includes: Obtain the PLTGOT table, which stores the addresses of the system .so files and the .so files loaded by the system; When the system loads a new .so file, the address of the new .so file is automatically filled into the PLTGOT table.

4. The method for detecting cheats according to claim 1, characterized in that, The step of selecting any two related socket functions from the second socket function includes Use a linked list of strings to store the names of all related socket functions; Collect the relevant socket functions; Create a list of related socket functions to store the string linked list and the related socket functions; Select any two related socket functions from the second socket function list.

5. The method for detecting cheats according to claim 1, characterized in that, If any two related socket functions match external socket functions stored on the server, and the corresponding .so files are the same file, then the file is an external .so file, including: Obtain the relative offsets of any two related socket functions in the corresponding .so file, as well as the names of any two related socket functions; Based on the relative offsets of any two related socket functions in the corresponding .so file, and the names of the two related socket functions, find the external .so file and the names of the socket functions in the external .so file stored on the server. If any two related socket functions match two corresponding socket functions of the external plugin, and the two corresponding socket functions belong to the same file, then the file is the external plugin .so file.

6. The method for detecting cheats according to claim 1, characterized in that, Also includes: Construct a detection thread, which is used to detect abnormal data; Modify at least one of the first socket functions or the socket function of the system-loaded .so file to obtain at least one abnormal data. The detection thread continuously detects whether any abnormal data other than the at least one abnormal data appears. If any abnormal data other than the at least one abnormal data is detected, then the other abnormal data is considered to be a cheat.

7. The method for detecting cheats according to claim 6, characterized in that, Also includes: The time interval for reporting abnormal data is statistically significant. Determine whether the time interval is within a preset range; If the time interval is not within the preset range, an alarm will be triggered.

8. A device for detecting cheat codes, characterized in that, include: The first acquisition module is used to acquire all .so files, including .so files within the system and .so files loaded by the system. The .so files within the system include a first socket function, and the .so files loaded by the system include a second socket function. The judgment module is used to determine whether the address of the first socket function and the address of the second socket function are the same; The analysis module is used to select any two related socket functions from the second socket function if the address of the first socket function is inconsistent with the address of the second socket function. The second acquisition module is used to acquire the .so file corresponding to any two related socket functions; The matching module is configured to identify a file as an external file if any two related socket functions match external socket functions stored on the server, and the corresponding .so files are the same file.

9. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that, When the processor executes the program, it implements the method described in any one of claims 1-7.

10. A computer-readable storage medium having a computer program stored thereon, characterized in that, When the program is executed by the processor, it implements the method described in any one of claims 1-7.

Citation Information

Patent Citations

  • Plug-in detection method and device

    CN106970871A

  • KR20190041667A