Results 1 to 5 of 5
  1. #1
    kmanev073's Avatar
    Join Date
    Feb 2011
    Gender
    male
    Location
    Bulgaria
    Posts
    2,400
    Reputation
    97
    Thanks
    2,537
    My Mood
    Cool

    Injecting but NULL... :D

    Hi, guys! First of all the code down is not mine and the names of variables and shit are totaly mesh. I compile it without problems but when i try to inject with aouto injection nothing happenes the injector is w8ing for crossfire.exe. When i swich to munual inject the resul is injecting but nothing happens mo msg box . WTF why ? is the base the problem bcs it is from 2010 ? Acctualy no erros with xtrap... or the injector sucks... so here is the code : The text down is forrbiden for Z8Games so if you, Z8Games read this su** my *** and dont read down
    Code:
    #include <windows.h>
    
    #define weaponMgr	0xA68F80
    #define noWeaponChangeDelay  0x26A0
    
    
    
    BOOL WINAPI BR (LPVOID)
    {
    	bool nwcd = true;
    while(true)
    {
    			DWORD CShell = (DWORD)GetModuleHandleA("CShell.dll");
    			DWORD pWeaponMgr = *(DWORD*)(CShell + weaponMgr);
    		
    			if(nwcd)
    			{
    			if (pWeaponMgr)
    			{
    			for(int i=0; i<576; i++)
    			{
    			if((*(DWORD*)((*(DWORD*)(pWeaponMgr))+(4*i)) ) != NULL)
    			*(float*)((*(DWORD*)((*(DWORD*)(pWeaponMgr)) +(4*i))) + noWeaponChangeDelay) = 9999;
    			}
    			}
    			}
    
    		Sleep(100);
    	}
    }
    
    bool EY(void)
    {
        if( GetModuleHandleA("CShell.dll")!= NULL)
            return true;
        return false;
    }
    
    DWORD WINAPI aR(LPVOID)
    {
    	while (!EY())
    		Sleep(200);
    	CreateThread(NULL, NULL, (LPTHREAD_START_ROUTINE)BR, NULL, NULL, NULL);
    	return 0;
    }
    
    BOOL WINAPI DllMain ( HMODULE TP, DWORD aF, LPVOID lpReserved )
    {
    	DisableThreadLibraryCalls(TP);
    	if ( aF == DLL_PROCESS_ATTACH )
    	{
    		MessageBoxA(0, "Test old base", "Injected", 0);
    		CreateThread(NULL, NULL, aR, NULL, NULL, NULL);
    	}
    	return TRUE;
    }

  2. #2
    DaRk's Avatar
    Join Date
    Dec 2010
    Gender
    male
    Location
    MPGH
    Posts
    1,910
    Reputation
    119
    Thanks
    3,986
    My Mood
    Asleep
    try renaming it to mlang.dll and put it in cf folder
    it works like sxs.dll

  3. #3
    _corn_'s Avatar
    Join Date
    Jun 2010
    Gender
    male
    Location
    0x0C482BF2
    Posts
    673
    Reputation
    13
    Thanks
    294
    My Mood
    Brooding
    @kmanev073

    Are you using code::blocks?
    if you are, change this:
    Code:
    BOOL WINAPI DllMain ( HMODULE TP, DWORD aF, LPVOID lpReserved )
    to this:
    Code:
    extern "C" __declspec(dllexport) BOOL APIENTRY DllMain ( HMODULE TP, DWORD aF, LPVOID lpReserved )
    Give that a try. Hope it helps

  4. #4
    .Radar's Avatar
    Join Date
    Dec 2011
    Gender
    male
    Location
    New World
    Posts
    329
    Reputation
    6
    Thanks
    1,955
    My Mood
    Relaxed
    if u use injector, all ways run as admin and start patcher
    .Radar aka. Arsenol
    MSN: arsenol117@live.com




  5. #5
    kmanev073's Avatar
    Join Date
    Feb 2011
    Gender
    male
    Location
    Bulgaria
    Posts
    2,400
    Reputation
    97
    Thanks
    2,537
    My Mood
    Cool
    ofc i use injector but i am xp and @_corn_ i use Microsoft Visual C++ 2010 Express

    ---------- Post added at 05:46 PM ---------- Previous post was at 05:33 PM ----------

    BTW i injected it with mlang.dll and it gaves me a send error report These errors usually appear bcs of wrong addresses . but maybe the code inject somewhere else not in the correct place ?

Similar Threads

  1. Hacks say they inject but don't
    By WOLFPACK X69X in forum Combat Arms Help
    Replies: 3
    Last Post: 04-22-2010, 10:43 PM
  2. i can inject but the arrow keys dont work?
    By tehshiz in forum CrossFire Help
    Replies: 4
    Last Post: 04-07-2010, 05:46 PM
  3. Hacks Injected, but can't bring up in game ?!
    By MDKMDK in forum Combat Arms Help
    Replies: 0
    Last Post: 12-20-2009, 03:25 PM
  4. HFV3.0 injected but nothing!!
    By lion75 in forum Battlefield Heroes Hacks
    Replies: 3
    Last Post: 07-27-2009, 12:50 PM
  5. Code all ready to inject, but still need a bit of help
    By jRah in forum General Game Hacking
    Replies: 0
    Last Post: 08-20-2008, 12:33 PM