Thread: [Source Code]

Results 1 to 4 of 4
  1. #1
    emmsk8's Avatar
    Join Date
    Mar 2014
    Gender
    male
    Posts
    4
    Reputation
    10
    Thanks
    489
    My Mood
    Inspired

    [Source Code]

    [EmzWall] try this code... gdlck!!!! Assault Fire
    Code:
    DWORD ProcurarDevice(DWORD Len)
    {
    DWORD dwObjBase = 0;
    
    dwObjBase = (DWORD)LoadLibrary("d3d9.dll");
    while (dwObjBase++ < dwObjBase + Len)
    {
    if ( (*(WORD*)(dwObjBase + 0x00)) == 0x06C7
    && (*(WORD*)(dwObjBase + 0x06)) == 0x8689
    && (*(WORD*)(dwObjBase + 0x0C)) == 0x8689
    ) { dwObjBase += 2; break; }
    }
    return( dwObjBase );
    }
    DWORD PegarEndrDevice(int VTableIndex)
    {
    PDWORD VTable;
    *(DWORD*)&VTable = *(DWORD*)ProcurarDevice(0x128000);
    return VTable[VTableIndex];
    }
    
    // pReset = (Reset_t)DetourFunction((PBYTE)PegarEndrDevice(16),(PBYTE)nReset);
    ------------------------------------------------------------------------------------------------------------------
    Code:
    DWORD ProcurarDevice(DWORD Len)
    {
    DWORD dwObjBase = 0;
    
    dwObjBase = (DWORD)LoadLibrary("d3d9.dll");
    while (dwObjBase++ < dwObjBase + Len)
    {
    if ( (*(WORD*)(dwObjBase + 0x00)) == 0x06C7
    && (*(WORD*)(dwObjBase + 0x06)) == 0x8689
    && (*(WORD*)(dwObjBase + 0x0C)) == 0x8689
    ) { dwObjBase += 2; break; }
    }
    return( dwObjBase );
    }
    
    void Hook()
    {
    PDWORD VTable;
    *(DWORD*)&VTable = *(DWORD*)ProcurarDevice(0x128000);
    pEndScene = (tEndScene) DetourFunction((PBYTE)VTable[ENDSCENE], (PBYTE)EndScene);
    Sleep( 100 );
    }
    
    Tenprotect sucks hard.
    Thats how i logged them, just add something to write it down at the end of logging:
    
    	}
                    found=false;
    		iNum = lNum.begin();
    		iPrim = lPrim.begin();
    		for(int i=0;i < LoggedN;i++)
    		{
    			if(*iNum==NumVertices)
    			{
    				found=true;
    				break;
    			}
    			LoggedN++;
    			iNum++;
    		}
    		if(found==false)
    		{
    			lNum.push_back(NumVertices);
    		}
    		found=false;
    		for(int i=0;i < LoggedN;i++)
    		{
    			if(*iPrim==PrimitiveCount)
    			{
    				found=true;
    				break;
    			}
    			LoggedP++;
    			iPrim++;
    		}
    		if(found==true)
    		{
    			lPrim.push_back(PrimitiveCount);
    			found=false;
    		}
    
    	}
    -----------------------------------------------------------------------------------------------------------
    maybe someone else is interested, in a different method of logging:
    The save function:
    Code:
    if(Cheats.Coding.WriteThemDown)
    	{
    		Cheats.Coding.GetThem=0;
    		Menu.WriteLog("Sizeof lPrim: %i",sizeof(lPrim));
    		Menu.WriteLog("Sizeof lNum: %i",sizeof(lNum));
    		char Temp[2048];;
    		DbWrite("Logged %i Prims & %i Nums",LoggedP,LoggedN);
    		std::list<UINT>::iterator iiPrim = lPrim.begin();
    		std::list<UINT>::iterator iiNum = lNum.begin();
    		sprintf_s(Temp,sizeof(Temp),"#define Prims (");
    		for(int i=0;i < LoggedP;i++)
    		{
    
    			sprintf_s(Temp,sizeof(Temp),"%s(PrimitiveCount==%i)||",Temp,*iiPrim);
    			iiPrim++;
    		}
    		sprintf_s(Temp,sizeof(Temp),"%s)",Temp);
    		Menu.WriteLog(Temp);
    		sprintf_s(Temp,sizeof(Temp),"#define Nums (");
    		for(int i=0;i < LoggedN;i++)
    		{
    
    			sprintf_s(Temp,sizeof(Temp),"%s(NumVertices==%i)||",Temp,*iiNum);
    			iiNum++;
    		}
    		sprintf_s(Temp,sizeof(Temp),"%s)",Temp);
    		Menu.WriteLog(Temp);
    		Cheats.Coding.WriteThemDown = 0;
    		MessageBoxA(0,"Logging success!","Yai",MB_OK);
    	}
    Last edited by Lovroman; 09-03-2014 at 03:14 AM.

  2. #2
    DjLvke's Avatar
    Join Date
    May 2014
    Gender
    male
    Posts
    23
    Reputation
    10
    Thanks
    126
    My Mood
    Breezy
    Not Working to me .. ive got some errors..


    Add me On Facebook


    [ Graphic Designer ]


  3. #3
    Lovroman's Avatar
    Join Date
    Sep 2012
    Gender
    male
    Posts
    9,424
    Reputation
    611
    Thanks
    11,789
    My Mood
    Cheerful
    Quote Originally Posted by DjLvke View Post
    Not Working to me .. ive got some errors..
    Post the errors and someone of us will probably help you..

  4. #4
    DjLvke's Avatar
    Join Date
    May 2014
    Gender
    male
    Posts
    23
    Reputation
    10
    Thanks
    126
    My Mood
    Breezy
    Thank for give some tips to me sr [MPGH]Lovroman but this not important to me .. infact i have more source codees .. thank you..


    Add me On Facebook


    [ Graphic Designer ]


  5. The Following User Says Thank You to DjLvke For This Useful Post:

    Lovroman (10-15-2014)

Similar Threads

  1. [TUT] arnold's hack v1.1 vb6 source code
    By arnold in forum WarRock - International Hacks
    Replies: 6
    Last Post: 07-11-2008, 10:36 PM
  2. Stamina Hack and source code ?
    By Teh Sasuke in forum C++/C Programming
    Replies: 0
    Last Post: 12-31-2007, 05:08 PM
  3. [Release] ****** DLL Source Code
    By OneWhoSighs in forum WarRock - International Hacks
    Replies: 20
    Last Post: 10-25-2007, 07:41 AM
  4. keylogger source code
    By obsedianpk in forum WarRock - International Hacks
    Replies: 8
    Last Post: 10-24-2007, 02:31 PM
  5. HALO 2 (XBOX) Source Code
    By mirelesmichael in forum General Game Hacking
    Replies: 12
    Last Post: 09-23-2006, 04:35 AM