Software dual authorization checking method, system, terminal and medium

By introducing a dual authorization check mechanism into the software, separating authorization failure prompts and authorization check nodes, and clearing core objects when authorization fails, the problem that authorization checks in the existing technology are easily tampered with is solved, and the difficulty of software protection is significantly improved. Prevent cracking.

CN116644390BActive Publication Date: 2024-08-27SHENZHEN YLINK COMPUTING SYST
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202310672065.X
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-06-07
Publication Date
2024-08-27
Estimated Expiration
2043-06-07

AI Technical Summary

Technical Problem

In existing software authorization methods, criminals can find and tamper with the authorization check passing status node through reverse engineering, causing the authorization status check to be skipped, making it easy to crack the software.

Method used

The software dual authorization check method is used to conduct authorization checks from time to time, clear the core objects when authorization fails, and separate the authorization failure prompts and authorization check nodes to ensure that criminals cannot tamper with the authorization check nodes.

Benefits of technology

It strengthens the protection of the rights and interests of software rights holders, increases the difficulty of piracy and cracking, prevents criminals from tampering with authorization checks through reverse engineering, and effectively prevents software from being cracked.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN116644390B
    Figure CN116644390B
Patent Text Reader

Abstract

The present invention provides a software dual authorization check method, system, terminal and medium. The method runs in the software, including: irregularly performing authorization checks on the software; when the irregular authorization checks fail, clearing the core objects in the software running memory; when receiving a call instruction for a core function in the software and the core object corresponding to the core function is empty, performing authorization checks on the software again; when the authorization check fails again, exiting the software. The method includes two nodes, an authorization failure prompt and an authorization check. Even if criminals can tamper with the authorization failure prompt node through reverse engineering, they cannot tamper with the authorization check node, thereby enhancing the protection of the rights and interests of the software right holder, increasing the difficulty of piracy and cracking, and overcoming the problem in the existing soft authorization method that criminals can find and tamper with the authorization check pass status node through reverse engineering to skip the authorization status check.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention belongs to the field of computer technology, and in particular relates to a software dual authorization checking method, system, terminal and medium. Background Art

[0002] Software license protection has always been a headache for the software industry. In order to protect the rights and interests of software owners, software owners usually protect their own rights and interests through software licensing. Software licensing usually protects the rights and interests of software owners through encryption dogs, authorization codes, activation codes, authorization files, etc. Encryption dog authorization requires the software owner to make a hardware encryption dog and deliver it to the user, which is not convenient for large-scale promotion and maintenance. Through the use of authorization codes, activation codes, and authorization files for soft authorization, criminals can find and tamper with the authorization check through the status node through reverse engineering to skip the authorization status check and crack it. For example, see Figure 1 ,The conventional soft authorization check method is as follows: when the program starts, the authorization check (node ​​①) and the ,authorization check result judgment (node ​​②) are called. ,If the authorization check passes, the program function is executed. If the authorization check fails, an ,authorization prompt is given. Criminals usually crack by tampering with node ① or ②. Summary of the invention

[0003] In view of the defects in the prior art, the present invention provides a software dual authorization check method, system, terminal and medium, which overcomes the problem in the existing soft authorization method that criminals can find and tamper with the authorization check pass status node through reverse engineering to skip the authorization status check.

[0004] In a first aspect, a software dual authorization checking method is executed in the software, comprising:

[0005] Conduct authorization checks on software from time to time;

[0006] When the authorization check fails at irregular intervals, clear the core objects in the software running memory;

[0007] When receiving a call instruction for a core function in the software and the core object corresponding to the core function is empty, the software is authorized again;

[0008] When the authorization check fails again, exit the software.

[0009] Furthermore, before the software is authorized to be checked from time to time, it also includes:

[0010] Create a first authorization check function and a second authorization check function; both the first authorization check function and the second authorization check function are used to complete the software authorization check; the first authorization check function is executed at irregular intervals, and the second authorization check function is executed when a call instruction is received and the core object is empty.

[0011] Furthermore, core objects include modules or functions that implement core functions in the software.

[0012] Furthermore, the first authorization check function, the second authorization check function, and the core object are all obtained by compiling the codes into binary files.

[0013] In a second aspect, a software dual authorization checking system is run in software, comprising:

[0014] Authorization check unit: used to perform authorization checks on the software from time to time; when the authorization check fails from time to time, the core objects in the software running memory are cleared;

[0015] Authorization failure processing unit: when receiving a call instruction of a core function in the software and the core object corresponding to the core function is empty, the software is authorized to check again; when the authorization check fails again, the software is exited.

[0016] Furthermore, it also includes:

[0017] Creation unit: used to create a first authorization check function and a second authorization check function; both the first authorization check function and the second authorization check function are used to complete the authorization check of the software; the first authorization check function is executed at irregular intervals, and the second authorization check function is executed when a call instruction is received and the core object is empty.

[0018] Furthermore, core objects include modules or functions that implement core functions in the software.

[0019] Furthermore, the first authorization check function, the second authorization check function, and the core object are all obtained by compiling the codes into binary files.

[0020] In a third aspect, a terminal comprises a processor, an input device, an output device and a memory, wherein the processor, the input device, the output device and the memory are interconnected, wherein the memory is used to store a computer program, the computer program comprises program instructions, and the processor is configured to call the program instructions to execute the method of the first aspect.

[0021] In a fourth aspect, a computer-readable storage medium stores a computer program, wherein the computer program includes program instructions, and when the program instructions are executed by a processor, the processor executes the method of the first aspect.

[0022] It can be seen from the above technical scheme that the software dual authorization check method, system, terminal and medium provided by the present invention include two nodes: authorization failure prompt and authorization check. Even if criminals can tamper with the authorization failure prompt node through reverse engineering, they cannot tamper with the authorization check node, thereby enhancing the protection of the rights and interests of software rights holders and increasing the difficulty of piracy and cracking. The problem that criminals in existing soft authorization methods can find and tamper with the authorization check pass status node through reverse engineering to skip the authorization status check is overcome. BRIEF DESCRIPTION OF THE DRAWINGS

[0023] In order to more clearly illustrate the specific embodiments of the present invention or the technical solutions in the prior art, the following is a brief introduction to the drawings required for the specific embodiments or the description of the prior art. In all the drawings, similar elements or parts are generally identified by similar reference numerals. In the drawings, the elements or parts are not necessarily drawn according to the actual scale.

[0024] Figure 1 The present invention is a flow chart of a method for soft authorization in the prior art.

[0025] Figure 2 A flowchart of a software dual authorization checking method provided in an embodiment.

[0026] Figure 3 A module block diagram of a software dual authorization checking system provided in an embodiment.

[0027] Figure 4 A module block diagram of a terminal provided in an embodiment. DETAILED DESCRIPTION

[0028] The embodiments of the technical solution of the present invention will be described in detail below in conjunction with the accompanying drawings. The following embodiments are only used to more clearly illustrate the technical solution of the present invention, and are therefore only used as examples, and the protection scope of the present invention cannot be limited thereto. It should be noted that, unless otherwise specified, the technical terms or scientific terms used in this application should be the common meanings understood by those skilled in the art to which the present invention belongs.

[0029] It should be understood that when used in this specification and the appended claims, the terms "include" and "comprises" indicate the presence of described features, integers, steps, operations, elements and / or components, but do not exclude the presence or addition of one or more other features, integers, steps, operations, elements, components and / or combinations thereof.

[0030] It should also be understood that the terms used in this specification of the present invention are only for the purpose of describing specific embodiments and are not intended to limit the present invention. As used in the specification of the present invention and the appended claims, unless the context clearly indicates otherwise, the singular forms "a", "an" and "the" are intended to include plural forms.

[0031] As used in this specification and the appended claims, the term "if" may be interpreted as "when" or "upon" or "in response to determining" or "in response to detecting," depending on the context. Similarly, the phrases "if it is determined" or "if [described condition or event] is detected" may be interpreted as meaning "upon determination" or "in response to determining" or "upon detection of [described condition or event]" or "in response to detecting [described condition or event]," depending on the context.

[0032] Example:

[0033] A software dual authorization checking method, which runs in the software, includes:

[0034] Conduct authorization checks on software from time to time;

[0035] When the authorization check fails at irregular intervals, clear the core objects in the software running memory;

[0036] When a call instruction for a core function in the software is received and the core object corresponding to the core function is empty, the software is authorized again;

[0037] When the authorization check fails again, exit the software.

[0038] In this embodiment, the method is run on a certain software to perform an authorization check on the software. The method does not need to perform an authorization check when the software is started, but performs an authorization check at irregular intervals during the software operation. Figure 2 , when the program starts, the program function is executed after the authorization check task is started. The authorization check task is to call the first authorization check function from time to time. When the check fails, the core object is cleared. When the program function is executed, when a call instruction is received, it is queried whether the core object is empty. If the core object is empty, it means that the software has not passed the irregular authorization check, and the second authorization check function is called. If the core object is not empty, the core function of the software is executed normally. If the authorization check of the second authorization check function fails, it means that the user cannot obtain authorization for the software, and the use of the software is exited at this time. If the authorization check of the second authorization check function passes, the core function of the software is executed normally. The authorization check of this method can be implemented using traditional methods, such as by checking MAC addresses, device addresses, etc.

[0039] The software dual authorization check method includes two nodes, an authorization failure prompt and an authorization check. Even if criminals can tamper with the authorization failure prompt node through reverse engineering, they cannot tamper with the authorization check node, thereby enhancing the protection of the rights and interests of software rights holders and increasing the difficulty of piracy and cracking. The problem in existing soft authorization methods that criminals can find and tamper with the authorization check pass status node through reverse engineering to skip the authorization status check is overcome.

[0040] Furthermore, in some embodiments, before performing authorization check on the software at irregular intervals, the method further includes:

[0041] Create a first authorization check function and a second authorization check function; both the first authorization check function and the second authorization check function are used to complete the software authorization check; the first authorization check function is executed at irregular intervals, and the second authorization check function is executed when a call instruction is received and the core object is empty.

[0042] In this embodiment, the method creates a first authorization check function and a second authorization check function with the same execution logic. During the operation, the method performs irregular authorization checks on the software by irregularly executing the first authorization check function. When a call instruction is received and the core object is empty, the second authorization check function is executed to perform irregular checks.

[0043] The method implements the authorization check logic of the software through a first authorization check function, and implements the authorization failure prompt logic of the software through a second authorization check function. The method separates the authorization failure prompt and the authorization check. Even if criminals tamper with the second authorization check function in the authorization failure prompt logic through reverse engineering, they cannot tamper with the first authorization check function. The method can still perform software authorization check through the first authorization check function, that is, when the software still has authorization problems, the method can still clear the core objects in the software running memory through the first authorization check function, resulting in users being unable to use the software normally. It is difficult for criminals to skip the software authorization status check by tampering with a single node, which increases the difficulty of cracking and tampering with the authorization check.

[0044] Further, in some embodiments, the core object includes a module or function that implements the core functionality in the software.

[0045] For example: For OCR recognition software, its core function is the OCR recognition function, and its core object is the OCR recognition module. In order to protect its rights and interests, the OCR recognition software manufacturer (i.e., the software right holder) uses the first authorization check function to check whether the authorization is legal from time to time; if the authorization check fails, the OCR recognition module in the software running memory will be cleared. When the user uses the OCR recognition function, the OCR recognition software detects that the OCR recognition module is empty, and then calls the second authorization check function to perform another authorization check. If the second authorization check fails, the user is prompted that the software authorization check has failed and exits the software, so that the user cannot continue to use the OCR recognition software.

[0046] Another example: For barcode scanning and recognition software, its core function is the barcode scanning and recognition function, and its core object is the barcode recognition function. In order to protect their rights and interests, barcode scanning and recognition software manufacturers use the first authorization check function to check whether the authorization is legal from time to time; if the authorization check fails, the barcode recognition function in the software running memory will be cleared. When the user uses the barcode scanning and recognition function, the barcode scanning and recognition software detects that the barcode recognition function is empty, and then calls the second authorization check function to perform another authorization check. If the second authorization check fails, the user is prompted that the software authorization check failed and exits the software, so that the user cannot continue to use the barcode scanning and recognition software.

[0047] Furthermore, in some embodiments, the first authorization check function, the second authorization check function, and the core object are all obtained by compiling codes into binary files.

[0048] In this embodiment, the first authorization check function, the second authorization check function, and the core object can be implemented by C / C++ or C / C++ encryption and decryption loading. For example, the C / C++ code is compiled into a binary file to increase the difficulty of reverse cracking.

[0049] A software dual authorization checking system that runs in the software, see Figure 3 ,include:

[0050] Authorization check unit 1: used to perform authorization check on the software from time to time; when the authorization check fails from time to time, the core objects in the software running memory are cleared;

[0051] Authorization failure processing unit 2: When receiving a call instruction of a core function in the software and the core object corresponding to the core function is empty, the software is authorized to be checked again; when the authorization check fails again, the software is exited.

[0052] Furthermore, in some embodiments, it also includes:

[0053] Creation unit 3: used to create a first authorization check function and a second authorization check function; the first authorization check function and the second authorization check function are both used to complete the authorization check of the software; the first authorization check function is executed at irregular intervals, and the second authorization check function is executed when a call instruction is received and the core object is empty.

[0054] Further, in some embodiments, the core object includes a module or function that implements the core functionality in the software.

[0055] Furthermore, in some embodiments, the first authorization check function, the second authorization check function, and the core object are all obtained by compiling codes into binary files.

[0056] In the several embodiments provided in the present application, it should be understood that the disclosed system can be implemented in other ways. For example, the device embodiments described above are only schematic. For example, the division of the units is only a logical function division. There may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. In addition, the mutual coupling or direct coupling or communication connection shown or discussed can be an indirect coupling or communication connection through some interfaces, devices or units, or it can be an electrical, mechanical or other form of connection.

[0057] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the embodiments of the present invention.

[0058] In addition, each functional unit in each embodiment of the present invention may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.

[0059] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present invention is essentially or the part that contributes to the prior art, or all or part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including a number of instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present invention. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), disk or optical disk and other media that can store program codes.

[0060] The system provided in the embodiment of the present invention is briefly described. For matters not mentioned in the embodiment part, reference may be made to the corresponding contents in the aforementioned embodiment.

[0061] A terminal, see Figure 4 , including a processor, an input device, an output device and a memory, which are connected to each other, wherein the memory is used to store a computer program, the computer program includes program instructions, and the processor is configured to call the program instructions to execute the above method.

[0062] In a specific implementation, the terminal described in the embodiments of the present invention includes, but is not limited to, other portable devices such as mobile phones, laptop computers, or tablet computers with touch-sensitive surfaces (e.g., touch screen displays and / or touch pads). It should also be understood that in some embodiments, the device is not a portable communication device, but a desktop computer with a touch-sensitive surface (e.g., touch screen displays and / or touch pads).

[0063] In the following discussion, a terminal including a display and a touch-sensitive surface is described. However, it should be understood that the terminal may include one or more other physical user interface devices such as a physical keyboard, mouse and / or joystick.

[0064] The terminal supports various applications, such as one or more of the following: a drawing application, a presentation application, a word processing application, a website creation application, a disk burning application, a spreadsheet application, a game application, a telephone application, a video conferencing application, an email application, an instant messaging application, a workout support application, a photo management application, a digital camera application, a digital camcorder application, a web browsing application, a digital music player application, and / or a digital video player application.

[0065] Various applications that can be executed on the terminal can use at least one common physical user interface device such as a touch-sensitive surface. One or more functions of the touch-sensitive surface and corresponding information displayed on the terminal can be adjusted and / or changed between applications and / or within corresponding applications. In this way, the common physical architecture of the terminal (e.g., the touch-sensitive surface) can support various applications with user interfaces that are intuitive and transparent to the user.

[0066] It should be understood that in the embodiments of the present invention, the processor referred to may be a central processing unit (CPU), and the processor may also be other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), field-programmable gate arrays (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. A general-purpose processor may be a microprocessor or the processor may also be any conventional processor, etc.

[0067] Input devices may include a touchpad, a fingerprint sensor (for collecting the user's fingerprint information and fingerprint direction information), a microphone, etc., and output devices may include a display (LCD, etc.), a speaker, etc.

[0068] The memory may include a read-only memory and a random access memory, and provide instructions and data to the processor. A portion of the memory may also include a non-volatile random access memory. For example, the memory may also store information about the device type.

[0069] The terminal provided in the embodiment of the present invention is briefly described. For matters not mentioned in the embodiment part, reference may be made to the corresponding contents in the aforementioned embodiment.

[0070] A computer-readable storage medium stores a computer program, wherein the computer program includes program instructions. When the program instructions are executed by a processor, the processor executes the above method.

[0071] The computer-readable storage medium may be an internal storage unit of the terminal described in any of the foregoing embodiments, such as a hard disk or memory of the terminal. The computer-readable storage medium may also be an external storage device of the terminal, such as a plug-in hard disk, a smart memory card (Smart Media Card, SMC), a secure digital (Secure Digital, SD) card, a flash card (Flash Card), etc. equipped on the terminal. Further, the computer-readable storage medium may also include both an internal storage unit of the terminal and an external storage device. The computer-readable storage medium is used to store the computer program and other programs and data required by the terminal. The computer-readable storage medium may also be used to temporarily store data that has been output or is to be output.

[0072] The medium provided in the embodiments of the present invention is briefly described. For matters not mentioned in the embodiments, reference may be made to the corresponding contents in the aforementioned embodiments.

[0073] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit it. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or replace some or all of the technical features therein by equivalents. These modifications or replacements do not make the essence of the corresponding technical solutions deviate from the scope of the technical solutions of the embodiments of the present invention, and they should all be included in the scope of the claims and specification of the present invention.

Claims

1. A software dual authorization checking method, characterized in that: Runs in software including: Conduct authorization checks on the software from time to time; When the irregular authorization check fails, clear the core objects in the software running memory; When a call instruction of a core function in the software is received and the core object corresponding to the core function is empty, performing an authorization check on the software again; When the authorization check fails again, exit the software; Prior to the authorization check of the software from time to time, it also includes: Create a first authorization check function and a second authorization check function; the first authorization check function and the second authorization check function are both used to complete the authorization check of the software; the first authorization check function is executed at irregular intervals, and the second authorization check function is executed when the calling instruction is received and the core object is empty.

2. The software dual authorization checking method according to claim 1, characterized in that: The core object includes a module or function in the software that implements the core functionality.

3. The software dual authorization checking method according to claim 1, characterized in that: The first authorization check function, the second authorization check function, and the core object are all obtained by compiling codes into binary files.

4. A software dual authorization checking system, characterized in that: Runs in software including: Authorization checking unit: used to perform authorization checking on the software from time to time; when the authorization checking fails from time to time, the core objects in the running memory of the software are cleared; Authorization failure processing unit: when receiving a call instruction of a core function in the software and the core object corresponding to the core function is empty, performing authorization check on the software again; when the authorization check fails again, exiting the software; Also includes: Creation unit: used to create a first authorization check function and a second authorization check function; the first authorization check function and the second authorization check function are both used to complete the authorization check of the software; the first authorization check function is executed at irregular intervals, and the second authorization check function is executed when the calling instruction is received and the core object is empty.

5. The software dual authorization checking system according to claim 4, characterized in that: The core object includes a module or function in the software that implements the core functionality.

6. The software dual authorization checking system according to claim 4, characterized in that: The first authorization check function, the second authorization check function, and the core object are all obtained by compiling codes into binary files.

7. A terminal, characterized in that: The method comprises a processor, an input device, an output device and a memory, wherein the processor, the input device, the output device and the memory are interconnected, wherein the memory is used to store a computer program, the computer program comprises program instructions, and the processor is configured to call the program instructions to execute the method according to any one of claims 1 to 3.

8. A computer-readable storage medium, characterized in that: The computer storage medium stores a computer program, wherein the computer program includes program instructions, and when the program instructions are executed by a processor, the processor executes the method according to any one of claims 1 to 3.