Results 1 to 1 of 1

Thread: Help with Hijacking a DLL and using its functions from outside the process!

  1. #1

    Thread Starter
    New Member
    Join Date
    Jul 2005
    Posts
    10

    Exclamation Help with Hijacking a DLL and using its functions from outside the process!

    That name pretty much shows yo what I plan to do.. But:

    I want to grab a dll thats loaded within a function and use it's functions to send the server packets.

    Heres the main part all else works but this function.
    VB Code:
    1. Dim Handle As String
    2. Handle = OpenProcess(PROCESS_ALL_ACCESS, 0, ProcID)
    3. LoadLibAddy1 = GetProcAddress(GetModuleHandle("ws2_32.dll"), "SendPacket")
    4. LoadLibAddy2 = GetProcAddress(GetModuleHandle("ws2_32.dll"), "ReceivePacket")
    5. 'CallWindowProc LoadLibAddy, ProcID, "SendPacket &H6", ByVal &H0, ByVal &H0
    6. a = SendPacket "&h50"

    What do I need to do to actually WRAP or HOOK the dll inside the process and use it to send packets to the server?
    Last edited by kanazky; Feb 10th, 2006 at 04:50 AM.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width