Cheating detection method, device, equipment and medium

By dynamically issuing and encrypting the cheat detection code, it solves the problem that the existing anti-cheat mechanism is easily cracked and updates affect the user experience, achieving more efficient cheat prevention and user experience improvement.

CN114307165BActive Publication Date: 2024-10-11BEIJING PERFECT WORLD SOFTWARE TECH DEV CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202111669760.8
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-12-30
Publication Date
2024-10-11
Estimated Expiration
2041-12-30

AI Technical Summary

Technical Problem

The existing anti-cheating mechanism is easily cracked by reverse debugging, and updates require updating the game client, which affects user experience and anti-cheating reliability.

Method used

By obtaining and storing the original cheat detection files, the target cheat detection code is generated according to the predetermined processing rules, and is dynamically distributed to the game client according to the anti-cheat detection time rules. It is distributed using encryption and obfuscation codes are added to increase the difficulty of cracking and avoid pre-plantation. Enter the detection code.

Benefits of technology

It effectively prevents the plug-in detection code from being cracked, improves the reliability of anti-plug-in prevention, and allows users to update without being aware of it, enhancing the flexibility and reliability of anti-plug-in prevention.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114307165B_ABST
    Figure CN114307165B_ABST
Patent Text Reader

Abstract

The present invention discloses a method, device, equipment and medium for detecting cheats, which are applied to the computer field. The method comprises: obtaining and storing cheat detection original files; processing the cheat detection original files according to a predetermined processing rule to obtain a target cheat detection code; and sending the target cheat detection code to a game client according to an anti-cheating detection time rule, so that the game client performs the current cheat detection according to the target cheat detection code. The above scheme can improve the reliability of anti-cheating detection.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of computers, and in particular to a method, device, equipment and medium for detecting a cheat. Background Art

[0002] Cheats are cheating programs created by some people using their computer skills to specifically target one or more online games by changing part of the online game software, thereby destroying the balance of the game world and affecting the fairness of the game.

[0003] The existing anti-cheating mechanism is to collect suspicious cheating information by implanting detection code in the game client and then send it to the remote server, and manually identify the cheating program. The existing anti-cheating mechanism can also be to load the anti-cheating engine library on the game client, so that the cheating detection program contained in the anti-cheating engine library is responsible for detecting and identifying the cheating program on the game client. Obviously, the existing anti-cheating mechanism is easy to find the cheating detection program through reverse or debugging technology, thereby making the anti-cheating mechanism invalid. And if the anti-cheating program needs to be updated, the game client needs to be updated for users to perceive. Summary of the invention

[0004] The embodiments of the present invention provide a cheat detection method, device, equipment and medium, which can at least effectively improve the above-mentioned problem.

[0005] In the first aspect, an embodiment of the present invention provides a cheat detection method, which includes: obtaining and storing a cheat detection original file; processing the cheat detection original file according to a predetermined processing rule to obtain a target cheat detection code; and sending the target cheat detection code to a game client according to an anti-cheating detection time rule, so that the game client performs the current cheat detection according to the target cheat detection code.

[0006] Preferably, sending the target cheat detection code to the game client based on the anti-cheating detection time rule includes: determining the sending time for sending the target cheat detection code based on a pre-configured unequal interval time sequence, or determining the sending time for sending the target cheat detection code based on a random number time generated by a random number generation algorithm; sending the target cheat detection code to the game client based on the determined sending time.

[0007] Preferably, the processing of the original cheat detection file according to a predetermined processing rule to obtain a target cheat detection code includes: parsing the original cheat detection code from the original cheat detection file; randomly inserting an obfuscation code into the original cheat detection code to obtain the target cheat detection code, and the target cheat detection code is used by the game client to perform the current cheat detection.

[0008] Preferably, sending the target cheat detection code to the game client includes: sending the target cheat detection code to the game server, so that the game server encrypts the target cheat detection code through an encryption method negotiated with each of the game clients and distributes it to each of the game clients.

[0009] Preferably, the obtaining and storing of the plug-in detection original file includes: obtaining an intermediate code file compiled from a plug-in detection source program; performing function merging processing on the intermediate code file to form an external plug-in detection original file in which custom function symbols are invisible, wherein the custom function symbols are various function symbols except main function symbols and system function symbols; and storing the plug-in detection original file to an anti-plug-in server.

[0010] Preferably, storing the original cheat detection file to the anti-cheating server includes: storing the original cheat detection file in a non-customized XML format.

[0011] Preferably, the intermediate code file includes a symbol table and a relocation table; the function merging processing of the intermediate code file to form a plug-in detection original file in which the custom function symbol is invisible includes: determining the custom function symbol from the intermediate code file according to the symbol table; and removing the determined custom function symbol from the symbol table and the relocation table.

[0012] Preferably, determining the custom function symbol from the intermediate code file according to the symbol table includes: taking each symbol in the symbol table as a target symbol object respectively; judging whether the target symbol object is in a code segment and judging whether the target symbol object is a symbol of a function name type according to the table entry information related to the target symbol object in the symbol table; if the target symbol object is in the code segment and the target symbol object is a symbol of a function name type, then determining that the target symbol object is a custom function symbol.

[0013] In a second aspect, an embodiment of the present invention provides a plug-in detection method, which is applied to a game client, and the method includes: receiving a target plug-in detection code sent by an anti-plug-in server, wherein the target plug-in detection code is obtained by the anti-plug-in server processing the plug-in detection original file; parsing the target plug-in detection code to obtain an anti-plug-in target file; dynamically loading a dynamic link library file on which the anti-plug-in target file depends to the memory space of the game client, and performing address repair on each relocation item according to the relocation table of the anti-plug-in target file to form an executable file corresponding to the anti-plug-in target file; executing the executable file to complete the current plug-in detection of the game client.

[0014] In the third aspect, an embodiment of the present invention provides a cheat detection device, including: a file acquisition unit, used to acquire and store the cheat detection original file; a file processing unit, used to process the cheat detection original file according to a predetermined processing rule to obtain a target cheat detection code; a code sending unit, used to send the target cheat detection code to the game client according to an anti-cheating detection time rule, so that the game client performs the current cheat detection according to the target cheat detection code.

[0015] In a fourth aspect, an embodiment of the present invention provides a cheat detection device, including:

[0016] A code receiving unit, used for receiving a target cheating detection code sent by an anti-cheating server, wherein the target cheating detection code is obtained by the anti-cheating server processing the cheating detection original file;

[0017] A code parsing unit, used for parsing the target cheat detection code to obtain an anti-cheating target file;

[0018] A link unit, used for dynamically loading the dynamic link library file that the anti-cheating target file depends on into the memory space of the game client, and performing address repair on each relocation item according to the relocation table of the anti-cheating target file to form an executable file corresponding to the anti-cheating target file;

[0019] The file execution unit is used to execute the executable file to complete the current plug-in detection of the game client.

[0020] In a fifth aspect, an embodiment of the present invention provides an electronic device, comprising: a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the program, the method described in any embodiment of the first aspect or the method described in any embodiment of the second aspect is implemented.

[0021] In a sixth aspect, an embodiment of the present invention provides a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the method described in any embodiment of the first aspect or the method described in any embodiment of the second aspect.

[0022] One or more technical solutions provided by the embodiments of the present invention achieve at least the following technical effects or advantages:

[0023] The embodiment of the present invention obtains and stores the original cheat detection file; processes the original cheat detection file according to a predetermined processing rule to obtain a target cheat detection code; and sends the target cheat detection code to the game client according to the anti-cheating detection time rule, so that the game client performs the current cheat detection according to the target cheat detection code. Each time the game client is tested for cheats, the target cheat detection code re-sent by the anti-cheating server is used. In other words, the target cheat detection code is dynamically sent to the game client by the cheat server instead of being pre-implanted in the game client. A cheat cracker cannot find it in the reverse game client, thereby preventing the cheat detection code from being cracked in the game client, thereby improving the reliability of anti-cheating.

[0024] Furthermore, since the target cheat detection code is dynamically sent to the game client instead of being pre-implanted in the game client, the update of the cheat detection code does not require the game client to be updated, so that the update of the cheat detection code is not perceived by the game users. Therefore, the user experience is improved, the cheat detection code can be updated more conveniently and frequently, and it also helps to improve the reliability of anti-cheating.

[0025] The above description is only an overview of the technical solution of the present invention. In order to more clearly understand the technical means of the present invention, it can be implemented according to the contents of the specification. In order to make the above and other purposes, features and advantages of the present invention more obvious and easy to understand, the specific implementation methods of the present invention are listed below. BRIEF DESCRIPTION OF THE DRAWINGS

[0026] Various other advantages and benefits will become apparent to those of ordinary skill in the art by reading the detailed description of the preferred embodiments below. The accompanying drawings are only for the purpose of illustrating the preferred embodiments and are not to be considered as limiting the present invention. Moreover, the same reference symbols are used throughout the accompanying drawings to represent the same components. In the accompanying drawings:

[0027] Figure 1 A system architecture diagram of an anti-cheating system in an embodiment of this specification is shown;

[0028] Figure 2 A flow chart of a cheat detection method in an embodiment of this specification is shown;

[0029] Figure 3 Shows Figure 1 A detailed flowchart of the steps of obtaining and storing the original file for cheat detection;

[0030] Figure 4 A flow chart of a method for detecting cheats applied to a game client in an embodiment of this specification is shown;

[0031] Figure 5A module block diagram of a cheat detection device in an embodiment of this specification is shown;

[0032] Figure 6 A module block diagram of a cheat detection device applied to a game client in an embodiment of this specification is shown;

[0033] Figure 7 A schematic diagram of the structure of an electronic device in an embodiment of the present invention is shown, taking a server as an example. DETAILED DESCRIPTION

[0034] The exemplary embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. Although the exemplary embodiments of the present disclosure are shown in the accompanying drawings, it should be understood that the present disclosure can be implemented in various forms and should not be limited by the embodiments set forth herein. On the contrary, these embodiments are provided in order to enable a more thorough understanding of the present invention and to fully convey the scope of the present invention to those skilled in the art.

[0035] like Figure 1 As shown, Figure 1 This is a system architecture diagram of a cheat detection system in an embodiment of the present invention, and the cheat detection system includes: an anti-cheating server, a game server and a game client, wherein: the anti-cheating server is used to obtain and store the original cheat detection file; the original cheat detection file is processed according to a predetermined processing rule to obtain a target cheat detection code; according to the anti-cheating detection time rule, the target cheat detection code is sent to the game client; the game client is used to perform the current cheat detection according to the target cheat detection code sent by the anti-cheating server.

[0036] It is understandable that the anti-cheating server can send the processed target cheating detection code to the game server, and the game server will encrypt the target cheating detection code through the encryption method negotiated with each game client and distribute it to each game client.

[0037] In order to better understand the embodiments of the present invention, Figure 2 A cheat detection method provided by an embodiment of the present invention is described. The cheat detection method can be applied to an anti-cheating server or other similar devices. Specifically, the method includes the following steps S101 to S102:

[0038] S101, obtaining and storing the original plug-in detection file.

[0039] The plug-in detection original file is generated based on the plug-in detection source program. For example, the plug-in detection original file is an intermediate code file compiled from the plug-in detection source program. The intermediate code file can be in the form of a binary text file, such as: obj file (target file). The obj file contains all the code and data in the compilation unit in the form of machine code.

[0040] Among them, in the plug-in detection source program, each custom function body is arranged in sequence after the main function; therefore, in the intermediate code file compiled from the plug-in detection source program, the binary code of each custom function is also arranged in sequence after the main function in this order, so that the starting position of the intermediate code file can be the starting position of the core code, which is convenient for the implementation of function calls.

[0041] Specifically, the format of the plug-in detection source program may be .cpp or .c, and the plug-in detection source program in the .cpp or .c format is compiled by the vs compiler to obtain an intermediate code file (obj file);

[0042] Furthermore, in order to facilitate the subsequent parsing of the cheat detection original file by the anti-cheating server, and to facilitate the game client to link the cheat detection program in the cheat detection original file, the custom function symbols in the cheat detection original file are in an invisible state. For details, refer to Figure 3 As shown, the following steps S201 to S203 can be used to make the custom function symbol in the original file of the plug-in detection invisible:

[0043] S201. Obtain an intermediate code file compiled from a plug-in detection source program.

[0044] S202, performing function merging processing on the intermediate code file to form an original plug-in detection file in which custom function symbols are invisible, wherein the custom function symbols are various function symbols except the main function symbols and the system function symbols.

[0045] S203, storing the original cheat detection file in the anti-cheating server.

[0046] It should be understood that the above steps S201 to S202, the process of generating a plug-in original file with invisible custom function symbols based on the plug-in detection source program, can be directly executed by the anti-plug-in server, or other electronic devices can generate a plug-in original file with invisible custom function symbols based on the plug-in detection source program and then upload it to the anti-plug-in server for storage in the anti-plug-in server.

[0047] In an embodiment of the present invention, the address used for calling custom functions within the plug-in detection original file can be calculated based on: "called function address - current calling address + 5". Therefore, whether the custom function symbol exists in the symbol table and the redirection table has no effect on the calling of the custom function, and the custom function symbol can be completely deleted from the symbol table and the redirection table.

[0048] Take the intermediate code file as an example, which is an obj file. Its components include: symbol table, relocation table, code segment and data segment. Based on this, the process of function merging of the intermediate code file is: determine the custom function symbol from the intermediate code file; remove the determined custom function symbol from the symbol table of the intermediate code file and the relocation table of the intermediate code file, so that the function name symbols in the symbol table and the relocation table only retain the main function symbol and the system function symbol. This is because after the game client receives the target plug-in detection code sent by the anti-plug-in server, it needs to use the main function symbol and the system function symbol when performing the link operation on the target plug-in detection code. Therefore, the main function symbol and the system function symbol need to be retained in the symbol table and the relocation table and cannot be deleted.

[0049] During the compilation stage, the compiler scans the entire plug-in detection source program to collect symbols such as function names, variable names, segment names, etc. in the plug-in detection source program and write them into the symbol table. Therefore, there are various symbols in the symbol table. Based on this, one implementation method for determining a custom function symbol from the intermediate code file is: take each symbol in the symbol table as a target symbol object; based on the table entry information related to the target symbol object in the symbol table, determine whether the target symbol object is in the code segment of the intermediate code file, and determine whether the target symbol object is a symbol of the function name type; if the target symbol object is in the code segment and the target symbol object is a symbol of the function name type, determine that the target symbol object is a custom function symbol.

[0050] It should be noted that the relocation table and the symbol table have their own data structures. For example, there are multiple table entries in the data structure of the symbol table, among which the value of the "Type" table entry marks the type of the symbol. Specifically, the relocation table and the symbol table have various types of symbols such as function names, variable names, segment names, and some constant information. Among them, if the value of the "Type" table entry is "DT_FUNCTION", it means that the symbol belongs to the function name type. The "Section Number" table entry represents whether the corresponding symbol is in the code segment. Specifically, the value of "Section Number" is ".text", which means that the symbol is in the code segment, and the value of "Section Number" is other, which means that the symbol is not in the code segment. Therefore, according to the symbol table, it can be determined whether each symbol is a function name type and whether the symbol is in the code segment.

[0051] It should be noted that the system function is in the data segment of the intermediate code file, while the custom function is in the code segment of the intermediate code file. Therefore, the location of the custom function relative to other types of functions is different. Therefore, by determining whether the symbol belonging to the function name type is in the code segment, it is possible to distinguish whether the symbol of the function name type is a custom function symbol.

[0052] In order to facilitate the storage of the original cheat detection file on the anti-cheating server and facilitate the anti-cheating server to send it to the game client, the original cheat detection file can be stored in the anti-cheating server in a custom XML (Extensible Markup Language) format.

[0053] Specifically, after obtaining the original cheat detection file, the anti-cheating server converts the original cheat detection file into a custom XML format and stores it in the anti-cheating server. Since the XML format is in the form of a hexadecimal byte stream, data storage can be simplified.

[0054] Among them, the plug-in detection original file is converted into a custom XML format, specifically: various useful information is parsed from the plug-in detection original file, and the parsed various useful information is stored in a custom XML format, wherein the various useful information parsed from the plug-in detection original file includes: table entry information in the symbol table, code information in the code segment, table entry information in the relocation table, etc.

[0055] It should be noted that the customized XML format includes: customizing tags, tag contents and specific storage formats, so as to store various information parsed from the original plug-in detection file in the customized XML format.

[0056] S102: Process the original plug-in detection file according to a predetermined processing rule to obtain a target plug-in detection code.

[0057] It should be noted that, when processing the original plug-in detection file according to the predetermined processing rules, the original plug-in detection file can be simply parsed according to the predetermined file parsing method to obtain the original plug-in detection code, and the original plug-in detection code is directly used as the target plug-in detection code to be sent to the game client. Among them, the predetermined file parsing method is related to the format of the plug-in detection source file, and the plug-in detection original file is parsed according to the file parsing method suitable for the file format of the plug-in detection original file.

[0058] It should be noted that if the original plug-in detection file is stored in the anti-plug-in server in a custom XML format, the anti-plug-in server can use a DOM parser to parse the original plug-in detection file to obtain the original plug-in detection code. It should be understood that the storage format of the original plug-in detection file in the anti-plug-in server is different, and the parser collected by the anti-plug-in server is different, and is not limited to the use of the above-mentioned DOM parser.

[0059] In order to increase the difficulty of cracking the target cheat detection code in the game client, after parsing the original cheat detection code from the original cheat detection file; insert the obfuscation code into the original cheat detection code to obtain the target cheat detection code to be sent to the game client. The target cheat detection code is used by the game client to perform the current cheat detection.

[0060] The obfuscated code is inserted into the original plug-in detection code by randomly inserting junk instructions into the original plug-in detection code, so that the offset address corresponding to the function changes dynamically. Specifically, the original plug-in detection code is translated by the disassembly engine, and according to the translation result, the junk instructions are randomly selected before or after any one or more assembly instructions to obtain the target plug-in detection code.

[0061] In the specific implementation process, the obfuscation code is inserted into the original plug-in detection code, and it can also be: the obfuscation code library is pre-configured in the anti-plug-in server, and the parsed original plug-in detection code is disassembled to obtain the key assembly code. Among them, the key assembly code can be instructions such as jz and call; one or more obfuscation codes are randomly selected from the obfuscation code library and inserted before the key assembly code to achieve the purpose of deceiving reverse debugging tools such as OD (OllyDBG) dynamic debugging tools and IDA PRO (Interactive Disassembler, referred to as IDA) static debuggers, thereby achieving dynamic obfuscation without changing the script code. The plug-in detection program sent to the game client each time changes dynamically with the obfuscation code and its insertion position, rather than being constant, which further increases the difficulty of the game client to crack the plug-in detection program.

[0062] S103: According to the anti-cheating detection time rule, the target cheating detection code is sent to the game client, so that the game client performs the current cheating detection according to the target cheating detection code.

[0063] Specifically, the target cheat detection code is sent to the game client according to the anti-cheating detection time rule, which can be: the anti-cheating server periodically sends the target cheat detection code to the game client. In order to further improve the security of the cheat detection process, the anti-cheating server can send the target cheat detection code to the game client at irregular intervals.

[0064] For the anti-cheating server to send the target cheating detection code to the game client at irregular intervals, it can be: determining the sending time of the target cheating detection code according to a pre-configured unequal interval time sequence, or determining the sending time of the target cheating detection code according to a random number time generated by a random number generation algorithm; sending the target cheating detection code to the game client according to the determined sending time.

[0065] It should be noted that the unequal interval time series can be customized according to the plug-in combat strategy and is not limited here.

[0066] It should be noted that the random number time generated by the random number generation algorithm is between 50s and 120s, so that the random number time generated each time will not exceed the range of 50s to 120s, thereby controlling the frequency of plug-in detection. In the specific implementation process, when the current plug-in detection is performed on the game client, the random number generation algorithm can be used to generate the random number time for the next plug-in detection.

[0067] Both of the above implementations achieve that the timing of the anti-cheating server sending the target cheating detection code is uncertain, so that the client cannot predict the time point of the next cheating detection execution. Therefore, it is more effective to prevent the cheating detection code from being cracked on the client.

[0068] It is understandable that the anti-cheating server needs to rely on the game server to send the target cheating detection code to the game client. Specifically, the anti-cheating server sends the target cheating detection code to the game server, and the game server encrypts the target cheating detection code through the negotiated encryption method negotiated with each game client and distributes it to each game client.

[0069] The anti-cheating server distributes the target cheating detection code to each game server in the form of a byte stream. Each game server then encrypts the received byte stream of the target cheating detection code and distributes the encrypted byte stream to each game client served by the game server.

[0070] Specifically, the game server randomly selects an encryption method from a plurality of pre-configured encryption methods to encrypt and transmit the target cheat detection code, wherein the data packet for transmitting the target cheat detection code includes an encryption method flag, which indicates the encryption method used by the game server for the current encrypted transmission of the target cheat detection code. Furthermore, the game server separately sends the target cheat detection code and the key for decrypting the target cheat detection code to the game client to improve transmission security.

[0071] Based on the same inventive concept, Figure 4 As shown, the embodiment of the present invention provides a cheat detection method applied to a game client, comprising the following steps S301 to S304:

[0072] S301. Receive a target cheat detection code sent by an anti-cheating server. The target cheat detection code is obtained by the anti-cheating server processing an original cheat detection file.

[0073] In step S301, the game client may decrypt and receive the target cheat detection code using the encryption method and password agreed upon with the game server.

[0074] Specifically, the game client determines the encryption method currently used by the game server according to the encryption method flag, and the game client uses the decryption method that matches the encryption method currently used to decrypt and receive the target cheat detection code. In this way, the dynamic change of the encryption and decryption algorithm used to transmit the target cheat detection code between the game server and the game client is realized, thereby improving the security of the transmission of the target cheat detection code.

[0075] S302, parsing the target plug-in detection code to obtain the anti-plug-in target file.

[0076] The anti-cheating target file is parsed from the byte stream of the received target cheating detection code through the anti-cheating engine in the game client.

[0077] It should be understood that the anti-cheat target file parsed by the game client is a file of the same format as the original cheat detection file generated by the aforementioned game server. Specifically, the anti-cheat target file and the original cheat detection file are both obj files, and the anti-cheat target file has more randomly inserted obfuscated code than the original cheat detection file. Taking the anti-cheat target file and the original cheat detection file as obj files as an example, they both include: code segment, data segment, symbol table, relocation table and other parts.

[0078] Similarly, after the game client parses and obtains the anti-cheating target file, the following step S303 is continued: the dynamic link library file that the anti-cheating target file depends on is dynamically loaded into the memory space of the game client, and each relocation item is repaired according to the relocation table of the anti-cheating target file to form an executable file corresponding to the anti-cheating target file.

[0079] Specifically, the dynamic link library file (Dynamic LinkLibrary, DLL) that the anti-cheating target file depends on is dynamically loaded into the memory space of the game client; the game client performs a repair operation on the anti-cheating target file: perform address repair on each relocation item according to the relocation table of the anti-cheating target file, and replace the default address filled in during the compilation stage with the real address.

[0080] The linker of the anti-cheating engine dynamically loads the dynamic link library file that the anti-cheating target file depends on to the memory space of the game client through an API function provided by Windows--loadlibrary(), and relocates each relocation item according to the relocation table, so as to replace the default address filled in the compilation stage with the real address of the called object, and complete the address repair operation. This is because in the compilation stage, when the plug-in detection source program is compiled into the plug-in detection original file, the location of some called objects (functions or data) cannot be determined. Therefore, the addresses of these called objects in the plug-in detection original file are default addresses. Therefore, in the anti-cheating target file after the obfuscation code is inserted, the addresses of these called objects are also default addresses. Therefore, in the linking stage, it is necessary to repair the addresses of each relocation item according to the relocation table of the anti-cheating target file to replace the default address of the called object with the real address.

[0081] After the executable file is formed, step S304 is performed: executing the executable file to complete the current plug-in detection of the game client.

[0082] The anti-cheating script code in the executable file is executed through the call instruction of the anti-cheating engine to detect cheating on the game client. Specifically, since the calling address used in the call instruction can be calculated according to: "the called function address - the current calling address + 5", the custom function symbol does not need to be retained in the symbol table, and does not affect the calling of each custom function.

[0083] The cheat detection method provided by the embodiment of the present invention, through the interaction between the server and the game client, each time the server performs cheat detection on the game client, it re-sends the target cheat detection code to the game client, and the game client processes the target cheat detection code and uses the processed executable file to perform cheat detection. Since the cheat detection program is not pre-implanted in the game client, the cheat cracker cannot find the cheat detection program in the reverse game client, and the program update does not require the client to be updated, which can make the anti-cheating operation more flexible and mobile, and achieve dynamic sending to the game client for cheat detection without the user's awareness.

[0084] Based on the same inventive concept, an embodiment of the present invention provides a cheating detection device 40. Figure 5 As shown, the external plug-in detection device 40 includes:

[0085] The file acquisition unit 401 is used to acquire and store the original file for cheat detection;

[0086] The file processing unit 402 is used to process the original cheat detection file according to a predetermined processing rule to obtain a target cheat detection code;

[0087] The code sending unit 403 is used to send the target cheating detection code to the game client according to the anti-cheating detection time rule, so that the game client performs the current cheating detection according to the target cheating detection code.

[0088] In some implementations, the code issuing unit 403 further includes:

[0089] The issuing time determination subunit is used to determine the issuing time for issuing the target cheat detection code according to a pre-configured unequal interval time sequence, or to determine the issuing time for issuing the target cheat detection code according to a random number time generated by a random number generation algorithm;

[0090] The sending execution subunit is used to send the target plug-in detection code to the game client according to the determined sending time.

[0091] In some embodiments, the file processing unit 402 is specifically used to: parse the original cheat detection code from the original cheat detection file; randomly insert obfuscation code into the original cheat detection code to obtain a target cheat detection code, and the target cheat detection code is used by the game client to perform the current cheat detection.

[0092] In some implementations, the code sending unit 403 is specifically used to: send the target cheat detection code to the game server, so that the game server encrypts the target cheat detection code through the encryption method negotiated with each game client and distributes it to each game client.

[0093] In some embodiments, the file acquisition unit 401 includes: an acquisition sub-unit, used to acquire an intermediate code file compiled from a plug-in detection source program; a merging sub-unit, used to perform function merging processing on the intermediate code file to form an original plug-in detection file in which custom function symbols are invisible, wherein custom function symbols are various function symbols other than main function symbols and system function symbols; and a storage sub-unit, used to store the original plug-in detection file to an anti-plug-in server.

[0094] In some implementations, the storage subunit is specifically used to: store the original plug-in detection file in a non-customized XML format.

[0095] In some embodiments, the intermediate code file includes a symbol table and a relocation table; the merging subunit is specifically used to: determine the custom function symbol from the intermediate code file according to the symbol table; and remove the determined custom function symbol from the symbol table and the relocation table.

[0096] In some embodiments, the merging subunit is specifically used to: respectively use each symbol in the symbol table as a target symbol object; determine whether the target symbol object is in the code segment and whether the target symbol object is a function name type symbol based on the table entry information related to the target symbol object in the symbol table; if the target symbol object is in the code segment and the target symbol object is a function name type symbol, determine that the target symbol object is a custom function symbol.

[0097] Based on the same inventive concept, an embodiment of the present invention provides a cheat detection device 50 applied to a game client. Figure 6 As shown, the external plug-in detection device 50 includes:

[0098] The code receiving unit 501 is used to receive the target cheating detection code sent by the anti-cheating server, where the target cheating detection code is obtained by the anti-cheating server processing the cheating detection original file;

[0099] The code parsing unit 502 is used to parse the target cheat detection code to obtain the anti-cheating target file;

[0100] The link unit 503 is used to dynamically load the dynamic link library file that the anti-cheating target file depends on into the memory space of the game client, and perform address repair on each relocation item according to the relocation table of the anti-cheating target file to form an executable file corresponding to the anti-cheating target file;

[0101] The file execution unit 504 is used to execute the executable file to complete the current plug-in detection on the game client.

[0102] Regarding the apparatus in each of the above embodiments, the specific manner in which each functional unit performs operations has been described in detail in the embodiment of the method, and will not be elaborated here.

[0103] Based on the same inventive concept, an embodiment of this specification also provides an electronic device, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the program, the cheat detection method described in any one of the aforementioned embodiments is implemented.

[0104] Figure 7It is a structural diagram of the electronic device when it is a server in the embodiment of this specification. The server 1900 may have relatively large differences due to different configurations or performances, and may include one or more central processing units (CPU) 1922 (for example, one or more processors) and memory 1932, and one or more storage media 1930 (for example, one or more mass storage devices) storing application programs 1942 or data 1944. Among them, the memory 1932 and the storage medium 1930 can be short-term storage or permanent storage. The program stored in the storage medium 1930 may include one or more modules (not shown in the figure), and each module may include a series of instruction operations on the server. Furthermore, the central processing unit 1922 can be configured to communicate with the storage medium 1930 and execute a series of instruction operations in the storage medium 1930 on the server 1900.

[0105] The server 1900 may also include one or more power supplies 1926, one or more wired or wireless network interfaces 1950, one or more input and output interfaces 1958, one or more keyboards 1956, and / or, one or more operating systems 1941, such as Windows ServerTM, Mac OS XTM, UnixTM, LinuxTM, FreeBSDTM, etc.

[0106] In an exemplary embodiment, a non-temporary computer-readable storage medium including instructions is also provided, such as a memory 1932 including instructions. The above instructions can be executed by a processor of an electronic device to complete the plug-in detection method described in any of the above embodiments. For example, the non-temporary computer-readable storage medium can be a ROM, a random access memory (RAM), a CD-ROM, a tape, a floppy disk, and an optical data storage device, etc.

[0107] Those skilled in the art will readily appreciate other embodiments of the present invention after considering the specification and practicing the invention disclosed herein. This application is intended to cover any variations, uses or adaptations of the present invention that follow the general principles of the present invention and include common knowledge or customary techniques in the art that are not disclosed in this disclosure. The specification and examples are to be considered exemplary only, and the true scope and spirit of the present invention are indicated by the following claims.

[0108] It should be understood that the present invention is not limited to the precise structure described above and shown in the accompanying drawings, and various modifications and changes can be made without departing from the scope thereof. The scope of the present invention is limited only by the appended claims. The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention. Any modification, equivalent substitution, improvement, etc. made within the spirit and principle of the present invention shall be included in the scope of protection of the present invention.

Claims

1. A method for detecting cheating, characterized in that: The method comprises: Obtain and store the plug-in detection original file; the plug-in detection original file is an intermediate code file compiled from the plug-in detection source program; The plug-in detection original file is processed according to a predetermined processing rule to obtain a target plug-in detection code; the target plug-in detection code at least includes: the original plug-in detection code obtained by parsing the intermediate code file according to a predetermined file parsing method; wherein the predetermined file parsing method is related to the format of the plug-in detection source file; According to the anti-cheating detection time rule, the target cheating detection code is sent to the game client, so that the game client performs the current cheating detection according to the target cheating detection code.

2. The method according to claim 1, characterized in that The step of sending the target cheat detection code to the game client according to the anti-cheating detection time rule includes: Determine the time for issuing the target cheat detection code according to a pre-configured unequal interval time sequence, or determine the time for issuing the target cheat detection code according to a random number time generated by a random number generation algorithm; The target cheat detection code is sent to the game client according to the determined sending time.

3. The method according to claim 1, characterized in that The step of processing the original cheat detection file according to a predetermined processing rule to obtain a target cheat detection code includes: Parsing the original cheat detection code from the cheat detection original file; An obfuscation code is randomly inserted into the original cheat detection code to obtain the target cheat detection code, and the target cheat detection code is used by the game client to perform the current cheat detection.

4. The method according to claim 3, characterized in that Sending the target cheat detection code to the game client includes: The target cheat detection code is sent to the game server, so that the game server encrypts the target cheat detection code through the encryption method negotiated with each of the game clients and distributes it to each of the game clients.

5. The method according to any one of claims 1 to 4, characterized in that: The obtaining and storing the original cheat detection file includes: Obtain the intermediate code file compiled from the plug-in detection source program; Performing function merging processing on the intermediate code file to form a plug-in detection original file in which custom function symbols are invisible, wherein the custom function symbols are various function symbols except main function symbols and system function symbols; The original cheat detection file is stored in the anti-cheating server.

6. The method according to claim 5, characterized in that The storing the cheat detection original file to the anti-cheating server includes: The plug-in detection original file is stored in a customized XML format.

7. The method according to claim 5, characterized in that The intermediate code file includes a symbol table and a relocation table; the function merging process is performed on the intermediate code file to form a plug-in detection original file in which the custom function symbol is invisible, including: According to the symbol table, a user-defined function symbol is determined from the intermediate code file; The determined custom function symbol is removed from the symbol table and the relocation table.

8. The method according to claim 7, characterized in that Determining the user-defined function symbol from the intermediate code file according to the symbol table includes: Taking each symbol in the symbol table as a target symbol object respectively; According to the table entry information related to the target symbol object in the symbol table, determining whether the target symbol object is in the code segment, and determining whether the target symbol object is a symbol of a function name type; If the target symbol object is in the code segment, and the target symbol object is a symbol of a function name type, then it is determined that the target symbol object is a user-defined function symbol.

9. A cheat detection method, applied to a game client, characterized in that: The method comprises: Receive a target plug-in detection code issued by an anti-plug-in server, wherein the target plug-in detection code is obtained by the anti-plug-in server processing a plug-in detection original file, and the plug-in detection original file is an intermediate code file compiled from a plug-in detection source program; the target plug-in detection code at least includes: an original plug-in detection code obtained by parsing the intermediate code file according to a predetermined file parsing method; wherein the predetermined file parsing method is related to the format of the plug-in detection source file; Parsing the target cheat detection code to obtain an anti-cheating target file; Dynamically loading the dynamic link library file that the anti-cheating target file depends on into the memory space of the game client, and performing address repair on each relocation item according to the relocation table of the anti-cheating target file to form an executable file corresponding to the anti-cheating target file; Execute the executable file to complete the current plug-in detection of the game client.

10. A cheating detection device, characterized in that: include: A file acquisition unit, used to acquire and store the original file for cheat detection; The plug-in detection original file is an intermediate code file compiled from the plug-in detection source program; A file processing unit, used to process the cheat detection original file according to a predetermined processing rule to obtain a target cheat detection code; The target plug-in detection code at least includes: the original plug-in detection code obtained by parsing the intermediate code file according to a predetermined file parsing method; wherein the predetermined file parsing method is related to the format of the plug-in detection source file; The code sending unit is used to send the target cheating detection code to the game client according to the anti-cheating detection time rule, so that the game client performs the current cheating detection according to the target cheating detection code.

11. A cheat detection device, applied to a game client, characterized in that: The external plug-in detection device comprises: The code receiving unit is used to receive the target plug-in detection code issued by the anti-plug-in server, wherein the target plug-in detection code is obtained by the anti-plug-in server processing the plug-in detection original file, and the plug-in detection original file is an intermediate code file compiled from the plug-in detection source program; the target plug-in detection code at least includes: the original plug-in detection code obtained by parsing the intermediate code file according to a predetermined file parsing method; wherein the predetermined file parsing method is related to the format of the plug-in detection source file; A code parsing unit, used for parsing the target cheat detection code to obtain an anti-cheating target file; A link unit, used for dynamically loading the dynamic link library file that the anti-cheating target file depends on into the memory space of the game client, and performing address repair on each relocation item according to the relocation table of the anti-cheating target file to form an executable file corresponding to the anti-cheating target file; The file execution unit is used to execute the executable file to complete the current plug-in detection of the game client.

12. An electronic device, characterized in that: include: A memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the program, the method described in any one of claims 1 to 8 is implemented, or the method described in claim 9 is implemented.

13. A computer-readable storage medium, characterized in that: A computer program is stored thereon, and when the program is executed by a processor, the method described in any one of claims 1 to 8 is implemented, or the method described in claim 9 is implemented.