Dynamic link library injection method and apparatus
A technology of dynamic link library and injection device, which is applied in the direction of program control device, program loading/starting, program control design, etc., can solve the problems of easy detection of dynamic link library and difficulty of normal operation of games.
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment
[0041] A dynamic link library injection method, including the following steps:
[0042] (1) Get the handle of the target process (need to be injected into the process game).
[0043] (2) Call the Windows function VirtualAlloc to allocate memory space in the target process, and the allocation size is the memory size of the dynamic link library that needs to be injected.
[0044] (3) Load the dynamic link library into the allocated space in a mapping manner. Because the alignment of the dynamic link library on the disk is inconsistent with the alignment in the memory, it is necessary to parse the various sections of the dynamic link library, according to each Each section is copied independently. And modify the memory attribute to the attribute of each corresponding section.
[0045] (4) Call the Windows function VirtualAlloc to allocate memory space in the target process. This memory space is a section of local function code, which is mainly used to initialize the dynamic link library...
PUM
Login to View More Abstract
Description
Claims
Application Information
Login to View More 