Posted: Mon Dec 31, 2012 6:36 pm Post subject: C# dll trainer help
I have made C# exe trainers that use ReadProcessMemory and WriteProcessMemory, but now I want to make a dll trainer in C#. how would I read/write and would I need to make an injector? any help would be appreciated.
Joined: 25 Jan 2006 Posts: 8587 Location: 127.0.0.1
Posted: Mon Dec 31, 2012 7:52 pm Post subject:
Managed DLLs do not load/work the same as native ones. You can't just inject a managed DLL into a process and have it work. You need to first load the .NET framework into the process then have the process load your DLL and create an instance of the main object it is exposing.
I could give you a hand tomorrow when im able to function properly.
I can't remember if i'v made a full memory class for dll's but it wouldn't take long too.
I'll sort you out with my injector aswell. Basically does what Wiccaan mentioned besides it doesnt use a C++ dll.
A simple example of a c#/vb dll
Code:
using System;
using System.Windows.Forms;
using System.Threading;
namespace CDll
{
public class Class1
{
public static int DllMain(String arg)
{
new Thread(Main).Start();
return 0;
}
Public Shared Function DllMain(ByVal arg As String) As Integer
Dim _Thread As System.Threading.Thread = New System.Threading.Thread(AddressOf Main)
_Thread.Start()
Return 0
End Function
Shared Sub Main()
MsgBox("VB Dll Injected")
End Sub
End Class
And they'l inject just fine
I had to do this awhile back when i wanted to make a trainer for an xtrap protected game. Worked just fine. _________________
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum You cannot attach files in this forum You can download files in this forum