View Poll Results: Is this useful?

Voters
9. This poll is closed
  • Yes

    6 66.67%
  • Yes

    3 33.33%

Thread: .NET Loader

Results 1 to 13 of 13
  1. #1
    User1's Avatar
    Join Date
    Jul 2009
    Gender
    female
    Location
    Above the influence
    Posts
    4,085
    Reputation
    61
    Thanks
    4,294,967,295
    My Mood
    Crappy

    .NET Loader

    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


    Quote Originally Posted by Bombsaway707

    HOLY SHIT ITS USER1
    Quote Originally Posted by Blood

    HOLY SHIT ITS USER1
    Quote Originally Posted by Alby-kun


    HOLY SHIT ITS USER1
    Quote Originally Posted by Ali

    HOLY SHIT ITS USER1
    Quote Originally Posted by CodeDemon
    HOLY SHIT ITS USER1
    Quote Originally Posted by Jussofresh View Post
    HOLY SHIT ITS USER1!
    [21:13] CoderNever: HOLY SHIT ITS USER1!
    Yes it is me... Yup Yup




  2. The Following 6 Users Say Thank You to User1 For This Useful Post:

    [MPGH]AVGN (09-29-2010),baraozin (05-26-2011),HL-SDK (09-30-2010),[MPGH]Jason (10-02-2010),NOOB (09-30-2010),Stephen (09-30-2010)

  3. #2
    eXaLtIc™'s Avatar
    Join Date
    Aug 2010
    Gender
    male
    Posts
    203
    Reputation
    10
    Thanks
    142
    I dont get it? first post

  4. #3
    User1's Avatar
    Join Date
    Jul 2009
    Gender
    female
    Location
    Above the influence
    Posts
    4,085
    Reputation
    61
    Thanks
    4,294,967,295
    My Mood
    Crappy
    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


    Quote Originally Posted by Bombsaway707

    HOLY SHIT ITS USER1
    Quote Originally Posted by Blood

    HOLY SHIT ITS USER1
    Quote Originally Posted by Alby-kun


    HOLY SHIT ITS USER1
    Quote Originally Posted by Ali

    HOLY SHIT ITS USER1
    Quote Originally Posted by CodeDemon
    HOLY SHIT ITS USER1
    Quote Originally Posted by Jussofresh View Post
    HOLY SHIT ITS USER1!
    [21:13] CoderNever: HOLY SHIT ITS USER1!
    Yes it is me... Yup Yup




  5. #4

  6. #5
    freedompeace's Avatar
    Join Date
    Jul 2010
    Gender
    female
    Posts
    3,035
    Reputation
    340
    Thanks
    2,784
    My Mood
    Sad
    Quote Originally Posted by eXaLtIc™ View Post
    I dont get it? first post
    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++.

  7. #6
    scimmyboy's Avatar
    Join Date
    Jan 2008
    Gender
    male
    Location
    http://mpgh.net MPGHCash: $442,596,199
    Posts
    5,649
    Reputation
    26
    Thanks
    894
    My Mood
    Happy
    wat the fuck mike. where the hell have you been??

  8. #7
    User1's Avatar
    Join Date
    Jul 2009
    Gender
    female
    Location
    Above the influence
    Posts
    4,085
    Reputation
    61
    Thanks
    4,294,967,295
    My Mood
    Crappy
    Quote Originally Posted by scimmyboy View Post
    wat the fuck mike. where the hell have you been??
    Dead, and now I'm dying again

    Quote Originally Posted by freedompeace View Post
    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++.
    P/Invokes
    Any donations would help


    Quote Originally Posted by Bombsaway707

    HOLY SHIT ITS USER1
    Quote Originally Posted by Blood

    HOLY SHIT ITS USER1
    Quote Originally Posted by Alby-kun


    HOLY SHIT ITS USER1
    Quote Originally Posted by Ali

    HOLY SHIT ITS USER1
    Quote Originally Posted by CodeDemon
    HOLY SHIT ITS USER1
    Quote Originally Posted by Jussofresh View Post
    HOLY SHIT ITS USER1!
    [21:13] CoderNever: HOLY SHIT ITS USER1!
    Yes it is me... Yup Yup




  9. #8
    Stephen's Avatar
    Join Date
    Jun 2009
    Gender
    male
    Location
    Engine.exe
    Posts
    4,690
    Reputation
    184
    Thanks
    1,147
    My Mood
    Aggressive
    Great Work

  10. #9
    HL-SDK's Avatar
    Join Date
    Sep 2010
    Gender
    male
    Posts
    56
    Reputation
    11
    Thanks
    26
    I like this

  11. #10
    Stephen's Avatar
    Join Date
    Jun 2009
    Gender
    male
    Location
    Engine.exe
    Posts
    4,690
    Reputation
    184
    Thanks
    1,147
    My Mood
    Aggressive
    Ima make one later.... FOSHO

  12. #11
    richdude212's Avatar
    Join Date
    Jun 2009
    Gender
    male
    Location
    Tampa, FL
    Posts
    352
    Reputation
    10
    Thanks
    56
    My Mood
    Inspired
    Great idea but you can do so much more with C++ than with those .net languages.





    Get NX Cash For Completing Offers Here! (will redirect)


    Remember to press when people help you!
    Not bad for $14.99 a month...

  13. #12
    HL-SDK's Avatar
    Join Date
    Sep 2010
    Gender
    male
    Posts
    56
    Reputation
    11
    Thanks
    26
    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.

  14. The Following User Says Thank You to HL-SDK For This Useful Post:

    Stephen (10-04-2010)

  15. #13
    User1's Avatar
    Join Date
    Jul 2009
    Gender
    female
    Location
    Above the influence
    Posts
    4,085
    Reputation
    61
    Thanks
    4,294,967,295
    My Mood
    Crappy
    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


    Quote Originally Posted by Bombsaway707

    HOLY SHIT ITS USER1
    Quote Originally Posted by Blood

    HOLY SHIT ITS USER1
    Quote Originally Posted by Alby-kun


    HOLY SHIT ITS USER1
    Quote Originally Posted by Ali

    HOLY SHIT ITS USER1
    Quote Originally Posted by CodeDemon
    HOLY SHIT ITS USER1
    Quote Originally Posted by Jussofresh View Post
    HOLY SHIT ITS USER1!
    [21:13] CoderNever: HOLY SHIT ITS USER1!
    Yes it is me... Yup Yup




Similar Threads

  1. [Detected] MPGH.NET D3D CHAMS Hotkey Loader
    By FUKO in forum Piercing Blow Hacks & Cheats
    Replies: 130
    Last Post: 08-29-2011, 04:28 PM
  2. How to make a Loader in VB.NET
    By Killer12agh in forum Combat Arms Coding Help & Discussion
    Replies: 7
    Last Post: 08-08-2011, 03:27 PM
  3. [Vb.net]Simple hack loader
    By jdslashv2 in forum Programming Tutorials
    Replies: 23
    Last Post: 02-17-2011, 12:37 AM
  4. [Request] Loader [VB.net]
    By maneater4122 in forum Programming Tutorial Requests
    Replies: 4
    Last Post: 01-28-2011, 07:35 AM
  5. [Vb.net]Simple hack loader
    By jdslashv2 in forum Visual Basic Programming
    Replies: 6
    Last Post: 10-28-2010, 04:09 PM