Page 1 of 2 12 LastLast
Results 1 to 15 of 20
  1. #1
    Aeir's Avatar
    Join Date
    Dec 2011
    Gender
    female
    Posts
    62
    Reputation
    7
    Thanks
    185
    My Mood
    Aggressive

    Color Chams - Source Code -

    IDC
    __
    Credits : IDK/ who ever you want pssh shit say it's you..
    Please don't click thanks, cuz you know the credits are to you...
    __

    need me post more source codes...


    if you don't get this at all or maybe your like wtf, what i need to do get shit work on my base? - just look at the shit and take the meat out ok =/
    if still need help reply and i post diff way for them noobs,
    gl
    Code:
    UINT m_Stride;
    D3DPRIMITIVETYPE Type; 
    INT BaseVertexIndex; 
    UINT MinVertexIndex; 
    UINT NumVertices; 
    UINT startIndex;
    UINT primCount;
    
    	#define RED2			D3DCOLOR_ARGB(100, 255, 000, 000)
    DWORD dwOldZEnable = D3DZB_TRUE;
    	LPDIRECT3DTEXTURE9 White2,Red2,Green2,Blue2,Black2,Purple2,Grey2,Yellow2,Orange2;
    	LPDIRECT3DVERTEXBUFFER9 StreamData;
    UINT OffsetInBytes;
    
    		
    
    
    typedef HRESULT (WINAPI* tPresent)(LPDIRECT3DDEVICE9 pDevice,CONST RECT *pSourceRect, CONST RECT *pDestRect, HWND hDestWindowOverride, CONST RGNDATA *pDirtyRegion);
    tPresent oPresent;
    
    typedef HRESULT (WINAPI* tReset)(LPDIRECT3DDEVICE9 pDevice,D3DPRESENT_PARAMETERS* Parametri);
    tReset oReset;
    
    typedef HRESULT (WINAPI* oDrawIndexedPrimitive) ( LPDIRECT3DDEVICE9 pDevice,D3DPRIMITIVETYPE Type,INT BaseVertexIndex,UINT MinVertexIndex,UINT NumVertices,UINT startIndex,UINT primCount );
    oDrawIndexedPrimitive pDrawIndexedPrimitive;
    
    
    void CreateDev(DWORD * dwVTable){
    LPDIRECT3D9 pD3d9 = NULL;
    LPDIRECT3DDEVICE9 pD3DDevice = NULL;
    pD3d9 = Direct3DCreate9(D3D_SDK_VERSION);
    if(pD3d9 == NULL){
    return;
    }
    D3DPRESENT_PARAMETERS pPresentParms;
    ZeroMemory(&pPresentParms,sizeof(pPresentParms));
    pPresentParms.Windowed = TRUE;
    pPresentParms.BackBufferFormat = D3DFMT_UNKNOWN;
    pPresentParms.SwapEffect = D3DSWAPEFFECT_DISCARD;
    if(FAILED(pD3d9->CreateDevice(D3DADAPTER_DEFAULT,D3DDEVTYPE_HAL,GetDesktopWindow(),D3DCREATE_SOFTWARE_VERTEXPROCESSING,&pPresentParms,&pD3DDevice))){
    return;
    }
    DWORD * dwTable = ( DWORD* )pD3DDevice;
    dwTable = ( DWORD* ) dwTable[0];
    dwVTable[0] = dwTable[16];
    dwVTable[1] = dwTable[17];
    }
    
    void *Salta(BYTE *src,const BYTE *dst,const int len){
    BYTE *jmp = (BYTE*)malloc(len+5);
    DWORD dwback;
    VirtualProtect(src, len, PAGE_READWRITE, &dwback);
    memcpy(jmp, src, len); jmp += len;
    jmp[0] = 0xE9;
    *(DWORD*)(jmp+1) = (DWORD)(src+len - jmp) - 5;
    src[0] = 0xE9;
    *(DWORD*)(src+1) = (DWORD)(dst - src) - 5;
    VirtualProtect(src, len, dwback, &dwback);
    return (jmp-len);
    }
    
    
    HRESULT WINAPI hkReset(LPDIRECT3DDEVICE9 pDevice, D3DPRESENT_PARAMETERS* Parametri){
    _asm NOP;
    
    d3dfont->OnLostDevice();
    
    HRESULT hTorna = oReset(pDevice, Parametri);
    
    if(SUCCEEDED(hTorna)){
    d3dfont->OnResetDevice();
    }
    return hTorna;
    }
    class cHelper
    	{
    	public:
    		DWORD FindDevice(DWORD Len);
    		VOID HideDLL(HINSTANCE hModule);
    		void EraseHeader(HINSTANCE hModule);
    		VOID StarLog(HMODULE hDll);
    		VOID __cdecl cHelper::WriteLog (const char *fmt, ...);
    		CHAR* Decrypt(const char* plaintext);
    		CHAR* Encrypt(const char* plaintext);
    		CHAR * GetTime();
    		BOOL CheckVersion();
    		INT URLGetPage(char *link, char *buffer, int maxsize);
    		BOOL cHelper::_cCompareHost( char *HostName );
    	private:
    		CHAR * GetDirectoryFile(char *filename);
    	};
    
    
    DWORD cHelper::FindDevice(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 );
    }
    HRESULT WINAPI myDrawIndexedPrimitive(LPDIRECT3DDEVICE9 pDevice, D3DPRIMITIVETYPE Type, INT BaseVertexIndex, UINT MinVertexIndex, UINT NumVertices, UINT startIndex, UINT primCount)
    {
    	
    	
    //THIS IS TO DRAW BASIC CHAMS - 
    	
    	if(pDevice->GetStreamSource(0,&StreamData,&OffsetInBytes,&m_Stride) == D3D_OK) 
    	{
    		StreamData->Release();
    
    	}
    //the chams --> white ok? 
    if(IsIngame() &&cBox[24].OnOff == 1)
    						{
    								if( (m_Stride == 36) || (m_Stride == 32) || (m_Stride == 44))
    		{
    			
    			pDevice->SetRenderState(D3DRS_ZENABLE, 0);
    			 pDevice->SetTexture(0,Red2);
    			 	pDrawIndexedPrimitive(pDevice, Type, BaseVertexIndex, MinVertexIndex, NumVertices, startIndex, primCount);
    			pDevice->SetRenderState(D3DRS_ZENABLE, 1);
    			pDevice->SetTexture(0,Red2);
    								}
    
    								
    
    }
    
    
    return pDrawIndexedPrimitive(pDevice, Type, BaseVertexIndex, MinVertexIndex, NumVertices, startIndex, primCount);
    
    }
    
    DWORD cDetours::CreateDIP_JMP_EAX( DWORD  SrcVA, DWORD  DstVA, DWORD  Size )
    {
    
    	DWORD DetourVA, dwProtect, i;
    
    #define SIZEOF_MOVEAX_JMPEAX 6
    
    	if ( SrcVA && DstVA && Size >= SIZEOF_MOVEAX_JMPEAX )
    	{
    		DetourVA = (DWORD) VirtualAlloc( 
    			NULL, Size + SIZEOF_MOVEAX_JMPEAX, 
    			MEM_COMMIT, PAGE_EXECUTE_READWRITE );
    
    		if ( DetourVA && VirtualProtect( (VOID*)SrcVA, Size, PAGE_EXECUTE_READWRITE, &dwProtect ) )
    		{
    			for ( i=0; i < Size; i++ ) {
    				*(BYTE*)( DetourVA + i ) = *(BYTE*)( SrcVA + i );
    			}
    			
    			*(BYTE*)( DetourVA + Size + 0 ) = 0xB8;
    			*(DWORD*)( DetourVA + Size + 1 ) = ( SrcVA + Size );
    			*(WORD*)( DetourVA + Size + 5 ) = 0xE0FF;
    
    			*(BYTE*)( SrcVA + 0 ) = 0xB8;
    			*(DWORD*)( SrcVA + 1 ) = ( DstVA );
    			*(WORD*)( SrcVA + 5 ) = 0xE0FF;
    
    			VirtualProtect( (VOID*)SrcVA, Size, dwProtect, &dwProtect );
    
    			VirtualProtect( (VOID*)DetourVA, Size + 
    				SIZEOF_MOVEAX_JMPEAX, PAGE_EXECUTE_READ, &dwProtect );
    
    	    	return DetourVA;
    		}
    		Sleep(3);
    	}
    	return (0);
    }
    DWORD dwVTable[82] = {0};
    HRESULT WINAPI hkPresent(LPDIRECT3DDEVICE9 pDevice,CONST RECT *pSourceRect, CONST RECT *pDestRect, HWND hDestWindowOverride, CONST RGNDATA *pDirtyRegion){
    _asm PUSHAD;
    menu->RenderMenu(pDevice);
    menu->********(pDevice);
    //menu->TeleKillFull();
    
    menu->Ghostmode1(pDevice);
    _asm POPAD;
    return oPresent(pDevice, pSourceRect,  pDestRect,  hDestWindowOverride,  pDirtyRegion);
    }
    
    
    DWORD WINAPI Wait(LPVOID lpArgs){
    DWORD dwD3D9 = NULL;
    while(!dwD3D9){
    Sleep(20);
    dwD3D9 = (DWORD)GetModuleHandleA("d3d9.dll");
    }
    
    	PDWORD VTable;
    	cHelper *cHelpers;
        *(DWORD*)&VTable = *(DWORD*)cHelpers->FindDevice(0x128000);
    
        if(VTable == NULL)
    	{
    		MessageBox(NULL,"D3DDevice Pointer Not Found!",0,MB_ICONSTOP);
            ExitProcess(0);
    	}
    
    	
    
    CreateDev( dwVTable );
    oReset = ( tReset ) cDetour->CreateJMP_REL(( DWORD ) dwVTable[0], ( DWORD ) &hkReset ,5);
    oPresent = ( tPresent )cDetour->CreateJMP_REL(( DWORD ) dwVTable[1], ( DWORD ) &hkPresent ,5);
    pDrawIndexedPrimitive=(oDrawIndexedPrimitive)cDetour->CreateJMP_EAX((DWORD)dwVTable[82],(DWORD)myDrawIndexedPrimitive,5);
    
    while(1)
    {
        if(memcmp((void *)VTable[82], (void *)"\x8B\xFF", 2) == 0 )
    	{
    		pDrawIndexedPrimitive=(oDrawIndexedPrimitive)cDetour->CreateDIP_JMP_EAX((DWORD)VTable[82],(DWORD)myDrawIndexedPrimitive,12);
    	}
        Sleep(500);
    }
    
    return 0;
    }
    BOOL APIENTRY DllMain( HMODULE hModule, DWORD dwReason, LPVOID lpReserved ){
    if ( dwReason == DLL_PROCESS_ATTACH ){
    	
    CreateThread( NULL, NULL, &Wait, NULL, NULL, NULL );
    //CreateThread(NULL, NULL,(LPTHREAD_START_ROUTINE)TELEKILL, NULL, NULL, NULL);
    }
    return TRUE;
    }
    FUCK THE WORLD
    NOOB VERSION
    Code:
       /Mod Took it out tehe
    Last edited by Aeir; 03-25-2012 at 09:17 AM.

  2. The Following 2 Users Say Thank You to Aeir For This Useful Post:

    CodeDelta (03-24-2012),FR1GHT (04-08-2012)

  3. #2
    gotter's Avatar
    Join Date
    Mar 2008
    Gender
    male
    Location
    Minecraft snowy Biome
    Posts
    360
    Reputation
    6
    Thanks
    151
    /INB4FLAME
    why would you post that ? CA IS FUCKED AGAIN NOW

  4. #3
    Aeir's Avatar
    Join Date
    Dec 2011
    Gender
    female
    Posts
    62
    Reputation
    7
    Thanks
    185
    My Mood
    Aggressive
    Quote Originally Posted by gotter View Post
    /INB4FLAME
    why would you post that ? CA IS FUCKED AGAIN NOW
    It's not fucked, it perfectly fine. The best part this shit has been working for over 1-2 years now.
    Last edited by Aeir; 03-24-2012 at 06:21 PM.

  5. #4
    BACKD00R's Avatar
    Join Date
    Jan 2010
    Gender
    male
    Location
    Brazil
    Posts
    10,709
    Reputation
    1814
    Thanks
    31,799
    My Mood
    Drunk
    I'm seeing BR strings in the code!



     

    Skype : BACKD00R-MPGH

     

    • Contributor: October, 31th 2011
    • CA BR Minion: January, 03th 2012
    • CF AL Minion: April, 07th 2012
    • CA Minion: April, 15th 2012
    • CF Minion: July, 03th 2012
    • PB Minion: January, 25th 2013
    • AVA Minion : February, 02th 2013
    • Arctic Combat minion: April, 03th 2013
    • Warface Minion: April, 03th 2013

    • Minion + : July 08th 2012
    • Moderator : January 21th 2013
    • Global Moderator : August 1st 2013







  6. #5
    CodeDelta's Avatar
    Join Date
    Mar 2012
    Gender
    male
    Location
    Engine.exe
    Posts
    35
    Reputation
    33
    Thanks
    7
    My Mood
    Yeehaw
    @Aeir
    What's your MSN?
    Your skills impress me
    and also thanks for the code.
    D.I.P Hook Included?
    Or do the noobs need to have it first
    DeltaByte
    "Simplicity at its' best."Coming Soon.
    ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
    Skills:
    [x]= Yes.
    [o]= No.

    Know C++: [x]
    Know Basics of D3D Menu Creation: [x](Still learning .)
    Make CA Hacks: [x](GodMode,Telekill, etc,.)
    Video Editor: [x](AAE,Sony Vegas, Cinema 4D.)

    ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
    Need Help?
    Contact me via MSN @ CodeDelta1@hotmail.com
    Info About MySelf:
    My goal is to supply this community with my contribution of helping others and releasing amazing hacks.



  7. #6
    FinalHazard_'s Avatar
    Join Date
    Mar 2012
    Gender
    male
    Location
    ALT + F4
    Posts
    320
    Reputation
    62
    Thanks
    130
    My Mood
    Cynical
    Color Chams for free

  8. #7
    Aeir's Avatar
    Join Date
    Dec 2011
    Gender
    female
    Posts
    62
    Reputation
    7
    Thanks
    185
    My Mood
    Aggressive
    It has all items you need, - posted noob version and again

    backstabbers
    Last edited by Aeir; 03-24-2012 at 09:41 PM.

  9. #8
    johwsouza's Avatar
    Join Date
    Oct 2010
    Gender
    male
    Posts
    295
    Reputation
    10
    Thanks
    52
    My Mood
    Daring
    @Aeir color chams does not appear.
    testing in CABR

    #Sorry, I'm using GoogleTranslate for help

  10. #9
    supercarz1991's Avatar
    Join Date
    Jul 2010
    Gender
    male
    Location
    North of Hell, South of Heaven
    Posts
    6,067
    Reputation
    323
    Thanks
    3,323
    My Mood
    Doh
    my dip hook shits on this :P its like 25 times less the code

    commando: You're probably the best non-coder coder I know LOL


  11. #10
    Aeir's Avatar
    Join Date
    Dec 2011
    Gender
    female
    Posts
    62
    Reputation
    7
    Thanks
    185
    My Mood
    Aggressive
    a code is a code, it just has to get the job done. And am not helping anyone to get shit working it's super basic

  12. #11
    xAced's Avatar
    Join Date
    Jan 2012
    Gender
    male
    Posts
    14
    Reputation
    10
    Thanks
    83
    My Mood
    Amused
    Ty is DIP hook Included?

  13. #12
    Reflex-'s Avatar
    Join Date
    Mar 2011
    Gender
    male
    Location
    192.168.1.01
    Posts
    6,633
    Reputation
    584
    Thanks
    2,261
    My Mood
    Dead
    Quote Originally Posted by xAced View Post
    Ty is DIP hook Included?
    Have you looked at the Code?

  14. #13
    Aeir's Avatar
    Join Date
    Dec 2011
    Gender
    female
    Posts
    62
    Reputation
    7
    Thanks
    185
    My Mood
    Aggressive
    =_= i just post them wit out dip yep yep

  15. #14
    n4n033's Avatar
    Join Date
    Jan 2010
    Gender
    male
    Location
    Windows
    Posts
    1,081
    Reputation
    43
    Thanks
    2,230
    My Mood
    Cool
    Chams Colored Source is Same For War Rock, CA & More Games I Guess


    The Only Bests :


    R3d_L!n3(Fares)
    Aeroman (Brent)
    TheCamels8 (Ori)


  16. #15
    leonardoferro's Avatar
    Join Date
    Dec 2011
    Gender
    male
    Posts
    22
    Reputation
    10
    Thanks
    1
    Good Job Friend!
    [X] Ser usuario iniciante em C++
    [ ] Ser usuario InterMediario em C++
    [ ] Ser usuario Avançado em C++

Page 1 of 2 12 LastLast

Similar Threads

  1. [Source Code] CoD4 Chams Source Code
    By JoEyHaX in forum Call of Duty 4 - Modern Warfare (MW) Hacks
    Replies: 7
    Last Post: 08-17-2012, 05:00 AM
  2. [Request] D3D Chams Source Code C++ 2010
    By enverheckir in forum CrossFire Hack Coding / Programming / Source Code
    Replies: 6
    Last Post: 12-14-2011, 08:17 AM
  3. [Release] Chams Source Code
    By D3t0N4t3 in forum WarRock Hack Source Code
    Replies: 10
    Last Post: 03-10-2011, 06:29 AM
  4. [Kinda Release]AVA Chams Source Code
    By noleash in forum Alliance of Valiant Arms (AVA) Coding / Source Code
    Replies: 14
    Last Post: 11-30-2010, 03:14 PM
  5. Cham Colors And Their Codes
    By Zhellbound in forum Combat Arms Hacks & Cheats
    Replies: 4
    Last Post: 11-10-2008, 09:21 AM