Results 1 to 3 of 3
  1. #1
    rentzo's Avatar
    Join Date
    Nov 2010
    Gender
    male
    Posts
    6
    Reputation
    10
    Thanks
    1

    D3D Device Signature Scan!

    Hey guys. I am having a bit of trouble with the d3d device signature scan.

    Help please.
    Last edited by rentzo; 11-28-2010 at 08:04 PM.

  2. #2
    whit's Avatar
    Join Date
    Jan 2010
    Gender
    male
    Posts
    7,170
    Reputation
    490
    Thanks
    2,252
    Put help instead of release..

  3. #3
    freedompeace's Avatar
    Join Date
    Jul 2010
    Gender
    female
    Posts
    3,035
    Reputation
    340
    Thanks
    2,784
    My Mood
    Sad
    And also, wrong section.

    Anyway, here's what you're looking for.

    Code:
    bool bCompare(const BYTE* pData, const BYTE* bMask, const char* szMask)
    {
    	for(; *szMask; ++szMask, ++pData, ++bMask)
    		if(*szMask == 'x' && *pData != *bMask)   
    			return false;
    	return (*szMask) == NULL;
    }
    
    
    DWORD FindPattern(DWORD dValor,DWORD dLer,BYTE *bMaskara,char * szMaskara)
    {
    	for (DWORD i=0; i < dLer; i++)
    		if (bCompare((PBYTE)(dValor + i), bMaskara, szMaskara))
    			return (DWORD)(dValor + i);
    	return false;
    }
    
    DWORD DevPtr = FindPattern(D3DBase, 0x128000, (PBYTE)"\xC7\x06\x00\x00\x00\x00\x89\x86\x00\x00\x00\x00\x89\x86", "xx????xx????xx");