[C++] External Map Teleport (.exe)

Joined
May 3, 2019
Messages
26
Likes
5
Points
8
Location
Saint-Petersburg
#1
I hope this is useful to somebody

C++:
            DWORD mapx, mapy, cped, matrix;
            mapx = *(DWORD*)0xBA67B8;
            mapy = *(DWORD*)0xBA67BC;
            cped = *(DWORD*)0xB6F5F0;
            matrix = *(DWORD*)(cped + 0x14);
 
            *(DWORD*)(matrix + 0x30) = mapx;
            *(DWORD*)(matrix + 0x34) = mapy;
C++:
        DWORD mapx, mapy, cped;

        ReadProcessMemory(hProcess, (LPVOID)0xBA67B8, &mapx, sizeof(mapx), 0);
        ReadProcessMemory(hProcess, (LPVOID)0xBA67BC, &mapy, sizeof(mapy), 0);
        ReadProcessMemory(hProcess, (LPVOID)0xB6F5F0, &cped, sizeof(cped), 0);

        LPVOID matrixWriteAddr = (LPVOID)(cped + 0x14);

        DWORD oldProt;
        VirtualProtectEx(hProcess, matrixWriteAddr, sizeof(mapx), PAGE_READWRITE, &oldProt);
        WriteProcessMemory(hProcess, matrixWriteAddr, &mapx, sizeof(mapx), nullptr);
        VirtualProtectEx(hProcess, matrixWriteAddr, sizeof(mapx), oldProt, &oldProt);

        LPVOID MapxWriteAddr = (LPVOID)(0xB6F604 + 0x30); // (0xB6F604 = matrix = cped + 0x14)

        VirtualProtectEx(hProcess, MapxWriteAddr, sizeof(mapx), PAGE_READWRITE, &oldProt);
        WriteProcessMemory(hProcess, MapxWriteAddr, &mapx, sizeof(mapx), nullptr);
        VirtualProtectEx(hProcess, MapxWriteAddr, sizeof(mapx), oldProt, &oldProt);

        LPVOID MapyWriteAddr = (LPVOID)(0xB6F604 + 0x34); // (0xB6F604 = matrix = cped + 0x14)

        VirtualProtectEx(hProcess, MapyWriteAddr, sizeof(mapx), PAGE_READWRITE, &oldProt);
        WriteProcessMemory(hProcess, MapyWriteAddr, &mapx, sizeof(mapx), nullptr);
        VirtualProtectEx(hProcess, MapyWriteAddr, sizeof(mapx), oldProt, &oldProt);
 

88resu

Well-Known Member
Joined
Oct 1, 2019
Messages
56
Likes
24
Points
13
Location
Uganda
#3
reading mapx,y is useless.

using sizeof(float) is the same..
where u copied that


reading matrix, then matrix +0x30 write
 
Joined
Jun 6, 2020
Messages
21
Likes
0
Points
1
Location
Macedonia
1
#4
I hope this is useful to somebody

C++:
            DWORD mapx, mapy, cped, matrix;
            mapx = *(DWORD*)0xBA67B8;
            mapy = *(DWORD*)0xBA67BC;
            cped = *(DWORD*)0xB6F5F0;
            matrix = *(DWORD*)(cped + 0x14);

            *(DWORD*)(matrix + 0x30) = mapx;
            *(DWORD*)(matrix + 0x34) = mapy;
C++:
        DWORD mapx, mapy, cped;

        ReadProcessMemory(hProcess, (LPVOID)0xBA67B8, &mapx, sizeof(mapx), 0);
        ReadProcessMemory(hProcess, (LPVOID)0xBA67BC, &mapy, sizeof(mapy), 0);
        ReadProcessMemory(hProcess, (LPVOID)0xB6F5F0, &cped, sizeof(cped), 0);

        LPVOID matrixWriteAddr = (LPVOID)(cped + 0x14);

        DWORD oldProt;
        VirtualProtectEx(hProcess, matrixWriteAddr, sizeof(mapx), PAGE_READWRITE, &oldProt);
        WriteProcessMemory(hProcess, matrixWriteAddr, &mapx, sizeof(mapx), nullptr);
        VirtualProtectEx(hProcess, matrixWriteAddr, sizeof(mapx), oldProt, &oldProt);

        LPVOID MapxWriteAddr = (LPVOID)(0xB6F604 + 0x30); // (0xB6F604 = matrix = cped + 0x14)

        VirtualProtectEx(hProcess, MapxWriteAddr, sizeof(mapx), PAGE_READWRITE, &oldProt);
        WriteProcessMemory(hProcess, MapxWriteAddr, &mapx, sizeof(mapx), nullptr);
        VirtualProtectEx(hProcess, MapxWriteAddr, sizeof(mapx), oldProt, &oldProt);

        LPVOID MapyWriteAddr = (LPVOID)(0xB6F604 + 0x34); // (0xB6F604 = matrix = cped + 0x14)

        VirtualProtectEx(hProcess, MapyWriteAddr, sizeof(mapx), PAGE_READWRITE, &oldProt);
        WriteProcessMemory(hProcess, MapyWriteAddr, &mapx, sizeof(mapx), nullptr);
        VirtualProtectEx(hProcess, MapyWriteAddr, sizeof(mapx), oldProt, &oldProt);
Can you send this hack?
 
Top