Yes
Yes
Hey guys, here is code where it will load the CLR runtime into a executable and execute your .NET DLL, allowing hacks written in VB.NET or C# or w/e other language you use the .NET framework in. Hope it helps you guys.
Credits to Void and some website called thecodingwheel(?)
I think it took me a couple of hours to make it work and I used it for my hack a few months ago... Guess its time to give back. I might post the source for my .DLL hack written in C# (and CPP) a bit later, I still need to clean out some of the stuff I'm not supposed to release /
Yes I suck at CPP, and its extremely messy but it gets the job done
[php]
#include "MSCorEE.h"
#include <windows.h>
#pragma comment (lib, "mscoree.lib")
#include <iostream>
#include <iomanip>
#include <fstream>
#include <stdio.h> //put these with the rest of your inclues
#include <stdlib.h>
using namespace std;
void StartTheDotNetRuntime();
BOOLEAN WINAPI DllMain(HINSTANCE hInst,DWORD Reason,void* lpReserved)
{
if(Reason == DLL_PROCESS_ATTACH)
{
CreateThread(NULL, NULL, (LPTHREAD_START_ROUTINE)StartTheDotNetRuntime, NULL, NULL, NULL);
}
return true;
}
void StartTheDotNetRuntime()
{
// Bind to the CLR runtime..
ICLRRuntimeHost *pClrHost = NULL;
HRESULT hr = CorBindToRuntimeEx(
NULL, L"wks", 0, CLSID_CLRRuntimeHost,
IID_ICLRRuntimeHost, (PVOID*)&pClrHost);
// Push the big START button shown above
hr = pClrHost->Start();
// Okay, the CLR is up and running in this (previously native) process.
DWORD dwRet = 0;
hr = pClrHost->ExecuteInDefaultAppDomain(
L"DLLName.dll", //If .NET DLL is placed in CA folder just use './DLLName.dll'
L"Namespace.Class", L"Function", L"String Argument", &dwRet);
//Optionally stop the CLR runtime (we could also leave it running)
//hr = pClrHost->Stop();
// Don't forget to clean up.
pClrHost->Release();
}
[/php]
Have fun!
Any donations would help
Originally Posted by Bombsaway707Originally Posted by BloodOriginally Posted by Alby-kunOriginally Posted by AliOriginally Posted by CodeDemon[21:13] CoderNever: HOLY SHIT ITS USER1!Yes it is me... Yup Yup
[IMG]https://i111.photobucke*****m/albums/n121/golmor/learntoprogram-1.png[/IMG]
I dont get it? first post
If you code a hack in .NET you can inject it with this CLR loader, if you try injecting a .NET DLL like a non.NET DLL it won't work
Any donations would help
Originally Posted by Bombsaway707Originally Posted by BloodOriginally Posted by Alby-kunOriginally Posted by AliOriginally Posted by CodeDemon[21:13] CoderNever: HOLY SHIT ITS USER1!Yes it is me... Yup Yup
[IMG]https://i111.photobucke*****m/albums/n121/golmor/learntoprogram-1.png[/IMG]
1. Loads .NET framework into your host app
2. Loads your CLR (VB .NET / C# .NET) DLL
3. Calls a function in the designated namespace
4. Your code runs.
I had this from a while back, and I actually got it to work with MapleStory ... except reading and writing memory was a huge pain, so I dumped it and moved to C++.
wat the fuck mike. where the hell have you been??
Any donations would help
Originally Posted by Bombsaway707Originally Posted by BloodOriginally Posted by Alby-kunOriginally Posted by AliOriginally Posted by CodeDemon[21:13] CoderNever: HOLY SHIT ITS USER1!Yes it is me... Yup Yup
[IMG]https://i111.photobucke*****m/albums/n121/golmor/learntoprogram-1.png[/IMG]
Great Work
Ima make one later.... FOSHO
Great idea but you can do so much more with C++ than with those .net languages.
[IMG]https://i516.photobucke*****m/albums/u330/richdude212-2.jpg[/IMG]
[IMG]https://i516.photobucke*****m/albums/u330/richdude212/leet.gif[/IMG]
Get NX Cash For Completing Offers Here! (will redirect)
Remember to press when people help you!
Not bad for $14.99 a month...
I'd rather code correct, easily debuggable high-level code than error-prone low-level nonsense.
For some things, C++ is the tool of choice, for others -- C#.
Don't hammer screws. In this case, using C# may/may not be doing just that. I can imagine in some cases though, having C# collect information and communicate with a C++ component that actually performs the cheating.
What I am thinking about is something like in-game authorization and monitoring of outside information sources like my steamworks plugin. It allowed cheats in-game to determine whether another player was on the current player's friend's list. I'd have rather written that in C# if it were any more complicated than it was.
Stephen (10-04-2010)
I used C# for the hotkeys and some other stuff and had the actual hacking done using Platform Invoke...
Thank god for P/Invoke, where would .NET be without it?!!??
Any donations would help
Originally Posted by Bombsaway707Originally Posted by BloodOriginally Posted by Alby-kunOriginally Posted by AliOriginally Posted by CodeDemon[21:13] CoderNever: HOLY SHIT ITS USER1!Yes it is me... Yup Yup
[IMG]https://i111.photobucke*****m/albums/n121/golmor/learntoprogram-1.png[/IMG]