How to Inject DLL safely menu

User Tag List

Results 1 to 6 of 6
  1. #1
    demonguy's Avatar Member
    Reputation
    2
    Join Date
    Feb 2012
    Posts
    111
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    How to Inject DLL safely

    Code:
        Public Sub InjectAllWows()
            Dim MyWows = System.Diagnostics.Process.GetProcessesByName("Wow")
    
    
            For i = 0 To MyWows.Length - 1
    
                Dim MyProcess = MyWows(i)
    
                MyProcess.WaitForInputIdle()
                Threading.Thread.Sleep(3000)
    
                Try
                    Dim MyModules = MyProcess.Modules
    
                    Dim Found = False
                    For j = 0 To MyModules.Count - 1
                        If MyModules(j).ModuleName.ToLower().IndexOf("chack.dll") <> -1 Then
                            Found = True
                            Exit For
                        End If
                    Next
    
                    If Not Found Then
                        InjectProcess(MyProcess.Id, Application.StartupPath() & "\Hacks\CHack.dll")
                    End If
    
                Catch e As Exception
    
                End Try
            Next
        End Sub
    I inject my DLL through codes above... And my DLL just load some extra lua files into WOW... But Unfortunately , Even inject it after "WaitForInputIdle" and sleep for 3 seconds, Wow still have about 20% possibility to crash or become not responding....
    So is there anything i can do to deal with it?

    How to Inject DLL safely
  2. #2
    DarkLinux's Avatar Former Staff
    CoreCoins Purchaser Authenticator enabled
    Reputation
    1627
    Join Date
    May 2010
    Posts
    1,846
    Thanks G/R
    193/539
    Trade Feedback
    16 (100%)
    Mentioned
    7 Post(s)
    Tagged
    0 Thread(s)
    1. The dll is probably making it crash, so its your code and we cant really help you with that unless you post it.

    2. This looks like Autoit... gtfo or use something that you know how it works... Like what does InjectProcess really do.. Also is your dll coded Autoit?

  3. #3
    Flowerew's Avatar Master Sergeant
    Reputation
    72
    Join Date
    Oct 2009
    Posts
    134
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally Posted by DarkLinux View Post
    1. The dll is probably making it crash, so its your code and we cant really help you with that unless you post it.

    2. This looks like Autoit... gtfo or use something that you know how it works... Like what does InjectProcess really do.. Also is your dll coded Autoit?
    looks like vb to me ^^

  4. #4
    demonguy's Avatar Member
    Reputation
    2
    Join Date
    Feb 2012
    Posts
    111
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Yes, it's VB... And i write the codes above by myself, as well as my DLL
    I'm certain that the crash is caused by my timing to load lua files
    As for the reason why i post my injector codes is that i want to emphasize the fact that i inject my DLL after Sleeping 3 seconds

    And i guess the problem is that i inject the DLL and execute buffers in lua_State while the main thread of WOW is also executing some codes, and they conflicts, but i'm not sure.

    Now, i just suspend all other threads in WOW when i load these lua files, which works fine currently. But i don't know whether it will cause some other problems..
    So i just post this thread to see whether there is someone else who loads lua files immediately after WOW is started.
    Last edited by demonguy; 11-15-2012 at 05:23 AM.

  5. #5
    wiirgi's Avatar Contributor
    Reputation
    105
    Join Date
    Mar 2010
    Posts
    120
    Thanks G/R
    2/16
    Trade Feedback
    1 (100%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    What language is the DLL made in? Because if its not written in unmanaged(.NET is managed) code I dont' think it will work properly.
    I like cats.

  6. #6
    hb123220's Avatar Member
    Reputation
    8
    Join Date
    Mar 2012
    Posts
    41
    Thanks G/R
    3/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    it's VB.NET. anyone knows how to inject managed Language?

Similar Threads

  1. How to get base address afer injecting DLL?
    By zeion in forum GW2 Memory Editing
    Replies: 0
    Last Post: 08-31-2013, 06:53 PM
  2. Replies: 4
    Last Post: 07-20-2011, 09:50 PM
  3. How to trade accounts safely!
    By Bennyrub in forum World of Warcraft Guides
    Replies: 6
    Last Post: 10-29-2007, 06:36 PM
  4. How to trade accounts safely!
    By Bennyrub in forum World of Warcraft Guides
    Replies: 0
    Last Post: 10-29-2007, 04:07 PM
  5. How safe is gliding? and how to keep it safe (a little guide)
    By druidofthenight in forum World of Warcraft Bots and Programs
    Replies: 9
    Last Post: 09-02-2007, 12:55 PM
All times are GMT -5. The time now is 11:01 PM. 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