Need some help here

Posts 1–15 of 16 · Page 1 of 2
Need some help here
hey all , i injected my hack the message box appears and all things good and there are no Xtrap errors but when i am in game seeghosts didn't work i tried alot but same thing .,so here is the code can you help me
Code:
#include<windows.h>

char Msg[] = {'M','a','d','e',' ','b','y',' ','N','a','n','o','g','o','l','d',0 };
char Title[] = {'N','A',' ','C','F',' ','H','A','C','K',0 };
 
DWORD WINAPI NanoGold(LPVOID)
{
  
   bool seeghosts = true;
 
   while(true)
   {
       DWORD CShell = (DWORD)GetModuleHandleA("CShell.dll");
       DWORD BasicPlayerInfo = *(DWORD*)(CShell + 0xAD0200);//is the pointer right
 
//seeghosts
            if(seeghosts)
            {
                *(float*)(BasicPlayerInfo + 0x88) = (float)300;// is the float value right ?
                *(float*)(BasicPlayerInfo + 0x8C) = (float)300;
                *(float*)(BasicPlayerInfo + 0x90) = (float)300;
			}
   }
   Sleep(100);
}

BOOL WINAPI DllMain(HMODULE hDll, DWORD dwReason, LPVOID lpReserved)
{
	DisableThreadLibraryCalls(hDll);
	if(dwReason == DLL_PROCESS_ATTACH) {
		MessageBoxA(0, Msg,Title, 0);
		_asm {
			PUSH 0;
			PUSH 0;
			CALL NanoGold;
			PUSH 0;
			PUSH 0;
			PUSH 0;
			CALL CreateThread;
		}
		_asm {
			MOV EAX, 1;
			RET;
		}

	}
	return TRUE;
}
@luizimoloko for the dllmain
wtf.. you must mean push nanogold not a call
Quote Originally Posted by giniyat101 View Post
wtf.. you must mean push nanogold not a call
this is luizimoloko's dllmain he post it ,sorry iam a begginer so don't get mad at me, i will change it from call to push and see what gona happen ,Thanks

---------- Post added at 08:05 PM ---------- Previous post was at 08:02 PM ----------

Quote Originally Posted by bandi12 View Post
I see no point to use _asm in Dll main when you debug/release your cpp file C++ will complie it like asm code no point to use it in dll main ...
do yo mean that using asm in dllmain won't get the hack work ,,what about push ??
I see no point to use _asm in Dll main when you debug/release your cpp file C++ will complie it like asm code no point to use it in dll main ...
Quote Originally Posted by NanoGold View Post
do yo mean that using asm in dllmain won't get the hack work ,,what about push ??
IDK if will work or not i mean that when c++ complie a cpp file it will complie it like asm code so why make it the hard way whit asm when C++ will do the job for you ? you can make it just in the easy way whit simply use

CreateThread(NULL, NULL, (LPTHREAD_START_ROUTINE)NanoGold, NULL, NULL, NULL);
@giniyat101 i changed it to PUSH after i inject it crossfire error pop up ,,can you help please

---------- Post added at 09:04 PM ---------- Previous post was at 08:14 PM ----------

@bandi12 i used CreatThread instead of asm but when i inject it error from the game pop up,,can you tell me why,,can any one help
Quote Originally Posted by NanoGold View Post
@bandi12 i used CreatThread instead of asm but when i inject it error from the game pop up,,can you tell me why,,can any one help
try this


Code:
BOOL WINAPI DllMain(HMODULE hDll, DWORD dwReason, LPVOID lpReserved)
{
	if(dwReason == DLL_PROCESS_ATTACH) 
{
}

if (GetModuleHandleA("CShell.dll") && GetModuleHandleA("ClientFx.Fxd") )
{
	
DisableThreadLibraryCalls(hDll);
CreateThread(NULL, NULL, (LPTHREAD_START_ROUTINE)NanoGold, NULL, NULL, NULL);
}
return TRUE;
}
@bandi12 thanks but it's detected xtrap detect it
for me this doesnt work
Code:
_asm {
			PUSH 0;
			PUSH 0;
			CALL NanoGold;
			PUSH 0;
			PUSH 0;
			PUSH 0;
			CALL CreateThread;
		}
		_asm {
			MOV EAX, 1;
			RET;
		}
The Call is right @giniyat101 its call that main thread like int NanoGold(void)
then u make CreatThread in the main thread then its called it
Quote Originally Posted by NanoGold View Post
The Call is right @giniyat101 its call that main thread like int NanoGold(void)
then u make CreatThread in the main thread then its called it
i said push because with a push it will look like CreateThread parameters
@luizimloko where are you?
Quote Originally Posted by giniyat101 View Post
i said push because with a push it will look like CreateThread parameters
@luizimloko where are you?
yes i tried with pushh but it doesnt work ... idk maybe my base is bugged BUT i dont think so... @giniyat101 have as skype or msn ?
Quote Originally Posted by kmanev073 View Post
yes i tried with pushh but it doesnt work ... idk maybe my base is bugged BUT i dont think so... @giniyat101 have as skype or msn ?
giniyat202@live.com
After it's compiled it will look like the same if you use the inline assembler.
Posts 1–15 of 16 · Page 1 of 2

Post a Reply

Similar Threads

Tags for this Thread

None

Talk with us