[C# DLL] aHook, use ASM through EndScene hook menu

Shout-Out

User Tag List

Page 3 of 6 FirstFirst 123456 LastLast
Results 31 to 45 of 82
  1. #31
    -Ryuk-'s Avatar Elite User CoreCoins Purchaser Authenticator enabled
    Reputation
    529
    Join Date
    Nov 2009
    Posts
    1,028
    Thanks G/R
    38/51
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally Posted by Jensecj View Post
    Which issues? I am having exactly zero problems at the moment
    The fact that we have to start WoW as admin.
    |Leacher:11/2009|Donor:02/2010|Established Member:09/2010|Contributor:09/2010|Elite:08/2013|

    [C# DLL] aHook, use ASM through EndScene hook
  2. #32
    Danne206's Avatar Contributor
    Reputation
    183
    Join Date
    Jan 2008
    Posts
    717
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally Posted by -Ryuk- View Post
    The fact that we have to start WoW as admin.
    AFAIK, You only need to start YOUR program as admin?
    Turn off UAC (or w/e) and you'll be fine.
    I might be wrong, apologizes if so.
    Dahnniel [DOT] s [AT] gmail [DOT] com

  3. #33
    JuJuBoSc's Avatar Banned for scamming CoreCoins Purchaser
    Reputation
    1019
    Join Date
    May 2007
    Posts
    922
    Thanks G/R
    1/3
    Trade Feedback
    1 (100%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    No, WoW need to be started as admin too as WoW will call some function which require high privilege.

  4. #34
    kiborgrus's Avatar Member
    Reputation
    -6
    Join Date
    May 2009
    Posts
    25
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally Posted by JuJuBoSc View Post
    Hello,


    Here is a little dll based on BlackMagic for hooking the EndScene using static address.

    It allow to run asm code through the EndScene, have fun with it.

    I'll post the source once the last "problem" is fixed, under Win 7 / Vista WoW need to be run as admin, i assume cause of some win API used, i need to do something for grant WoW privilege.

    Of course it's easier using injected dll with MS Detours, but anyway i'll post it i'm sure it can be usefull for someone.

    Here is sample code to use Lua_DoString :

    Code:
    using System;
    using System.Collections.Generic;
    using System.Linq;
    using System.Text;
    using aHook;
    
    namespace TestaHook
    {
        class Program
        {
            static void Main(string[] args)
            {
    
                Hook EndScene = new Hook(aProcess.GetProcessIdByName("Wow"));
    
                UInt32 pDevicePtr = EndScene.BlackMagic.ReadUInt(0x00C76668);
                pDevicePtr = EndScene.BlackMagic.ReadUInt(pDevicePtr + 0x397C);
    
                UInt32 EndSceneAddr = EndScene.BlackMagic.ReadUInt(pDevicePtr);
                EndSceneAddr = EndScene.BlackMagic.ReadUInt(EndSceneAddr + 0xA8);
    
                Console.WriteLine(EndScene.Hook_Install(EndSceneAddr).ToString());
    
    
                    // Command to send using LUA
                    String Command = "print(\"EndScene hooked!\");";
    
                    // Allocate memory for command
                    uint DoString_space = EndScene.BlackMagic.AllocateMemory(Encoding.UTF8.GetBytes(Command).Length + 1);
    
                    // Write command in the allocated memory
                    EndScene.BlackMagic.WriteBytes(DoString_space, Encoding.UTF8.GetBytes(Command));
    
                    // Write the asm stuff for Lua_DoString
                    EndScene.Hook_AsmAddLine("mov eax, " + DoString_space);
                    EndScene.Hook_AsmAddLine("push 0");
                    EndScene.Hook_AsmAddLine("push eax");
                    EndScene.Hook_AsmAddLine("push eax");
                    EndScene.Hook_AsmAddLine("mov eax, 0x007F1F40"); // Lua_DoString
                    EndScene.Hook_AsmAddLine("call eax");
                    EndScene.Hook_AsmAddLine("add esp, 0xC");
                    EndScene.Hook_AsmAddLine("retn");
    
                    // Inject the shit
                    EndScene.Hook_AsmInject();
    
                    // Free memory allocated for command
                    EndScene.BlackMagic.FreeMemory(DoString_space);
    
                    // Uninstall the hook
                    EndScene.Hook_Remove();
    
                Console.ReadLine();
    
            }
        }
    }

    It's based on ASM detour by Shynd, so credit to Shynd
    Please downloads Rapide or other Uploades.

  5. #35
    qbasasa's Avatar Private
    Reputation
    1
    Join Date
    Apr 2010
    Posts
    5
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Could i ask for repost of the dll ?

  6. #36
    rhilor's Avatar Member
    Reputation
    1
    Join Date
    Mar 2007
    Posts
    11
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    please repost the dll, thanks.

  7. #37
    Seifer's Avatar Site Donator
    Reputation
    129
    Join Date
    Apr 2007
    Posts
    270
    Thanks G/R
    1/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    http://dl.dropbox.com/u/2904711/aHook.rar

    Though I doubt aHook still works, here you go.

  8. #38
    -Ryuk-'s Avatar Elite User CoreCoins Purchaser Authenticator enabled
    Reputation
    529
    Join Date
    Nov 2009
    Posts
    1,028
    Thanks G/R
    38/51
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally Posted by Seifer View Post
    http://dl.dropbox.com/u/2904711/aHook.rar

    Though I doubt aHook still works, here you go.
    Yeah, it still works
    |Leacher:11/2009|Donor:02/2010|Established Member:09/2010|Contributor:09/2010|Elite:08/2013|

  9. #39
    DarkLinux's Avatar Former Staff
    CoreCoins Purchaser Authenticator enabled
    Reputation
    1601
    Join Date
    May 2010
    Posts
    1,832
    Thanks G/R
    191/533
    Trade Feedback
    16 (100%)
    Mentioned
    6 Post(s)
    Tagged
    0 Thread(s)
    I am using black rain and I would like to use ahook. This is the line I am having problems with.

    Code:
    Hook EndScene = new Hook(aProcess.GetProcessIdByName("Wow"));
    I would like to use something like,

    Code:
    Hook EndScene = new Hook(aProcess.Memory);
    
    or 
    
    Hook EndScene = new Hook(aProcess.Memory.pid);
    Any ideas? Thanks for the help.

    ---------- Post added at 01:58 AM ---------- Previous post was at 01:55 AM ----------

    Random error, could not edit post. Should be,
    Code:
    ObjectManager.Memory

  10. #40
    Danne206's Avatar Contributor
    Reputation
    183
    Join Date
    Jan 2008
    Posts
    717
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    int PID = aProcess.GetProcessIdByName("Wow"));

    Hook EndScene = new Hook(PID);

    ?
    Dahnniel [DOT] s [AT] gmail [DOT] com

  11. #41
    DarkLinux's Avatar Former Staff
    CoreCoins Purchaser Authenticator enabled
    Reputation
    1601
    Join Date
    May 2010
    Posts
    1,832
    Thanks G/R
    191/533
    Trade Feedback
    16 (100%)
    Mentioned
    6 Post(s)
    Tagged
    0 Thread(s)
    So how does it know what wow I am using? If I am running 4 I will have 4 pids. I have already selected the pid and I use ObjectManager.Memory to call on it. So how would I use ObjectManager.Memory to create a new hook? Thanks!

  12. #42
    tymezz's Avatar Member
    Reputation
    9
    Join Date
    Nov 2007
    Posts
    44
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally Posted by DarkLinux View Post
    So how does it know what wow I am using? If I am running 4 I will have 4 pids.
    It doesn't. That's your job.

  13. #43
    DarkLinux's Avatar Former Staff
    CoreCoins Purchaser Authenticator enabled
    Reputation
    1601
    Join Date
    May 2010
    Posts
    1,832
    Thanks G/R
    191/533
    Trade Feedback
    16 (100%)
    Mentioned
    6 Post(s)
    Tagged
    0 Thread(s)
    I have that part working thanks! "READ" My question is, I have the pid in ObjectManager.Memory how can I use that to create a hook. ObjectManager.Memory is from BlackRain.

  14. #44
    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 DarkLinux View Post
    I have that part working thanks! "READ" My question is, I have the pid in ObjectManager.Memory how can I use that to create a hook. ObjectManager.Memory is from BlackRain.
    Make ObjectManager.Memory a wrapper for aHook's memory functions. If you can't figure that out you should go hit the books instead of asking to be spoonfed ridiculously simple code.

    Edit:
    This is assuming you're using the BlackRain source in your project rather than the compiled DLL.
    Last edited by Chinchy; 07-02-2010 at 06:48 PM.

  15. #45
    DarkLinux's Avatar Former Staff
    CoreCoins Purchaser Authenticator enabled
    Reputation
    1601
    Join Date
    May 2010
    Posts
    1,832
    Thanks G/R
    191/533
    Trade Feedback
    16 (100%)
    Mentioned
    6 Post(s)
    Tagged
    0 Thread(s)
    No one really should have answered my question. It was a really stupid question. +Rep to all for putting up with my stupidity. Thanks! :stick:

Page 3 of 6 FirstFirst 123456 LastLast

Similar Threads

  1. [Sample Code] EndScene Hook with ASM and blackmagic
    By RivaLfr in forum WoW Memory Editing
    Replies: 89
    Last Post: 05-13-2021, 03:26 PM
  2. CEGUI - EndScene Hook - DLL Function Call
    By Orix in forum WoW Memory Editing
    Replies: 5
    Last Post: 02-12-2011, 03:51 PM
  3. [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
  4. EndScene Hook not changing anything
    By lanman92 in forum WoW Memory Editing
    Replies: 32
    Last Post: 06-01-2009, 11:46 PM
  5. Some Useful ASM info
    By Hausmaster in forum WoW Memory Editing
    Replies: 1
    Last Post: 03-23-2008, 06:32 PM
All times are GMT -5. The time now is 09:40 PM. 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