Results 1 to 3 of 3
  1. #1
    Coders (+)_'s Avatar
    Join Date
    Jan 2010
    Location
    Earth
    Posts
    461

    Cool King - Orgy's Screenshot Cleaner Plus

    Here:

    Tested working COD4 v1.7 on Win7 32.
    Credits to King - Orgy, sycore [UC] and okidoki [UC] and etc.

    Code:
    bool ( WINAPI *orig_GetWindowThreadProcessId  ) ( HWND hWnd, LPDWORD lpdwProcessId  );
    VOID ( *Com_Frame )( VOID );
    BYTE HackEnable = 0x00;
    
    void WINAPI HackOff( void )
    {
    	Sleep( 4000 );
    	HackEnable = 0x00;
    }
    bool WINAPI GetWindowThreadProcessId_Hook( HWND hWnd, LPDWORD lpdwProcessId)
    { 
    	if( (DWORD)&lpdwProcessId > 0x000cd000 
    		&& (DWORD)&lpdwProcessId < 0x000cf000 )
    	{
    		HackEnable = 0x01;
    
    		for( int i=0;i<6;i++ ) 
    			Com_Frame( ); 
    
    		_beginthread((void (__cdecl *)(void *))HackOff, 0, NULL );
    	}
        return orig_GetWindowThreadProcessId (  hWnd,  lpdwProcessId );
    }
    
    HRESULT __stdcall EndScene_Detour(LPDIRECT3DDEVICE9 Device_Interface)
    {
    	D3DVIEWPORT9 Viewport;
    	Device_Interface->GetViewport( &Viewport );
    
    	long SCX = Viewport.Width/2;
    	long SCY = Viewport.Height/2;
    
    	if( HackEnable == 0x00 )
    	{
    		D3DCOLOR Color = D3DCOLOR_ARGB( 255, 20, 255, 20 );
    
    		D3DRECT Rect;
    		Rect.x1 = SCX - 10;
    		Rect.y1 = SCY;
    		Rect.x2 = SCX + 10;
    		Rect.y2 = SCY + 1;
    
    		Device_Interface->Clear( 1, &Rect, D3DCLEAR_TARGET, Color, 0,  0 );
    
    		Rect.x1 = SCX;
    		Rect.y1 = SCY - 10;
    		Rect.x2 = SCX + 1;
    		Rect.y2 = SCY + 10;
    
    		Device_Interface->Clear( 1, &Rect, D3DCLEAR_TARGET, Color, 0,  0 ); 
    	}
    
    	return EndScene_Pointer(Device_Interface);
    }
    
    //=====================================================================================
    
    BOOL WINAPI DllMain(HINSTANCE hinstModule, DWORD dwReason, LPVOID lpvReserved)
    {
      if(dwReason == DLL_PROCESS_ATTACH)
      {
        DisableThreadLibraryCalls(hinstModule);
    
    	Com_Frame = (void (__cdecl *)(void))0x475120;
    
    	// CoD 1 1.5 Offset = 0x43A3D0
    	// CoD 2 1.3 Offset = 0x414B20
    	// CoD 4 1.7 Offset = 0x475120
    
    	HMODULE hMod = GetModuleHandleA( "user32.dll" );
    
    	orig_GetWindowThreadProcessId = (bool (__stdcall *)(HWND,LPDWORD))
    		DetourFunction( (PBYTE)GetProcAddress( hMod, "GetWindowThreadProcessId" ), 
    			(PBYTE)GetWindowThreadProcessId_Hook );
    
        if(Direct3DCreate9_VMTable() == D3D_OK)
        return TRUE;
      }
    
      return FALSE;
    }

  2. #2

    Re: King - Orgy's Screenshot Cleaner Plus

    How this work ?

  3. #3

    Re: King - Orgy's Screenshot Cleaner Plus

    It's a hook on getwindowthreadid. The author found out that punkbusters issues a call to this process whenever it wants to take a screenshot. You hook that function and figure out when this event happens. Once this occurs, you turn of your hacks and com_frame 6 times (e.g. force the game to draw 6 more frames). So at the end (6th frame) hopefully there's no more evidence of your hack present. Also "HackEnable = 0x01;" is quite counterintuitive, as it's actually disabling the hack. Since it's from 2011, it might or might not work. Also the detoir placed is likely to be detectable by PB. Hope this clears somethings up. Regards, NightGhost

Similar Threads

  1. hey King-Orgy ?
    By onlynick in forum Call of Duty 7: Black Ops Cheats
    Replies: 2
    Last Post: August 23rd, 2011, 03:53
  2. [et] Punkbuster screenshot cleaner ??
    By newhacker in forum Anti-Cheat
    Replies: 2
    Last Post: February 21st, 2010, 15:33
  3. PB Screenshot Cleaner v1.1 [DOWNLOAD]
    By ZIMBORA in forum Enemy Territory Cheats
    Replies: 3
    Last Post: November 1st, 2009, 07:55
  4. PB Screenshot Cleaner v1.1 and wnx 1.3
    By waxwzl in forum Enemy Territory Cheats
    Replies: 7
    Last Post: September 25th, 2009, 17:22

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •