问道遍历周围玩家
voidfff(HANDLE hProcess){
DWORD startList ; // 链表首地址
DWORD object ; // 人物对象
DWORD nextList; // 下一个
char currentName;
DWORD objectId;
ReadProcessMemory(hProcess,(PVOID)0xAB54B0,&startList,sizeof(DWORD),NULL);
ReadProcessMemory(hProcess,(PVOID)(startList+0x28),&startList,sizeof(DWORD),NULL);
ReadProcessMemory(hProcess,(PVOID)startList,&nextList,sizeof(DWORD),NULL);
do
{
if (!ReadProcessMemory(hProcess,(PVOID)nextList,&nextList,sizeof(DWORD),NULL))
{
break;
}
if (nextList==startList)
break;
// 当前对象
ReadProcessMemory(hProcess,(PVOID)(nextList+0x8),&object,sizeof(DWORD),NULL);
// 得到名称
ReadProcessMemory(hProcess,(PVOID)(object + 0x138),currentName,MAX_PATH,NULL);
ReadProcessMemory(hProcess,(PVOID)(object + 8),&objectId,sizeof(DWORD),NULL);
std::cout<<"名称:"<<currentName<<"\tId:"<<objectId<<std::endl;
} while (1);
} 怎么都是VC之类的写法看不懂 基址是怎么找的 基址是怎么找的 基址是怎么找到的
页:
[1]