Looking for breakthrough ideas for innovation challenges? Try Patsnap Eureka!

Method and system for remote code injection

A remote and code technology, applied in the network field, can solve the problems that cannot be used in the client with MacOSX operating system, and achieve the effect of good compatibility, stable operation and good reliability

Inactive Publication Date: 2017-01-04
WUHAN DOUYU NETWORK TECH CO LTD
View PDF3 Cites 6 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

But the above method can only be used for clients with Windows operating system, and cannot be used for clients with Mac OS X operating system

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
  • Method and system for remote code injection
  • Method and system for remote code injection
  • Method and system for remote code injection

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0044] Terminology Explanation:

[0045] Mach kernel: The core of the Mac OS X system kernel is XNU, and the core of XNU is the Mach kernel. The characteristic of the Mach kernel is that the communication between objects is realized by passing messages. A Mach object (source object) cannot call another object (target object). After the source object sends a message to the target object, the message is passed Join the target object's queue to wait for processing. In other architectures, an object accesses another object through a known interface.

[0046] Mach port: The endpoint used to transmit messages is called a Mach port, and a Mach port is a 32-bit integer identifier. A message is sent from a certain port to another port, and each port can receive any message, but any message can only be received by a designated port.

[0047] Mach thread: Mach thread defines the smallest execution unit in the Mach kernel. A thread is the smallest unit of program execution flow. A st...

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 method and a system for remote code injection, which are used for creating a remote thread in a target process in a Mac OS X operating system and belong to the network technical field. The method comprises the following steps of obtaining a task port of the target process; distributing a stack space and a code space of the remote thread in the target process, writing a code of the remote thread into the code space and setting properties of the code space; and creating the remote thread in the target process. According to the method and the system, a piece of executable code is injected into the target process to execute on the Mac OS X operating system through the remote thread, so that the intended purpose is realized.

Description

[0001] The invention relates to the field of network technology, in particular to a method and system for remotely injecting codes. Background technique [0002] Remote code injection refers to a technique in which a process creates a thread in another process, and its purpose is to run the desired code in another process (ie, the target process). The thread created in the target process is a remote thread. Because it is not in the same process, it is called a remote thread. For example, on the Windows operating system, put the code to be injected into a newly created dynamic link library DLL (Dynamic Link Library) file, and then create a remote thread by calling the application programming interface API (Application Program Interface) CreateRemoteThread of the Windows operating system function, or SetWindowHook to set a global hook function to load the created DLL file into the target process for execution. Remote code injection can be used to debug programs. In addition, in...

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
IPC IPC(8): G06F9/54
CPCG06F9/547
Inventor 杨亮
Owner WUHAN DOUYU NETWORK TECH CO LTD
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Patsnap Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Patsnap Eureka Blog
Learn More
PatSnap group products