PDA

View Full Version : Fixed Loader Tut (No d8d3 needed)


3y3w4nn4ch34t
4th October 2004, 05:17
This allows you to load the hack dll from a folder with the exe without d8d3 or 2000 compatible mode. I got this from Fux0rs FMOD source. Maybe it was in earlier EHacks but I didnt look. So just thank Fux and EvilBert. This tutorial is assuming your hack dll is named d3d8.


Exe Section
LoaderDlg.cpp (Add this for your launch button section)
---------------------------------------------------------------------------

void CLoaderDlg::OnBnClickedBlaunch()
{

theApp.m_Settings.WriteSettings(theApp.GetFullDllN ame());

char StartGameCommand[2048];
char EvilhackDll[2048];

strcpy(StartGameCommand, theApp.m_Settings.m_PathToGame);
strcat(StartGameCommand, "ArmyOps.exe");
strcpy(EvilhackDll, theApp.m_Settings.m_PathToEvilhack);
strcat(EvilhackDll, "d3d8.dll");
if (SpawnProcess(StartGameCommand, EvilhackDll))
PostMessage(WM_QUIT, 0, 0);
else
MessageBox("Error creating process", "error", MB_OK);

}


---------------------------
Dll Section
Evilhack.cpp
Find......

if (HookAPICalls(&LoadLibraryHook, GetModuleHandle("core.dll")) != true)
MessageBox(NULL, "error attaching evilhack", "error", MB_OK);
GameInfo.m_LogoStartTime = GetTickCount();
hModule = (HMODULE)hModule;
//Load d8d3.dll instead of d3d8.dll from system32
hOriginalDll = LoadLibrary(strcat(Path, "d8d3.dll"));

Replace with.......

if (HookAPICalls(&LoadLibraryHook, GetModuleHandle("core.dll")) != true)
MessageBox(NULL, "error attaching evilhack", "error", MB_OK);
GameInfo.m_LogoStartTime = GetTickCount();
//Get Handle to original dll. Its important not to call LoadLibrary here so that the reference counter doesnt get incremented
hOriginalDll = GetModuleHandle("d3d8.dll");

-----------------------------------------------------
Hookworks.cpp
Look for.....

DWORD Result = OldFn(lpFileName);
if (wcsstr(lpFileName, _TEXT("D3DDrv")) != 0)
{
// HookAPICalls(&D3DHook, (HMODULE)Result);
// hD3DDrvDll = (HMODULE)Result;
}
if (wcsstr(lpFileName, _TEXT("WinDrv")) != 0)
{
HookAPICalls(&DirectInput8Hook, (HMODULE)Result);
hWinDrvDll = (HMODULE)Result;
}
return Result;
}

And remove the comments ( // )
-------------------------------------------------------------------------
Notice: If you get a version mismatch and a runtime error its because of this section in evilhack.cpp....


//#ifdef TESTMODE //Puusilma WARNING!
//This section works only with the 1.6.2 Detours loader
//Comment out if using evilhack.exe built with the new 1.6.3 ISL loader
static char DllPath[MAX_PATH];
FullDllPath = DllPath;
GetModuleFileName((HMODULE)hModule, FullDllPath, MAX_PATH);
/*#else //Puusilma WARNING!
FullDllPath = (char*)hModule;
#endif //Puusilma WARNING!*/


Either comment or uncomment ifdef, else, endif. The endif doesnt have them so you get the error.

gil
4th October 2004, 05:20
Nice one 3y3 ;)

Good to see this place running already.

PseudoX
4th October 2004, 13:06
Nice one 3y3 ;)

Good to see this place running already.

3y3 you rock dude , If you knew how many people needed this youd chit yer pants . I appreciate the it a buttload ,. even if I coded a titanium loader to load my hack and no longer need it ( Well I CONVERTED It I didnt Hard Code it ) The credit goes to a Trojan hackjer I know. But back to you ., This was cool of you to hook us up man . If there was something I could give you to reward you I would but an E ^5 and Right On Bro is the best I can do .. Got some accounts if you ever need testers .. 40 Honor testers lol

I just wanted to see how bad i could kick myself in the butt and i slammed this tut in my clean clean clean lean and mean bc23 source and was thinking , Ahh what the heck ill just release em ,.,. Its noit hard to change the fingerprint and a hack a day 30 minutes tops right ...Well Ill fix it but You are going to get swamped cuz its not a PLUG IN PLAY Operation ., OR I COULD JUST BE STUPID But IO had some problems . . .

ARGH
15th October 2004, 07:20
so what do i need to change to change the name of my dll?

3y3w4nn4ch34t
15th October 2004, 08:36
so what do i need to change to change the name of my dll?
strcpy(EvilhackDll, theApp.m_Settings.m_PathToEvilhack);
strcat(EvilhackDll, "d3d8.dll");

Just change that to whatever your dll is so it will load it.

wooow
15th October 2004, 23:13
lol, doesn't work for me