Check patentability & draft patents in minutes with Patsnap Eureka AI!

Code processing method based on instruction injection, terminal and storage medium

A processing method and storage medium technology, which are applied in the field of code processing to achieve the effect of ensuring security

Pending Publication Date: 2020-12-08
北京智游网安科技有限公司
View PDF0 Cites 4 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0006] The main purpose of the present invention is to provide a code processing method, terminal and storage medium based on instruction injection, aiming to solve the problem in the prior art that the original DEX file before encryption can be easily obtained after the code is encrypted

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
  • Code processing method based on instruction injection, terminal and storage medium
  • Code processing method based on instruction injection, terminal and storage medium
  • Code processing method based on instruction injection, terminal and storage medium

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0034] In order to make the object, technical solution and advantages of the present invention more clear and definite, the present invention will be further described in detail below with reference to the accompanying drawings and examples. It should be understood that the specific embodiments described here are only used to explain the present invention, not to limit the present invention.

[0035] In the code processing method based on instruction injection described in the preferred embodiment of the present invention, the code processing method based on instruction injection includes the following steps:

[0036] Such as figure 1 and figure 2 As shown, in step S10, at the encryption stage of the APP, the DEX file is analyzed, the DEX file is split, and the code instructions stored in the DEX file are extracted and stored encrypted.

[0037] Specifically, splitting refers to cutting out the binary instructions of the DEX file from the DEX file, and saving them in the fi...

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 processing method based on instruction injection, a terminal and a storage medium, and the method comprises the steps: in an encryption stage of an APP, analyzing a DEXfile, splitting the DEX file, extracting a code instruction stored in the DEX file, and carrying out encryption storage; constructing a binary instruction of a decryption code, and injecting the binary instruction into an original instruction position in the DEX file; and when the encryption APP runs to the encrypted method, executing the injected binary instruction, decrypting and restoring the method instruction, skipping to a decrypted instruction memory, and continuing to execute the decrypted instruction. The complete DEX file is split during encryption, a code segment of the encryption method is separated, the decryption instruction is injected into the original code segment, the encrypted method is called during running, the injected decryption instruction is executed firstly, decryption of the current execution method is completed, and the encrypted method can be decrypted only when executed.

Description

technical field [0001] The invention relates to the technical field of code processing, in particular to a code processing method based on instruction injection, a terminal and a storage medium. Background technique [0002] The DEX file is the program run by the Android virtual machine. When developers release the Android APP, they first compile the java code into class bytecode, and then use the Dx tool to convert the class bytecode into the DEX file format. [0003] Therefore, the protection of DEX files is also very important. The traditional Android code processing technology based on instruction injection mainly realizes the encryption and hiding of the original DEX by replacing the original DEX file with a shell DEX file. When the encrypted APP is running, the shell DEX calls the system method to load the original DEX. [0004] However, this traditional Android-based code processing technology based on instruction injection, after the encrypted APP runs, there will b...

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 Applications(China)
IPC IPC(8): G06F21/60G06F21/62G06F21/52
CPCG06F21/602G06F21/6209G06F21/52G06F2221/2107
Inventor 李鹏飞冉山川
Owner 北京智游网安科技有限公司
Features
  • R&D
  • Intellectual Property
  • Life Sciences
  • Materials
  • Tech Scout
Why Patsnap Eureka
  • Unparalleled Data Quality
  • Higher Quality Content
  • 60% Fewer Hallucinations
Social media
Patsnap Eureka Blog
Learn More