ExclamationCrossFire Source

Posts 115 of 27 · Page 1 of 2
CrossFire Source
Well hi,
umm i keep geting a error... im pritty new at c++ but im learning fast. Im stuck here and i dont know what to do i have a d3d msnu & i have the dll old dll which worked but gave me a error b4 i entered game so i edited it and added some stuff but it wont work when i debug it :


#include <windows.h>
#include <iostream>

using namespace std;

#define ADR_PLAYERPOINTER 0x00
#define ADR_SERVERPOINTER 0x00

void source_codes(){
DWORD *dwPlayerPtr = *(DWORD*)ADR_PLAYERPOINTER;
DWORD *dwServerPtr = *(DWORD*)ADR_SERVERPOINTER;

}

void __cdecl PushToConsole(char* szVal ) {
DWORD dwCShell = (DWORD)GetModuleHandleA("CShell.dll");
if( dwCShell != NULL )
{
DWORD *LTClient = ( DWORD* )( (dwCShell + 0x2AAE80) );
void* CONoff = ( void* )*( DWORD* )( *LTClient + 0x1F8 );
_asm
{
push szVal;
call CONoff;
add esp, 4;
}
}
}
DWORD WINAPI Main(LPVOID) {
while(GetModuleHandleA("CShell.dll") == NULL ) {
Sleep(150);
}

bool PlayerGlow = true;
bool FogEnable = false;
bool Nosmoke = true;
bool Whitewalls = false;


for(; {
__asm pushad;
if(GetAsyncKeyState(VK_F2)&1) {
PlayerGlow = !PlayerGlow;
}
if(GetAsyncKeyState(VK_F3)&1) {
FogEnable = !FogEnable;
}
if(GetAsyncKeyState(VK_F4)&1) {
Nosmoke = !Nosmoke;
}
if(GetAsyncKeyState(VK_F9)&1) {
Whitewalls = !Whitewalls;
}

if (Nosmoke) {
PushToConsole("DrawParticles 1");
}
else {
PushToConsole("DrawParticles 0");
}

if (FogEnable) {
PushToConsole("FogEnable 1");
}
else {
PushToConsole("FogEnable 0");
}
if (PlayerGlow) {
PushToConsole("ScreenGlowEnable 1");

}
else {
PushToConsole("ScreenGlowEnable 0");

}
if (Whitewalls) {
PushToConsole("DrawFlat 1");
}
else {
PushToConsole("DrawFlat 0");
}
Sleep(100);
__asm popad;
}
}
BOOL WINAPI DllMain ( HMODULE hDll, DWORD dwReason, LPVOID lpReserved )
{
DisableThreadLibraryCalls(hDll);
if ( dwReason == DLL_PROCESS_ATTACH )
{
MessageBoxA(0, "This Hack was Made By GrimDesire ", "Successfully Injected", 0);
system("start http://www.mpgh.net");
CreateThread(NULL, NULL,Main, NULL, NULL, NULL);
}
return TRUE;
}
You debug it? Or Inject it?
That function source has been patched for awhile now
same thing happend to me o-o
It means that during the compiling of your source you had a error in your text go down to the bottom of that and look and it should give you a short description on what your error was.
clean up your code ALOT

Code:
#include <windows.h>

DWORD WINAPI Hacks(LPVOID)
{
	bool oneshot = false;
	while(1)
	{
		DWORD CShellBase = (DWORD)GetModuleHandleA("CShell.dll");

     
   		if(oneshot) 
         	{
           		for(int i=0 ; i<445 ; i++)
          		{
          		 *(float*)( (*(DWORD*)((*(DWORD*)(CShellBase + UPDATE ))+(4*i))) + 0x7F8) = FLT_MAX ;
    			}
		}
	}
}
BOOL WINAPI DllMain ( HMODULE hDll, DWORD dwReason, LPVOID lpReserved )
{
DisableThreadLibraryCalls(hDll);
if ( dwReason == DLL_PROCESS_ATTACH )
{
MessageBoxA(0, "This Hack was Made By GrimDesire ", "Successfully Injected", 0);
system("start http://www.mpgh.net");
CreateThread(NULL, NULL,Main, NULL, NULL, NULL);
}
return TRUE;
}
this will still not work. missing quiet a bit of coding.
Quote Originally Posted by Swiftdude View Post
clean up your code ALOT

Code:
#include <windows.h>

DWORD WINAPI Hacks(LPVOID)
{
	bool oneshot = false;
	while(1)
	{
		DWORD CShellBase = (DWORD)GetModuleHandleA("CShell.dll");

     
   		if(oneshot) 
         	{
           		for(int i=0 ; i<445 ; i++)
          		{
          		 *(float*)( (*(DWORD*)((*(DWORD*)(CShellBase + UPDATE ))+(4*i))) + 0x7F8) = FLT_MAX ;
    			}
		}
	}
}
BOOL WINAPI DllMain ( HMODULE hDll, DWORD dwReason, LPVOID lpReserved )
{
DisableThreadLibraryCalls(hDll);
if ( dwReason == DLL_PROCESS_ATTACH )
{
MessageBoxA(0, "This Hack was Made By GrimDesire ", "Successfully Injected", 0);
system("start http://www.mpgh.net");
CreateThread(NULL, NULL,Main, NULL, NULL, NULL);
}
return TRUE;
}
this will still not work. missing quiet a bit of coding.
or he can. use a d3d hook maybe midfunction and get hacks that way
Quote Originally Posted by Nubzgetkillz View Post
or he can. use a d3d hook maybe midfunction and get hacks that way
if he does d3d then it gets messy. dont want to help someone through that of which i cant get through .
Quote Originally Posted by Swiftdude View Post


if he does d3d then it gets messy. dont want to help someone through that of which i cant get through .
That is why you let him do it and d3d isn't messy if you have classes and use a good menu class.
Quote Originally Posted by Nubzgetkillz View Post
That is why you let him do it and d3d isn't messy if you have classes and use a good menu class.
haha i have 3 headers and 1 source with ALL of my menu and hack shit in it :F
If your using vs c++ express, if memory sevres, if your using more than one line of asm, it's __asm, not _asm (two underscores)
Quote Originally Posted by tdct View Post
If your using vs c++ express, if memory sevres, if your using more than one line of asm, it's __asm, not _asm (two underscores)
this is true..
im pretty sure a couple words your using are patched
Dude Even Though This Way Is Patched You Would Need To Update This Bit Of Code :
Code:
DWORD *LTClient = ( DWORD* )( (dwCShell + 0x2AAE80) );
And Put The New Client Numbers There But You Would Probally Still Get Disconnect When Trying To Join Rooms And Servers !
Posts 115 of 27 · Page 1 of 2

Post a Reply

Tags for this Thread

None

Need help?