New Method FindPattner

Posts 1–8 of 8 · Page 1 of 1
New Method FindPattner
Anyone have new Method for FindPattern.
The xTrap ver 15832 has been detected my method. I can't make new Sig or FindPattern.
I'm using this but Detected.:
Code:
bool mEsp::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 mEsp::FindPattern(DWORD dwAddress,DWORD dwLen,BYTE *bMask,char * szMask)
{
	for(DWORD i=0; i<dwLen; i++)
		if (cEsp.bCompare((BYTE*)(dwAddress+i),bMask,szMask))  return (DWORD)(dwAddress+i);
	return 0;
}
Search:
Code:
BASE_001		= cEsp.FindPattern(HOOKSHELL,0xFFFFFF,(unsigned char*)"\xB9\x00\x00\x00\x00\", "x????");
If make new Sig. I'ts still detected.
Anyone help ?
lol , it's not detected for me
PS : that's wrong section !!!!!!
its not detected.
probably other piece of code is detected.
have you tried creating an empty dll, with just these 2 functions?
Quote Originally Posted by giniyat101 View Post
its not detected.
probably other piece of code is detected.
have you tried creating an empty dll, with just these 2 functions?
Quote Originally Posted by rabir007 View Post


The way i re-created the FindPattern in C#
Code:
private static unsafe uint FindPattern(int StartAddress, int Length, string bMask, string szMask)
        {
            byte[] ByteMask = new byte[szMask.Length];

            //Creating Byte Array
            int State = 0;
            for (int i = 0; i < bMask.Length; i++)
            {
                if (bMask[i] == 'x')
                {
                    ByteMask[State] = byte.Parse(bMask.Substring(i + 1, 2), System.Globalization.NumberStyles.HexNumber);
                    State++;
                }

            }

            //Searching Byte Pattern
            for (int i = 0; i < Length; i++)
            {
                bool Found = true;
                for (int j = 0; j < ByteMask.Length; j++)
                {
                    Found = Found && ((ByteMask[j] == *(byte*)(StartAddress + i + j)) || szMask[j] == '?');
                }
                if (Found) return (uint)(StartAddress + i); //Found it
            }
            return 0; //Didn't found it
But i think, something else being detected...
My hook still undetecting. But I use with this FindPatern. the xTrap detected.
I'm tried many way but still detected. @giniyat101 @rabir007
Any Idea ?
Quote Originally Posted by ***** View Post
My hook still undetecting. But I use with this FindPatern. the xTrap detected.
I'm tried many way but still detected. @giniyat101 @rabir007
Any Idea ?
iam still sure of what i said.
btw : your pattern looks totally wrong, those ???? are pointless, so, you are just searching for 1 byte with value 0xB9
the first location in current CFNA cshell.dll is at $2242 .. are you sure this one is what you want?
Quote Originally Posted by ***** View Post
Anyone have new Method for FindPattern.
The xTrap ver 15832 has been detected my method. I can't make new Sig or FindPattern.
I'm using this but Detected.:
Code:
bool mEsp::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 mEsp::FindPattern(DWORD dwAddress,DWORD dwLen,BYTE *bMask,char * szMask)
{
    for(DWORD i=0; i<dwLen; i++)
        if (cEsp.bCompare((BYTE*)(dwAddress+i),bMask,szMask))  return (DWORD)(dwAddress+i);
    return 0;
}
Search:
Code:
BASE_001        = cEsp.FindPattern(HOOKSHELL,0xFFFFFF,(unsigned char*)"\xB9\x00\x00\x00\x00\", "x????");
If make new Sig. I'ts still detected.
Anyone help ?
The way i re-created the FindPattern in C#
Code:
private static unsafe uint FindPattern(int StartAddress, int Length, string bMask, string szMask)
        {
            byte[] ByteMask = new byte[szMask.Length];

            //Creating Byte Array
            int State = 0;
            for (int i = 0; i < bMask.Length; i++)
            {
                if (bMask[i] == 'x')
                {
                    ByteMask[State] = byte.Parse(bMask.Substring(i + 1, 2), System.Globalization.NumberStyles.HexNumber);
                    State++;
                }

            }

            //Searching Byte Pattern
            for (int i = 0; i < Length; i++)
            {
                bool Found = true;
                for (int j = 0; j < ByteMask.Length; j++)
                {
                    Found = Found && ((ByteMask[j] == *(byte*)(StartAddress + i + j)) || szMask[j] == '?');
                }
                if (Found) return (uint)(StartAddress + i); //Found it
            }
            return 0; //Didn't found it
But i think, something else being detected...
find pattern isn't detected !!!
how can it be detected for u !?!
Posts 1–8 of 8 · Page 1 of 1
This thread is closed for replies.

Similar Threads

Talk with us