The method of dynamic code generation

A technology of dynamic generation and code, applied in the direction of program/content distribution protection, instrument, electrical digital data processing, etc., can solve the problems of unfavorable software protection, increase the difficulty of analysis and cracking, and improve the effect of security

Active Publication Date: 2016-07-06
BEIJING SENSESHIELD TECH
View PDF6 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0005] The above two characteristics are unfavorable for software protection. It is easy for crackers to deduce the function of the software in reverse through the position and dependency relationship, and deduce the logic of the source program in reverse through the logic of the target code.

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • The method of dynamic code generation
  • The method of dynamic code generation

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0023] The method for dynamically generating codes in the embodiments of the present invention will be described in further detail below in conjunction with the accompanying drawings and specific embodiments, but this is not intended to limit the present invention.

[0024] figure 1 It is a schematic flowchart of a method for dynamically generating code in an embodiment of the present invention. The code dynamic generation method of the embodiment of the present invention comprises the following steps:

[0025] S1: select the source code;

[0026] S2: Decompose the source code into a sequence of multiple basic operations. The source code can be decomposed into a sequence of elementary operations by automatic or manual means. The basic operations include arithmetic operations such as addition, subtraction, multiplication, and division, control transfer operations such as function calls, and logical branches, and memory access operations such as address fetching, dereferencin...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

PUM

No PUM Login to view more

Abstract

The invention discloses a code dynamic generating method. The code dynamic generating method comprises the following steps of selecting a source code, decomposing the source code into a sequence of multiple sections of basic operations, replacing all the sections of the basic operations by using corresponding functions and parameters in scripting languages to obtain converted scripts, carrying out compilation on the converted scripts to generate template programs, running the template programs, and calling all the scripting functions in sequence, wherein when the scripting functions are called, implementation modes of the scripting functions are selected randomly to run the scripting functions, and thus first target codes are generated; mixing modes are selected randomly, the first target codes are mixed, and thus second target code snippets are generated; the second target code snippets are spliced into second target codes. According to the code dynamic generating method, the position and the content of target codes are not fixed any more, cracking difficulty is increased, and safety is improved.

Description

technical field [0001] The invention relates to the field of software protection, in particular to a method for dynamically generating codes. Background technique [0002] In the prior art, the code generation steps are: source program=>compile=>object code, this generation method has two characteristics: [0003] 1. The location of the code is fixed, and there is a strong correspondence between the object code and the source program. For example, the codes in the same source file are generally adjacent in the object file. Moreover, there are dependencies inside the target code, such as function calls, access to global variables, etc., and the dependencies are resolved through mechanisms such as relocation. [0004] 2. The code content is fixed, the same source code is compiled multiple times in the same environment, and the generated object code is basically the same. [0005] The above two characteristics are unfavorable for software protection. It is easy for crac...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

Application Information

Patent Timeline
no application Login to view more
Patent Type & Authority Patents(China)
IPC IPC(8): G06F21/14
CPCG06F21/572
Inventor 孙吉平韩勇
Owner BEIJING SENSESHIELD TECH
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products