c++ internally using object manager menu

User Tag List

Results 1 to 7 of 7
  1. #1
    xashh's Avatar Member
    Reputation
    1
    Join Date
    Oct 2018
    Posts
    4
    Thanks G/R
    2/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    c++ internally using object manager

    sorry if this is the wrong board. this is sort of a last resort for me. i dont know why this isnt working, all the offsets are from the 1.12.1 info dump thread, should be right. im trying to check object types by traversing the object manager object list, and it doesnt seem to be working correctly. to be quite honest thats all the information i can give, im drawing a blank here. ive already searched through the forum and looked at various githubs. if anyone can help me get this in working order, thatd be great. this is internal by the way.

    i know that im not supposed to be looping to an arbitrary number like 30000 (just testing), but id think that thered be entities some where in there that are valid but the message box never appears.

    i would like to avoid hooking and such as of right now, im just learning some basic things about wow programming before i dive into that

    Code:
    unsigned long __stdcall init(void* lpParam)
    {
    	unsigned int handle = (unsigned int)GetCurrentProcess();
    	if (handle)
    	{
    		unsigned int *objmgr = (unsigned int*)((unsigned int)handle + 0x00B41414);
    		if (objmgr)
    		{
    			unsigned int *obj = (unsigned int*)((unsigned int)objmgr + 0xAC);
    			
    			for (int i = 0; i < 30000; i++)
    			{
    				obj = (unsigned int*)((unsigned int)objmgr + 0xAC + (0x3C * i));
    
    				if (obj)
    				{
    					unsigned int type = *(unsigned int*)((unsigned int)obj + 0x14);
    					if (type == 3)
    					{
    						MessageBoxA(0, "!" "", 0);
    					}
    				}
    			}
    		}
    	}
    
    	return 0;
    }
    Last edited by xashh; 12-09-2018 at 01:42 AM.

    c++ internally using object manager
  2. #2
    namreeb's Avatar Legendary

    Reputation
    658
    Join Date
    Sep 2008
    Posts
    1,023
    Thanks G/R
    7/215
    Trade Feedback
    0 (0%)
    Mentioned
    8 Post(s)
    Tagged
    0 Thread(s)
    You don't need to rebase the s_curMgr offset as you are doing. ASLR is not enabled in the 1.12.1 binary.

  3. Thanks xashh (1 members gave Thanks to namreeb for this useful post)
  4. #3
    xashh's Avatar Member
    Reputation
    1
    Join Date
    Oct 2018
    Posts
    4
    Thanks G/R
    2/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally Posted by namreeb View Post
    You don't need to rebase the s_curMgr offset as you are doing. ASLR is not enabled in the 1.12.1 binary.
    ok. i changed my code to just use unsigned int *objmgr = (unsigned int*)(0x00B41414). this works for getting the type of the object. however, when i try to access the hp like
    Code:
    int hp = *(int*)(((unsigned int)obj + 0x8) + 0x58);
    it gives me some pretty wacky values, which makes me think im either accessing the descriptor wrong or still looping incorrectly.
    Last edited by xashh; 12-09-2018 at 04:10 PM.

  5. #4
    DarkLinux's Avatar Former Staff
    CoreCoins Purchaser Authenticator enabled
    Reputation
    1584
    Join Date
    May 2010
    Posts
    1,829
    Thanks G/R
    188/531
    Trade Feedback
    16 (100%)
    Mentioned
    6 Post(s)
    Tagged
    0 Thread(s)
    Originally Posted by xashh View Post
    ok. i changed my code to just use unsigned int *objmgr = (unsigned int*)(0x00B41414). this works for getting the type of the object. however, when i try to access the hp like
    Code:
    int hp = *(int*)(((unsigned int)obj + 0x8) + 0x58);
    it gives me some pretty wacky values, which makes me think im either accessing the descriptor wrong or still looping incorrectly.
    Your code becomes this,
    Code:
    int hp = *(int*)((unsigned int)obj + 0x60);
    You want,
    Code:
    int hp = *(uint32_t*)(*(uint32_t*)((uint32_t)obj + 0x8) + 0x58);
    You need to dereference the pointers.

  6. Thanks xashh (1 members gave Thanks to DarkLinux for this useful post)
  7. #5
    xashh's Avatar Member
    Reputation
    1
    Join Date
    Oct 2018
    Posts
    4
    Thanks G/R
    2/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally Posted by DarkLinux View Post
    Your code becomes this,
    Code:
    int hp = *(int*)((unsigned int)obj + 0x60);
    You want,
    Code:
    int hp = *(uint32_t*)(*(uint32_t*)((uint32_t)obj + 0x8) + 0x58);
    You need to dereference the pointers.
    yikes lol ty for the help! i didnt realize the descriptor had its own pointer :/
    Last edited by xashh; 12-15-2018 at 10:31 PM.

  8. #6
    DarkLinux's Avatar Former Staff
    CoreCoins Purchaser Authenticator enabled
    Reputation
    1584
    Join Date
    May 2010
    Posts
    1,829
    Thanks G/R
    188/531
    Trade Feedback
    16 (100%)
    Mentioned
    6 Post(s)
    Tagged
    0 Thread(s)
    Originally Posted by xashh View Post
    yikes lol ty for the help! i didnt realize the descriptor had its own pointer :/
    You should really try out Reclass or Cheat Engines struct builder. Then you can visually see the data and know.

  9. #7
    tutrakan's Avatar Contributor
    Reputation
    134
    Join Date
    Feb 2013
    Posts
    175
    Thanks G/R
    124/52
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally Posted by DarkLinux View Post
    You should really try out Reclass or Cheat Engines struct builder. Then you can visually see the data and know.
    I already use reclass and i find it very useful. Can you just give me a hint how to use CE builder? Thanks.

Similar Threads

  1. [Question] How to use Object Manager
    By Akaike in forum Wildstar Memory Editing
    Replies: 17
    Last Post: 05-16-2014, 09:57 AM
  2. Deciding the object type using object manager
    By Fecoooo in forum WoW Memory Editing
    Replies: 1
    Last Post: 11-09-2013, 11:37 AM
  3. Useful objects to build with
    By Minip2hn in forum WoW EMU Guides & Tutorials
    Replies: 14
    Last Post: 01-03-2009, 09:40 AM
  4. Object Manager
    By Shamun in forum WoW Memory Editing
    Replies: 11
    Last Post: 11-28-2008, 02:06 PM
  5. WoW Object Manager ?
    By discorly in forum WoW ME Questions and Requests
    Replies: 4
    Last Post: 07-28-2007, 06:34 PM
All times are GMT -5. The time now is 02:17 AM. Powered by vBulletin® Version 4.2.3
Copyright © 2024 vBulletin Solutions, Inc. All rights reserved. User Alert System provided by Advanced User Tagging (Pro) - vBulletin Mods & Addons Copyright © 2024 DragonByte Technologies Ltd.
Digital Point modules: Sphinx-based search