Results 1 to 6 of 6
  1. #1
    gusdnide's Avatar
    Join Date
    Feb 2013
    Gender
    male
    Posts
    287
    Reputation
    15
    Thanks
    1,847
    My Mood
    Amazed

    FindPatternScanner

    What FindPattern do you use the logger?

  2. #2
    n4n033's Avatar
    Join Date
    Jan 2010
    Gender
    male
    Location
    Windows
    Posts
    1,090
    Reputation
    43
    Thanks
    2,425
    My Mood
    Cool
    Code:
    DWORD dwSize;
    DWORD dwStartAddress;
    
    BOOL bCompare(const BYTE* pData, const BYTE* bMask, const char* szMask)
    {
    	for (; *szMask; ++szMask, ++pData, ++bMask)
    	{
    		if (*szMask == 'x' && *pData != *bMask)
    			return 0;
    	}
    	return (*szMask) == NULL;
    }
    DWORD FindPattern(BYTE *bMask, char * szMask, int codeOffset, BOOL extract)
    {
    	for (DWORD i = 0; i < dwSize; i++)
    	{
    		if (bCompare((BYTE*) (dwStartAddress + i), bMask, szMask))
    		{
    			if (extract)
    			{
    				return *(DWORD*) (dwStartAddress + i + codeOffset);
    			}
    			else
    			{
    				return (DWORD) (dwStartAddress + i + codeOffset);
    			}
    		}
    	}
    	return NULL;
    }
    How to use :

    [HTML]DWORD ServerPTR = FindPattern((PBYTE)"\x83\x3D\x00\x00\xAE\x00\x00\x 74\x07\xE8\x2E\x03\x00\x00\xEB\x02", "xx??xxxxxxxxxxxx", 2, true);

    Writelog("#define ADR_SERVERPTR 0x%X", ServerPTR);[/HTML]


    The Only Bests :


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


  3. The Following User Says Thank You to n4n033 For This Useful Post:

    gusdnide (11-07-2013)

  4. #3
    gusdnide's Avatar
    Join Date
    Feb 2013
    Gender
    male
    Posts
    287
    Reputation
    15
    Thanks
    1,847
    My Mood
    Amazed
    Quote Originally Posted by n4n033 View Post
    Code:
    DWORD dwSize;
    DWORD dwStartAddress;
    
    BOOL bCompare(const BYTE* pData, const BYTE* bMask, const char* szMask)
    {
    	for (; *szMask; ++szMask, ++pData, ++bMask)
    	{
    		if (*szMask == 'x' && *pData != *bMask)
    			return 0;
    	}
    	return (*szMask) == NULL;
    }
    DWORD FindPattern(BYTE *bMask, char * szMask, int codeOffset, BOOL extract)
    {
    	for (DWORD i = 0; i < dwSize; i++)
    	{
    		if (bCompare((BYTE*) (dwStartAddress + i), bMask, szMask))
    		{
    			if (extract)
    			{
    				return *(DWORD*) (dwStartAddress + i + codeOffset);
    			}
    			else
    			{
    				return (DWORD) (dwStartAddress + i + codeOffset);
    			}
    		}
    	}
    	return NULL;
    }
    How to use :

    [HTML]DWORD ServerPTR = FindPattern((PBYTE)"\x83\x3D\x00\x00\xAE\x00\x00\x 74\x07\xE8\x2E\x03\x00\x00\xEB\x02", "xx??xxxxxxxxxxxx", 2, true);

    Writelog("#define ADR_SERVERPTR 0x%X", ServerPTR);[/HTML]
    Thank You U_u ;D

  5. #4
    AllianceCoder's Avatar
    Join Date
    Nov 2013
    Gender
    male
    Posts
    1
    Reputation
    10
    Thanks
    0
    Dont' work for me, what is the function of Writelog?
    I try this:
    Code:
     DWORD ADR_SERVERPOINTER=FindPattern((PBYTE)"\x83\x3D\x00\x00\xAE\x00\x00\x74\x07\xE8\x2E\x03\x00\x00\xEB\x02","xx??xxxxxxxxxxxx",2,true);
    
       ofstream file;
       file.open("C:\\Users\\....\\Desktop\\Alliance_Addys.txt");
       file<<"#define ADR_SERVERPOINTER "<<ADR_SERVERPOINTER;
       file.close();
       Sleep(100);
       ExitProcess(0);
    But the output is:
    Code:
    #define ADR_SERVERPOINTER 0
    Last edited by AllianceCoder; 11-08-2013 at 09:21 AM.

  6. #5
    n4n033's Avatar
    Join Date
    Jan 2010
    Gender
    male
    Location
    Windows
    Posts
    1,090
    Reputation
    43
    Thanks
    2,425
    My Mood
    Cool
    Quote Originally Posted by AllianceCoder View Post
    Dont' work for me, what is the function of Writelog?
    I try this:
    Code:
     DWORD ADR_SERVERPOINTER=FindPattern((PBYTE)"\x83\x3D\x00\x00\xAE\x00\x00\x74\x07\xE8\x2E\x03\x00\x00\xEB\x02","xx??xxxxxxxxxxxx",2,true);
    
       ofstream file;
       file.open("C:\\Users\\....\\Desktop\\Alliance_Addys.txt");
       file<<"#define ADR_SERVERPOINTER "<<ADR_SERVERPOINTER;
       file.close();
       Sleep(100);
       ExitProcess(0);
    But the output is:
    Code:
    #define ADR_SERVERPOINTER 0
    https://www.mpgh.net/forum/242-crossf...dy-logger.html

    just modif it a bit


    The Only Bests :


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


  7. #6