新手入门教程 发表于 2026-1-26 16:01:49

一种破dll内存补丁的办法

一种破dll内存补丁的办法
#import "kernel32.dll"
   intGetCurrentProcess();
   intWriteProcessMemory(int handle, int address, int& buffer[], int size, int& written);
   intGetModuleHandleA(string module);
   intLoadLibraryA(string module);
#import

int ProcessPatch(string module, int address, int byte)
{
   int mem;
   int out;
   mem = byte;
   int hproc = GetCurrentProcess();
   int hmod = GetModuleHandleA(module);
   int addr = address + hmod;
   int result = WriteProcessMemory(hproc, addr, mem, 1, out);
   return (result);
}

   LoadLibraryA("experts\libraries\Fusion.dll");
   ProcessPatch("Fusion.dll", 0x6d37, 0xeb);
   ProcessPatch("Fusion.dll", 0x6d38, 0x11);
   ProcessPatch("Fusion.dll", 0x6e37, 0xeb);
   ProcessPatch("Fusion.dll", 0x6e38, 0x11);
   ProcessPatch("Fusion.dll", 0x6f3d, 0xeb);
   ProcessPatch("Fusion.dll", 0x6f3e, 0x11);
   ProcessPatch("Fusion.dll", 0x723d, 0xeb);
   ProcessPatch("Fusion.dll", 0x723e, 0x11);
   ProcessPatch("Fusion.dll", 0x7376, 0xeb);
   ProcessPatch("Fusion.dll", 0x7377, 0x11);
   ProcessPatch("Fusion.dll", 0x412c4, 1);
   ProcessPatch("Fusion.dll", 0x412c8, 0);
   ProcessPatch("Fusion.dll", 0x412c9, 0x40);
   ProcessPatch("Fusion.dll", 0x412ca, 0);
   ProcessPatch("Fusion.dll", 0x412cb, 0);


大家在看了小编以上对"一种破dll内存补丁的办法"的介绍后应该都清楚了吧,希望对大家做单有所帮助。如果大家还想要下载更多有关"一种破dll内存补丁的办法"的相关EA源码,敬请关注汇探网下载。我们会持续更新交易系统,EA源码。
页: [1]
查看完整版本: 一种破dll内存补丁的办法