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

Threaded View

  1. #1
    User1's Avatar
    Join Date
    Jul 2009
    Gender
    female
    Location
    Above the influence
    Posts
    4,065
    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!

  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),Jason (10-02-2010),NOOB (09-30-2010),Stephen (09-30-2010)

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