|
分享源码
界面截图: |
- |
是否带模块: |
- |
备注说明: |
- |
需要注意两个地方,01jz大概是13.10版本的,02需要进到游戏里面再喊话,这个自己写一个判断
;LocalSpeak.asm
;自定义生成工具
;ml64 /Fo $(IntDir)%(fileName).obj /c %(fileName).asm
;$(IntDir)%(fileName).obj
.code
LocalSpeak proc
sub rsp,28
mov rax,1407EDE20h
call rax
add rsp,28
ret
LocalSpeak endp
end
//main.cpp
#include <windows.h>
#include <string>
//喊话call 函数声明
EXTERN_C void LocalSpeak(__int64 rcx_, const char* text, __int64 index);
//入口函数
BOOL APIENTRY DllMain(HMODULE hModule,
DWORD ul_reason_for_call,
LPVOID lpReserved
)
{
if (ul_reason_for_call == DLL_PROCESS_ATTACH)
{
__int64 rcx_ = 0;
ReadProcessMemory(INVALID_HANDLE_VALUE, (LPVOID)0x1451C88F8, &rcx_, 4, 0);
char* buffer = new char[1024]{};
std::string str_assembly = "123456";//喊话内容
strcpy_s(buffer, 1024, str_assembly.c_str());
LocalSpeak(rcx_, buffer, 0x40);
}
TRUE;
}
|
评分
-
查看全部评分
|