[Sample Code] EndScene Hook with ASM and blackmagic menu

User Tag List

Page 3 of 6 FirstFirst 123456 LastLast
Results 31 to 45 of 90
  1. #31
    _Mike's Avatar Contributor
    Reputation
    310
    Join Date
    Apr 2008
    Posts
    531
    Thanks G/R
    0/2
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally Posted by Chinchy View Post
    EndScene = 0xAC; //4.0.3.13287
    EndScene is 0xA8. 0xAC is Clear

    [Sample Code] EndScene Hook with ASM and blackmagic
  2. #32
    RivaLfr's Avatar Contributor CoreCoins Purchaser Authenticator enabled
    Reputation
    221
    Join Date
    Sep 2010
    Posts
    258
    Thanks G/R
    2/25
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    public enum DirectX //4.0.3.13287
    {
    DX_DEVICE = 0x97E7F4,
    DX_DEVICE_IDX = 0x27C4,
    ENDSCENE_IDX = 0xA8,
    }

  3. #33
    Millow's Avatar Member
    Reputation
    5
    Join Date
    Mar 2007
    Posts
    49
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Thx, it works now, with the new DX_Device_IDX it works. At least I was right about something !
    "What can be asserted without proof can be dismissed without proof." --- Christopher Hitchens

  4. #34
    Cypher's Avatar Kynox's Sister's Pimp
    Reputation
    1356
    Join Date
    Apr 2006
    Posts
    5,368
    Thanks G/R
    0/4
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally Posted by _Mike View Post
    EndScene is 0xA8. 0xAC is Clear
    I think it's funny he has it tagged for the patch. Your WoW version means nothing, it's an offset which is tied to a D3D version, lol.

  5. #35
    _Mike's Avatar Contributor
    Reputation
    310
    Join Date
    Apr 2008
    Posts
    531
    Thanks G/R
    0/2
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally Posted by Cypher View Post
    I think it's funny he has it tagged for the patch. Your WoW version means nothing, it's an offset which is tied to a D3D version, lol.
    Indeed, and to be even more specific; The vmt indices are the same for all D3D9 versions.

  6. #36
    fukmeimbroken's Avatar Member
    Reputation
    1
    Join Date
    Jun 2008
    Posts
    27
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally Posted by Millow View Post
    Thx, it works now, with the new DX_Device_IDX it works. At least I was right about something !
    Did you get the LuaDoString running too?

  7. #37
    Millow's Avatar Member
    Reputation
    5
    Join Date
    Mar 2007
    Posts
    49
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Nope,

    Not yet, at this point, I will have to learn some IDA to learn how to replicate the lua dostring in ASM. Cypher I think, said that to find Dostring in IDA you has to look at the last function of Runscript, I've looked at runscript, no success yet. If anyone has pointers to help me learn how to find lua dostring in IDA, I'm all ears, I want to learn stuff so one day, like 1 year, I can post my first contribution....

    fukmeimbroken, if you figure something out, pm me ! I'll do the same.
    "What can be asserted without proof can be dismissed without proof." --- Christopher Hitchens

  8. #38
    Scorpiona's Avatar Active Member
    Reputation
    17
    Join Date
    Mar 2009
    Posts
    42
    Thanks G/R
    0/1
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally Posted by Millow View Post
    Nope,

    Not yet, at this point, I will have to learn some IDA to learn how to replicate the lua dostring in ASM. Cypher I think, said that to find Dostring in IDA you has to look at the last function of Runscript, I've looked at runscript, no success yet. If anyone has pointers to help me learn how to find lua dostring in IDA, I'm all ears, I want to learn stuff so one day, like 1 year, I can post my first contribution....

    fukmeimbroken, if you figure something out, pm me ! I'll do the same.
    Try looking over my examples from back when I used ahook.

  9. #39
    Millow's Avatar Member
    Reputation
    5
    Join Date
    Mar 2007
    Posts
    49
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally Posted by Scorpiona View Post
    Try looking over my examples from back when I used ahook.
    Thx, I'll look into that, for your assembly code, did you look in IDA or you just based it on other people's code ?
    Anybody knows if the assembly code could change from patch to patch (noob question) ?
    "What can be asserted without proof can be dismissed without proof." --- Christopher Hitchens

  10. #40
    Scorpiona's Avatar Active Member
    Reputation
    17
    Join Date
    Mar 2009
    Posts
    42
    Thanks G/R
    0/1
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally Posted by Millow View Post
    Thx, I'll look into that, for your assembly code, did you look in IDA or you just based it on other people's code ?
    Anybody knows if the assembly code could change from patch to patch (noob question) ?
    Yes, it's 100% copypasta, I not know of this 'IDA' you speak.

    • Read this and then look at the call sites of FrameScript__Execute. Like lua_RunScript ...
    • Yes, it can change from patch to patch

  11. #41
    Chinchy's Avatar Active Member
    Reputation
    21
    Join Date
    Mar 2009
    Posts
    71
    Thanks G/R
    1/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally Posted by Cypher View Post
    I think it's funny he has it tagged for the patch. Your WoW version means nothing, it's an offset which is tied to a D3D version, lol.
    I use 42*4. I fat fingered 43*4 into the calculator when I was posting that. =(

  12. #42
    fukmeimbroken's Avatar Member
    Reputation
    1
    Join Date
    Jun 2008
    Posts
    27
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally Posted by Scorpiona View Post
    Yes, it's 100% copypasta, I not know of this 'IDA' you speak.

    • Read this and then look at the call sites of FrameScript__Execute. Like lua_RunScript ...
    • Yes, it can change from patch to patch
    Ida is a well known disassembler . Thx looking into your link. Seem kinda harder then my old way of reading some memory hehe .

    fukmeimbroken, if you figure something out, pm me ! I'll do the same.
    Okay I'll do.

  13. #43
    Cypher's Avatar Kynox's Sister's Pimp
    Reputation
    1356
    Join Date
    Apr 2006
    Posts
    5,368
    Thanks G/R
    0/4
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally Posted by _Mike View Post
    Indeed, and to be even more specific; The vmt indices are the same for all D3D9 versions.
    Yeah, lol. By "D3D versions" I meant 8, 9, 10, etc.

    Originally Posted by Chinchy View Post
    I use 42*4. I fat fingered 43*4 into the calculator when I was posting that. =(
    Slightly more correct:
    42 * sizeof(void*)


  14. #44
    Ozius's Avatar Corporal
    Reputation
    1
    Join Date
    Feb 2010
    Posts
    24
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I can not understand where I have committed an error, like have changed all offsets an.d have added BaseAddress but all the same doesn't work.
    Main:
    Code:
    static void Main(string[] args)
            {
                Process[] Processes = Process.GetProcessesByName("Wow");
                ProcessModule pm = Processes[0].MainModule;
                
                Console.WriteLine(pm.BaseAddress);
                
                if (Processes.Length > 0)
                {
                    Console.WriteLine("Select wow process " + Processes[0].Id);
    
                    BaseAddress = (uint)pm.BaseAddress;
    
                    MyHook = new Hook((uint)Processes[0].Id, BaseAddress);
                    Console.WriteLine("Hook statut: " + MyHook.threadHooked);
    		
                    if (MyHook.threadHooked)
                    {
                        LuaDoString("DoEmote(\"Dance\")");
                        Console.WriteLine("INJECT LuaDoString(\"DoEmote(\"Dance\")\")");
    
                        MyHook.DisposeHooking();
                        Console.WriteLine("Dispose Hooking");
                    }
                }
                else
                    Console.WriteLine("WoW process no found.");
                Console.ReadKey();
            }
    Offsets DirectX:
    Code:
                //4.0.3.13287
                uint DX_DEVICE = 0x97E7F4+BaseAddress;
                uint DX_DEVICE_IDX = 0x27C4;
                uint ENDSCENE_IDX = 0xA8;
    Other offsets:
    Code:
    FrameScript__Execute = 0x39D7F0;
    Doesn't dance. Help me plz....

  15. #45
    Millow's Avatar Member
    Reputation
    5
    Join Date
    Mar 2007
    Posts
    49
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Do you get it hooked ?
    "What can be asserted without proof can be dismissed without proof." --- Christopher Hitchens

Page 3 of 6 FirstFirst 123456 LastLast

Similar Threads

  1. [C# DLL] aHook, use ASM through EndScene hook
    By JuJuBoSc in forum WoW Memory Editing
    Replies: 80
    Last Post: 11-26-2011, 03:29 AM
  2. Sample Code - Another way of getting the EndScene address
    By _Mike in forum WoW Memory Editing
    Replies: 22
    Last Post: 05-14-2011, 08:30 PM
  3. [C#] CLR hosting using C# and BlackMagic (ASM)
    By JuJuBoSc in forum WoW Memory Editing
    Replies: 9
    Last Post: 05-10-2011, 08:44 AM
  4. Replies: 11
    Last Post: 12-23-2010, 09:30 PM
  5. [Test Theory] EndScene hook without Native Code (Kinda)
    By Apoc in forum WoW Memory Editing
    Replies: 7
    Last Post: 09-04-2009, 12:46 PM
All times are GMT -5. The time now is 07:32 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