Results 1 to 4 of 4
  1. #1
    hack4me's Avatar
    Join Date
    Feb 2011
    Gender
    male
    Location
    Colorado
    Posts
    34
    Reputation
    9
    Thanks
    37
    My Mood
    Cool

    Sig Scan Detected...

    Just to let you know this code for sig scanning is detected by HackShield..


    Code:
    /DWORD Pattern(DWORD dwAddress,DWORD dwLen,BYTE *bMask,char * szMask);
    bool Compare(const BYTE* pData, const BYTE* bMask, const char* szMask);
    
     The code below is used for signature scanning....
    bool Compare(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 Pattern(DWORD dwAddress,DWORD dwLen,BYTE *bMask,char * szMask)
    {
    	for(DWORD i=0; i<dwLen; i++)
    		if (Compare((BYTE*)(dwAddress+i),bMask,szMask)) return (DWORD)(dwAddress+i);
    	return 0;
    }

  2. #2
    whit's Avatar
    Join Date
    Jan 2010
    Gender
    male
    Posts
    7,170
    Reputation
    490
    Thanks
    2,252
    I think you gotta encrypt your mask

  3. #3
    Grim's Avatar
    Join Date
    Jul 2009
    Gender
    male
    Posts
    5,362
    Reputation
    112
    Thanks
    3,781
    My Mood
    Cynical
    Quote Originally Posted by hack4me View Post
    Just to let you know this code for sig scanning is detected by HackShield..


    Code:
    /DWORD Pattern(DWORD dwAddress,DWORD dwLen,BYTE *bMask,char * szMask);
    bool Compare(const BYTE* pData, const BYTE* bMask, const char* szMask);
     
     The code below is used for signature scanning....
    bool Compare(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 Pattern(DWORD dwAddress,DWORD dwLen,BYTE *bMask,char * szMask)
    {
        for(DWORD i=0; i<dwLen; i++)
            if (Compare((BYTE*)(dwAddress+i),bMask,szMask)) return (DWORD)(dwAddress+i);
        return 0;
    }
    im not even gonna bother attempting to help... its just sad.
    Want to see my programs?
    \/ CLICK IT BITCHES \/

  4. #4
    topblast's Avatar
    Join Date
    Mar 2010
    Gender
    male
    Location
    Far from around you Programmer: C++ | VB | C# | JAVA
    Posts
    3,607
    Reputation
    149
    Thanks
    4,922
    My Mood
    Cool
    Quote Originally Posted by Grim View Post

    im not even gonna bother attempting to help... its just sad.
    That was so GRIM
    I just like programming, that is all.

    Current Stuff:

    • GPU Programmer (Cuda)
    • Client/Server (Cloud Server)
    • Mobile App Development