SetTarget menu

User Tag List

Thread: SetTarget

Results 1 to 3 of 3
  1. #1
    dna001's Avatar Member
    Reputation
    1
    Join Date
    Sep 2009
    Posts
    4
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    SetTarget

    Hi
    It's my first post on this forum, so first a big thanks for all the informations a found on it.


    I'm having some trouble with the SetTarget function. Each time I called it I've got a wow critical error.

    This is what I know. Tell me if I'm wrong =)

    The SetTarget function located at 0x4C46F0 (3.2.2 Info Dump Thread) takes a WGUID as argument

    I'm working in C# using the Fasm lib

    Based on the Lbot source I found on this forum and Code Using SelectTarget - Game Deception - Forums

    Code:
    uint codecave = memory.AllocateMemory();
    
    uint dwHiWord = (uint)(GUID >> 32);
    uint dwLoWord = (uint)GUID; 
    
    memory.Asm.Clear();
    memory.Asm.AddLine("MOV EAX, [0x{0}]", dwHiWord.ToString("X"));
    memory.Asm.AddLine("PUSH EAX");
    memory.Asm.AddLine("MOV EAX, [0x{0}]", dwLoWord.ToString("X"));
    memory.Asm.AddLine("PUSH EAX");
    memory.Asm.AddLine("CALL 0x4C46F0");
    memory.Asm.AddLine("ADD esp, 0x08");
    memory.Asm.AddLine("RETN");
    
    memory.Asm.InjectAndExecute(codecave);
    memory.FreeMemory(codecave);
    If someone can give me a little help, I will apreciate.

    PS: Excuse me for my poor English

    SetTarget
  2. #2
    Kryso's Avatar Active Member
    Reputation
    40
    Join Date
    Jul 2009
    Posts
    97
    Thanks G/R
    0/3
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I think InjectAndExecute works with CreateRemoteThread, so you need to set thread base into FS segment register or something like that.

    edit: also 0x004C46F0 is not target in 3.2.2a, its 0x004C4940
    Last edited by Kryso; 10-08-2009 at 09:24 AM.

  3. #3
    dna001's Avatar Member
    Reputation
    1
    Join Date
    Sep 2009
    Posts
    4
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Well thanks for your answer Kryso ! My offset was wrong and my code too :\

    Code:
    memory.Asm.AddLine("MOV EAX, [0x{0}]", dwHiWord.ToString("X"));
    memory.Asm.AddLine("PUSH EAX");
    memory.Asm.AddLine("MOV EAX, [0x{0}]", dwLoWord.ToString("X"));
    memory.Asm.AddLine("PUSH EAX");

    Thanks for the help !

All times are GMT -5. The time now is 08:55 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