吾爱破解 - 52pojie.cn

 找回密码
 注册[Register]

QQ登录

只需一步,快速开始

查看: 1765|回复: 0
收起左侧

[C&C++ 原创] UE4 4.23版本以下暴力搜索GName

[复制链接]
XiaoTouM1ng 发表于 2022-12-27 16:38

代码如下:

#include <stdio.h>
#include <stdlib.h>
#include <Windows.h>

DWORD64 GetName(HANDLE Process,LPVOID BaseAddress) {

    DWORD64 Buffer = 0;
    SIZE_T lpNumber = 0;
    ReadProcessMemory(Process, BaseAddress, &Buffer, sizeof(DWORD64), &lpNumber);
    if (Buffer != 0)
    {
        ReadProcessMemory(Process, (LPVOID)(Buffer), &Buffer, sizeof(DWORD64), &lpNumber);
    }
    if (Buffer != 0)
    {
        ReadProcessMemory(Process, (LPVOID)(Buffer + 0x8), &Buffer, sizeof(DWORD64), &lpNumber);
    }

    return Buffer + 0xc;

}

void main() {

    HANDLE Pid = OpenProcess(PROCESS_ALL_ACCESS, FALSE, 12060);
    DWORD64 BaseAddress = 0x7FF7122F0000;
    DWORD64 ValueAddress = 0;
    int i = 0;
    char buffer[255] = { 0 };
    ReadProcessMemory(Pid, (LPVOID)ValueAddress, buffer, 12,NULL);

    while (true) {

        ReadProcessMemory(Pid, (LPVOID)GetName(Pid, (LPVOID)(BaseAddress+i)), buffer, 12, NULL);

        if (!strcmp(buffer,"ByteProperty"))
        {
            break;
        }
        i = i + 4;
        memset(buffer,0,255);
        printf("[-] 当前地址为:BaseAddress + %x \r\n", i);

    }

    printf("GName Address = %p\r\n", BaseAddress);

}

修改下return中的偏移就可以了:

return Buffer + 0xc;

测试了大概半小时左右能跑出来:



415794971.png

发帖前要善用论坛搜索功能,那里可能会有你要找的答案或者已经有人发布过相同内容了,请勿重复发帖。

您需要登录后才可以回帖 登录 | 注册[Register]

本版积分规则

返回列表

RSS订阅|小黑屋|处罚记录|联系我们|吾爱破解 - LCG - LSG ( 京ICP备16042023号 | 京公网安备 11010502030087号 )

GMT+8, 2024-11-24 23:30

Powered by Discuz!

Copyright © 2001-2020, Tencent Cloud.

快速回复 返回顶部 返回列表