[Preview] Out-Of-Process hooking made easy. menu

User Tag List

Results 1 to 2 of 2
  1. #1
    bigtimt's Avatar Active Member
    Reputation
    41
    Join Date
    Mar 2008
    Posts
    100
    Thanks G/R
    2/4
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    [Preview] Out-Of-Process hooking made easy.

    just a little sample code from what i'm working on, wanted to get everyones thoughts on it. In the final product the use won't even have to interact with the stack, All argument data will be marshalled and unmarshalled automatically. hope it looks nice, cept it's in vb iknoright

    BIG thanks to cypher, his RTLRemoteThread bloggage inspired me to write this for some reason.

    Code:
        Dim Proc As VDProcess = VDProcess.GetProcessesByProcessName("calc")(0)
        Dim WithEvents MessageBoxAHook As VDHook = Proc.CreateHook(&H77C5D681)
    
        Private Sub MessageBoxAHook_OnCatch(ByVal CallingThread As VoodooLib.VDThread) Handles MessageBoxAHook.OnCatch
            Dim pReturn As IntPtr = CallingThread.Stack.Pop
            Dim pText As IntPtr = Proc.Memory.AllocStringA("Test")
    
            CallingThread.Stack.Pop() 'don't care
            CallingThread.Stack.Pop() 'don't care
            CallingThread.Stack.Pop() 'don't care
            CallingThread.Stack.Pop() 'don't care
    
            CallingThread.Stack.Push(0)
            CallingThread.Stack.Push(pText)
            CallingThread.Stack.Push(pText)
            CallingThread.Stack.Push(0)
            CallingThread.Stack.Push(pReturn)
    
            MessageBoxAHook.Release()
    
            Proc.Memory.Free(pText)
        End Sub

    [Preview] Out-Of-Process hooking made easy.
  2. #2
    flukes1's Avatar Member
    Reputation
    6
    Join Date
    Aug 2009
    Posts
    27
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Nice work. Everyone knows VB.NET is what the pros use

    Just a warning though: this is no less detectable than injection. With injection you get far more flexibility (your hook code runs inside one of the target process's threads) for no extra cost, as hooking functions with no kernel-mode protection is always detectable regardless of how you do it.

    You can of course just circumvent Warden, but then you still need to consider any checks done outside of Warden.

Similar Threads

  1. The Emerald Forest (Made Easy)
    By Ensui in forum World of Warcraft Model Editing
    Replies: 50
    Last Post: 07-03-2010, 05:05 AM
  2. Out-of-process hooking.
    By wraithZX in forum WoW Memory Editing
    Replies: 7
    Last Post: 09-28-2009, 09:37 PM
  3. Alterac Reputation Turn-Ins made easy...
    By The Mars Volta in forum World of Warcraft Bots and Programs
    Replies: 20
    Last Post: 06-07-2007, 07:02 AM
  4. Alterac Reputation Turn-Ins made easy...
    By The Mars Volta in forum WoW UI, Macros and Talent Specs
    Replies: 0
    Last Post: 05-29-2007, 04:28 PM
  5. [Cash] Made Easy Guide!
    By The Juggernaut in forum World of Warcraft Guides
    Replies: 16
    Last Post: 04-30-2007, 07:01 AM
All times are GMT -5. The time now is 02:28 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