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:
Dim Handle As String
Handle = OpenProcess(PROCESS_ALL_ACCESS, 0, ProcID)
LoadLibAddy1 = GetProcAddress(GetModuleHandle("ws2_32.dll"), "SendPacket")
LoadLibAddy2 = GetProcAddress(GetModuleHandle("ws2_32.dll"), "ReceivePacket")
'CallWindowProc LoadLibAddy, ProcID, "SendPacket &H6", ByVal &H0, ByVal &H0
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?