c++调用lol本地公告call
1113606116
2020/03/30 18:57:49
- void hanhua(LPCVOID StrBase) {
- __asm {
- pushad
- mov ecx, dword ptr ds : [0x0389A348]
- push 0
- push StrBase
- mov ebx, 0x9C7DC0
- call ebx
- popad
- ret
- }
- }
- void start() {
- LPVOID ParamAddr = VirtualAllocEx(hprocess, 0, 0x400, MEM_COMMIT | MEM_RESERVE, PAGE_EXECUTE_READWRITE);
- char strp[] = "66666666666欢迎来到6666!!!";
- WriteProcessMemory(hprocess, ParamAddr, strp, 0x400, NULL);
- LPVOID CallBase = VirtualAllocEx(hprocess, 0, 0x1000, MEM_COMMIT | MEM_RESERVE, PAGE_EXECUTE_READWRITE);
- WriteProcessMemory(hprocess, CallBase, (LPCVOID)hanhua, 0x1000, 0);
- CreateRemoteThread(hprocess, NULL, 0, LPTHREAD_START_ROUTINE(CallBase), ParamAddr, 0, NULL);
- }
请问大佬这两段c++代码改怎么改,调用没有反应,小白一个学习一下