主修改整合基本完成
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
#pragma once
|
||||
|
||||
constexpr int Byte_Length = 5;
|
||||
constexpr int Byte_Length = 6;
|
||||
|
||||
class inlinehook
|
||||
{
|
||||
@@ -30,8 +30,9 @@ public:
|
||||
int offset = self_address - (original_address + Byte_Length);
|
||||
|
||||
//构造跳转到我们的函数BYTE
|
||||
memcpy(&m_self_byte[1], &offset, Byte_Length - 1);
|
||||
memcpy(&m_self_byte[1], &offset, Byte_Length - 2);
|
||||
|
||||
m_self_byte[5] = '\x90';
|
||||
//修改内存属性
|
||||
DWORD attributes = Motify_memory_attributes(original_address);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user