Demo entry 6637999

asd

   

Submitted by 123 on Sep 06, 2017 at 06:33
Language: Python 3. Code size: 702 Bytes.

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22	char* WINAPI MyMapViewOfFile(HANDLE hFileMappingObject, DWORD dwDesiredAccess, D
WORD dwFileOffsetHigh, DWORD dwFileOffsetLow, SIZE_T dwNumberOfBytesToMap){
    
    char * buf=((PFMapViewOfFile)g_pOrgFunc)(hFileMappingObject, dwDesiredAccess, dwFil
eOffsetHigh, dwFileOffsetLow, dwNumberOfBytesToMap);
 
    int i = 0;
    int nLen = strlen(buf);    //strlen과 같은 역할
 
    if(str != NULL){
        free(str);
    }
    str=(char*)malloc(sizeof(buf));
    for(i=0;i<nLen;i++){
        // 임시 버퍼에 xor 연산 결과를 저장
        str[i]=buf[i]^0x0f;
    }
    
    //MessageBoxA(NULL,buf,buf,0);

    return str;
}	

This snippet took 0.00 seconds to highlight.

Back to the Entry List or Home.

Delete this entry (admin only).