Upgraded to Windows10, now Radar hack doesn't work. menu

Shout-Out

User Tag List

Results 1 to 3 of 3
  1. #1
    Durotar Heights's Avatar Member
    Reputation
    4
    Join Date
    May 2015
    Posts
    11
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Upgraded to Windows10, now Radar hack doesn't work.

    I took a break for a year, now I'm back to writing my Radar hack. I upgraded to Windows 10 and Visual Studio 2015 Community, and now the program is broken.

    I created a simple test program to see what I'm doing wrong on the simplest level, but I can't debug it. I'm not getting any error messages, and except for the values being wrong, everything seems to be OK.

    Code:
    #include "stdafx.h"
    #include <psapi.h>
    #include <iostream>
    #include <fstream>
    #include <iomanip>
    
    using namespace std;
    
    #define LOCAL_PLAYER      0x169DF10
    #define DESCRIPTORS       0x08
    #define UNIT_HEALTH       0x0F0
    #define UNIT_LEVEL        0x160
    
    int main()
    {
    	CString message;
    	DWORD PID;
    	DWORD_PTR address_base;
    	HANDLE phandle;
    	HWND w_handle = ::FindWindow(NULL, L"World of Warcraft");
    
    	if (!w_handle)
    	{
    		cout << "WoW isn't running." << endl;
    		return 1;
    	}
    		
    	GetWindowThreadProcessId(w_handle, &PID);
    
    	phandle = OpenProcess(PROCESS_ALL_ACCESS, TRUE, PID);
    	if (phandle == NULL)
    	{
    		cout << "DEBUG: Phandle bad." << endl;
    		return 1;
    	}
    
    	HANDLE      processHandle = OpenProcess(PROCESS_ALL_ACCESS, FALSE, PID);
    	HMODULE     *moduleArray;
    	LPBYTE      moduleArrayBytes;
    	DWORD       bytesRequired;
    
    	if (processHandle)
    	{
    		if (EnumProcessModules(processHandle, NULL, 0, &bytesRequired)) {
    			if (bytesRequired) {
    				moduleArrayBytes = (LPBYTE)LocalAlloc(LPTR, bytesRequired);
    
    				if (moduleArrayBytes) {
    					unsigned int moduleCount;
    
    					moduleCount = bytesRequired / sizeof(HMODULE);
    					moduleArray = (HMODULE *)moduleArrayBytes;
    
    					if (EnumProcessModules(processHandle, moduleArray, bytesRequired, &bytesRequired))
    						address_base = (DWORD_PTR)moduleArray[0];
    					LocalFree(moduleArrayBytes);
    				}
    			}
    		}
    		CloseHandle(processHandle);
    	}
    
    	cout << "PID: " << PID << endl;
    	cout << "Base: 0x" << std::hex << address_base << std::dec << endl << endl;
    
    	DWORD_PTR first_object = NULL, object = NULL, descriptors = NULL, offset = NULL, offset1 = NULL, offset2 = NULL;
    
    	int returncode;
    	unsigned int player_level = 0;
    	unsigned int player_health = 0;
    
    	SIZE_T lpNumberOfBytesRead;
    	returncode = ReadProcessMemory(phandle, (LPVOID)(address_base + LOCAL_PLAYER), &offset1, 8, &lpNumberOfBytesRead);
    	cout << "Return 1: " << returncode << " read " << lpNumberOfBytesRead << endl;
    
    	returncode = ReadProcessMemory(phandle, (LPVOID)(offset1 + DESCRIPTORS), &descriptors, 8, &lpNumberOfBytesRead);
    	cout << "Return 2: " << returncode << " read " << lpNumberOfBytesRead << endl;
    
    	returncode = ReadProcessMemory(phandle, (LPVOID)(descriptors + UNIT_LEVEL), &player_level, sizeof(int), &lpNumberOfBytesRead);
    	cout << "Return 3: " << returncode << " read " << lpNumberOfBytesRead << " intsize " << sizeof(int) << endl;
    
    	returncode = ReadProcessMemory(phandle, (LPVOID)(descriptors + UNIT_HEALTH), &player_health, sizeof(int), &lpNumberOfBytesRead);
    	cout << "Return 4: " << returncode << " read " << lpNumberOfBytesRead << " intsize " << sizeof(int) << endl;
    
    	cout << endl;
    	cout << "Level: " << player_level << endl;
    	cout << "Health: " << player_health << endl;
    
    	return 0;
    }
    Output:

    Code:
    PID: 10984
    Base: 0x7ff6add30000
    
    Return 1: 1 read 8
    Return 2: 1 read 8
    Return 3: 1 read 4 intsize 4
    Return 4: 1 read 4 intsize 4
    
    Level: 0
    Health: 4278190080
    The PID is correct, and the return codes aren't zero, but It should show level 1 and 151 hp.

    I can't figure out what might have changed, and I don't want to have to downgrade to Win7 where all this was all working. I downgraded to VS 2013 but the problem still exists there.

    Thoughts?

    Upgraded to Windows10, now Radar hack doesn't work.
  2. #2
    xalcon's Avatar Contributor ふたなり
    Authenticator enabled
    Reputation
    198
    Join Date
    Oct 2008
    Posts
    291
    Thanks G/R
    20/58
    Trade Feedback
    0 (0%)
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    Its not a windows 10 related problem The descriptor pointer is at 0x10 not 0x8
    Originally Posted by aeo View Post
    Code:
    public struct WowObjectData
    {
    // x32 : x64
    private readonly IntPtr vtable; // 0x00 0x00
    private readonly IntPtr LegionExtra; // 0x08 0x18
    public IntPtr Descriptors; // 0x04 0x10
    private readonly IntPtr unk1; // 0x08 0x18
    public int TypeCode; // 0x0C 0x20
    private readonly IntPtr unk3; // 0x10 0x24
    private readonly IntPtr unk4; // 0x14 0x28
    private readonly IntPtr unk5; // 0x18 0x30
    private readonly IntPtr unk6; // 0x1C 0x38
    private readonly IntPtr unk7; // 0x20 0x40
    private readonly IntPtr unk8; // 0x24 0x48
    public WowGuid Guid; // 0x28 0x50
    }
    "Threads should always commit suicide - they should never be murdered" - DirectX SDK

  3. #3
    Durotar Heights's Avatar Member
    Reputation
    4
    Join Date
    May 2015
    Posts
    11
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Indeed it is not.

    That fixed my HP/level problem, thanks!

    I'll have to investigate why my other stuff is broken too, now that I know it's not a ReadProcessMemory problem.

Similar Threads

  1. [Release] WRadar - A WoW Radar (Hack)
    By peterwurst in forum World of Warcraft Bots and Programs
    Replies: 14
    Last Post: 08-16-2010, 03:05 AM
  2. [Hack]BH-Tool, fully radar hack !
    By bouh2 in forum World of Warcraft Bots and Programs
    Replies: 116
    Last Post: 10-11-2009, 02:11 PM
  3. [App] WoW Full Radar Hack Tool
    By ~sInX in forum World of Warcraft Bots and Programs
    Replies: 13
    Last Post: 10-07-2009, 11:00 AM
  4. [C#] Radar Hack
    By joetheodd in forum WoW Memory Editing
    Replies: 8
    Last Post: 07-28-2009, 10:02 PM
  5. anyone have a Radar hack
    By bait in forum World of Warcraft General
    Replies: 12
    Last Post: 09-03-2006, 03:52 AM
All times are GMT -5. The time now is 09:48 AM. Powered by vBulletin® Version 4.2.3
Copyright © 2025 vBulletin Solutions, Inc. All rights reserved. User Alert System provided by Advanced User Tagging (Pro) - vBulletin Mods & Addons Copyright © 2025 DragonByte Technologies Ltd.
Google Authenticator verification provided by Two-Factor Authentication (Free) - vBulletin Mods & Addons Copyright © 2025 DragonByte Technologies Ltd.
Digital Point modules: Sphinx-based search