[Help] Cant get a player name menu

User Tag List

Results 1 to 15 of 15
  1. #1
    avizer's Avatar Member
    Reputation
    1
    Join Date
    Oct 2012
    Posts
    19
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    [Help] Cant get a player name

    wat am I doing wrong?
    Result in attach file(empty string)
    Code:
    Console.WriteLine("WoW list:");
                Console.WriteLine("========================");
                Process[] procs = Process.GetProcesses();
                int[] WowIds = new int[100];
                int i = 0;
                for (int j = 0; j < procs.Length; j++)
                {
                    if (procs[j].ProcessName == "Wow")
                    {
                        Console.WriteLine("#" + i + ": " + procs[j].Id);
                        WowIds[i] = procs[j].Id;
                        i++;
                    }
                }
                Console.WriteLine("========================");
                Console.Write("Attach: ");
                i = int.Parse(Console.ReadLine());
                BlackMagic wow = new BlackMagic(WowIds[i]);
                string PlayerName = wow.ReadASCIIString(0x00EC3180, 12);
                Console.WriteLine(PlayerName);
    Attached Thumbnails Attached Thumbnails [Help] Cant get a player name-1-jpg  

    [Help] Cant get a player name
  2. #2
    Erke's Avatar Member
    Reputation
    2
    Join Date
    Apr 2012
    Posts
    17
    Thanks G/R
    2/1
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I might be wrong but I think you need to do ImageBase + 0x00EC3180 in your ReadASCIIString

  3. #3
    avizer's Avatar Member
    Reputation
    1
    Join Date
    Oct 2012
    Posts
    19
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    ImageBase ?

  4. #4
    Aethereal's Avatar Private
    Reputation
    25
    Join Date
    Feb 2014
    Posts
    11
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    The address of the Main Module (Process.MainModule.BaseAddress); usually 0x400000

  5. #5
    Jadd's Avatar 🐸 Premium Seller
    Reputation
    1511
    Join Date
    May 2008
    Posts
    2,432
    Thanks G/R
    81/333
    Trade Feedback
    1 (100%)
    Mentioned
    2 Post(s)
    Tagged
    0 Thread(s)
    Originally Posted by Aethereal View Post
    The address of the Main Module (Process.MainModule.BaseAddress); usually 0x400000
    Depends on whether ASLR is enabled.

  6. #6
    avizer's Avatar Member
    Reputation
    1
    Join Date
    Oct 2012
    Posts
    19
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Thx dude!
    I use it:
    Code:
     IntPtr BaseAddress = wow.MainModule.BaseAddress;

  7. #7
    OMLinux's Avatar Private
    Reputation
    1
    Join Date
    Dec 2013
    Posts
    9
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Aslr

    Originally Posted by Jadd View Post
    Depends on whether ASLR is enabled.
    Is there way to disable ASLR at the startup of process?

    Here is VMem table of Wow.exe mappings (proc/wow_pid/maps contents)? Why there are 3 mapping (first one looks like standard win base address, but too small)? Is ASLR root of it or it wine-only specific (I mean 3 mapped addresses, not ASLR).

    virtual address space perm offset device inode path
    00400000-00401000 r--p 00000000 08:18 17826132 ~/bin/wow/Wow.exe
    00ede000-00f92000 rw-p 00adc000 08:18 17826132 ~/bin/wow/Wow.exe
    0131c000-01415000 r--p 00b90000 08:18 17826132 ~/bin/wow/Wow.exe

    Last question. There are a lot offsets posted on this forum (rebased to Wow.exe mapping address as I understand). Are local player GUID, name, CurrentZoneName and so on located on stack or in heap?

  8. #8
    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)
    ASLR is a security feature and yes, you can disable it. There are (at least) two ways to do so: Either disable it globally (using registry settings) or remove the flag from the PE header (http://www.ownedcore.com/forums/worl...aft-patch.html (Disable ASLR in World of Warcraft (patch)))

    But realy, dont disable ASLR. Its there for a reason. As long as you have the proper permissions (which I guess you have when you develop hacks/bots) there should be no problem having ASLR enabled.


    Last question. There are a lot offsets posted on this forum (rebased to Wow.exe mapping address as I understand). Are local player GUID, name, CurrentZoneName and so on located on stack or in heap?
    What the ****... are you talking about? Do you even know the difference between stack and heap?... It wouldn't make sense when those offsets are located on the stack... just think about it.
    Last edited by xalcon; 02-27-2014 at 08:44 AM.
    "Threads should always commit suicide - they should never be murdered" - DirectX SDK

  9. #9
    avizer's Avatar Member
    Reputation
    1
    Join Date
    Oct 2012
    Posts
    19
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    And another question:
    why, as a result of executing this code, I have the zeros?
    (Result in attach file)
    Code:
    uint objMgr = wow.ReadUInt((int)Offsets.ObjectManager.clientConnection + (uint)BaseAddress);
                uint objMgrNext = wow.ReadUInt(objMgr + (int)Offsets.ObjectManager.objectManager);
                uint curObject = wow.ReadUInt(objMgrNext + (int)Offsets.ObjectManager.FirstObject);
    
                uint PlayerGUID = wow.ReadUInt(objMgrNext + (uint)Offsets.ObjectManager.LocalGUID);
                Console.WriteLine(PlayerGUID);
                while (curObject != 0 && (curObject % 2) == 0)
                {
                    uint ObjectType = wow.ReadUInt(curObject + (uint)Offsets.WoWUnitFields.ChannelObject);
                    uint objGUID = wow.ReadUInt(curObject + (uint)Offsets.WoWObjectFields.Guid);
                    Console.WriteLine(ObjectType);
                    switch (ObjectType)
                    {
                        case (int)Offsets.WoWObjectType.Unit:
                            Console.WriteLine("Unit");
                            break;
                        case (int)Offsets.WoWObjectType.Item:
                            Console.WriteLine("Item");
                            break;
                        case (int)Offsets.WoWObjectType.Container:
                            Console.WriteLine("Container");
                            break;
                        case (int)Offsets.WoWObjectType.Corpse:
                            Console.WriteLine("Corpse");
                            break;
                        case (int)Offsets.WoWObjectType.GameObject:
                            Console.WriteLine("GameObject");
                            break;
                        case (int)Offsets.WoWObjectType.DynamicObject:
                            Console.WriteLine("DynamicObject");
                            break;
                        case (int)Offsets.WoWObjectType.Player:
                            Console.WriteLine("Player " + objGUID);
                            break;
                    }
    
                    if (objGUID == PlayerGUID)
                        Console.WriteLine("Me detected!");
    
                    curObject = wow.ReadUInt(curObject + (int)Offsets.ObjectManager.NextObject);
                }
    [Help] Cant get a player name-1-jpg

    Code:
    public enum ObjectManager
            {
                clientConnection = 0xEC3140,
                objectManager = 0x462C,
                FirstObject = 0xCC,
                NextObject = 0x34,
                LocalGUID = 0xE8
            };
    public enum WoWObjectFields
            {
                Guid = 0x0
            };
    public enum WoWUnitFields
            {
                 ChannelObject = 0x68
            };
    Last edited by avizer; 02-27-2014 at 09:38 AM.

  10. #10
    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)
    • Is WoW running in 32 Bit Mode?
    • Is your application running with Administrator Privileges?
    • Is your ObjMgr Pointer pointing to valid location/not a nullpointer?
    • Are you using the latest wow client? (5.4.7 17930)

    And just a sidenote, the GUID is a UInt64, not UInt32.
    "Threads should always commit suicide - they should never be murdered" - DirectX SDK

  11. #11
    avizer's Avatar Member
    Reputation
    1
    Join Date
    Oct 2012
    Posts
    19
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally Posted by xalcon View Post
    • Is WoW running in 32 Bit Mode?
    • Is your application running with Administrator Privileges?
    • Is your ObjMgr Pointer pointing to valid location/not a nullpointer?
    • Are you using the latest wow client? (5.4.7 17930)

    And just a sidenote, the GUID is a UInt64, not UInt32.
    1. yes
    2. yes
    3. As a result of
    uint objMgrx = wow.ReadUInt((int)Offsets.ObjectManager.clientConnection);
    I have 0. Or I do not understand?
    4. yes

  12. #12
    Jadd's Avatar 🐸 Premium Seller
    Reputation
    1511
    Join Date
    May 2008
    Posts
    2,432
    Thanks G/R
    81/333
    Trade Feedback
    1 (100%)
    Mentioned
    2 Post(s)
    Tagged
    0 Thread(s)
    Originally Posted by avizer View Post
    uint objMgrx = wow.ReadUInt((int)Offsets.ObjectManager.clientConnection);
    I have 0. Or I do not understand?
    WTF? This code isn't even from the snippet you provided in the previous post. Please do us a favour and come back when you have any idea how to ask for programming support.

  13. #13
    avizer's Avatar Member
    Reputation
    1
    Join Date
    Oct 2012
    Posts
    19
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally Posted by Jadd View Post
    WTF? This code isn't even from the snippet you provided in the previous post. Please do us a favour and come back when you have any idea how to ask for programming support.
    xalcon asked: "Is your ObjMgr Pointer pointing to valid location/not a nullpointer?"
    I have not this line of code. I answered the question

    What's the problem with ObjectMngr?

  14. #14
    OMLinux's Avatar Private
    Reputation
    1
    Join Date
    Dec 2013
    Posts
    9
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally Posted by xalcon View Post
    What the ****... are you talking about? Do you even know the difference between stack and heap?... It wouldn't make sense when those offsets are located on the stack... just think about it.
    Sorry, It was my mistake (strong headache). I understand different between stack and heap quite good (offsets are not pointing heap). It should be data segment (bss? Am I right?). On the other hand CurManager (as data) located on stack (or heap), but there's static poiter in data segment, that pointed to it?

  15. #15
    avizer's Avatar Member
    Reputation
    1
    Join Date
    Oct 2012
    Posts
    19
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    pls help ^^

Similar Threads

  1. [HELP] Cant get PVP Scripts to work(REPOST)
    By Darksid in forum World of Warcraft Emulator Servers
    Replies: 2
    Last Post: 07-04-2008, 01:16 PM
  2. [HELP] Cant get GM ticket's to work
    By Summer in forum World of Warcraft Emulator Servers
    Replies: 6
    Last Post: 02-12-2008, 07:06 PM
  3. [help] cant get model edit fix to work
    By Masterkenshin in forum WoW ME Questions and Requests
    Replies: 7
    Last Post: 02-08-2008, 03:07 AM
  4. Need osme help cant get first part makign a server SS shot!!!!!
    By 30480 in forum World of Warcraft Emulator Servers
    Replies: 11
    Last Post: 10-17-2007, 07:40 PM
  5. I need help, cant get the right IDs on my server
    By xn00bpwn3rx in forum World of Warcraft Emulator Servers
    Replies: 5
    Last Post: 09-08-2007, 06:02 PM
All times are GMT -5. The time now is 11:27 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