|
#include <windows.h> #define ERROR_TITLE "Key File ReverseMe" void main(void){ // GetModuleHandleA, LoadIconA, LoadCursor 생략 HANDLE hFile; BYTE buffer[70]; DWORD rCnt = 0; DWORD pbuf,Cnt; hFile = CreateFileA("Keyfile.dat",0xC0000000,0x03,0x00,0x03,0x05B9E0B9,0x00); if ( hFile == INVALID_HANDLE_VALUE ){ MessageBoxA( NULL, "Evaluation period out of date. Purchase new license", ERROR_TITLE, 0x00 ); ExitProcess(0); return; } if ( !ReadFile(hFile,buffer,0x46,&rCnt,NULL) ) goto INCORRECT_VALUE; pbuf = Cnt = 0; if ( rCnt < 0x10 ) goto INCORRECT_VALUE; while(TRUE){ if ( buffer[pbuf] == 0 ) break; else if ( buffer[pbuf] == 0x47 ) Cnt++; pbuf++; } if ( Cnt < 0x08 ) goto INCORRECT_VALUE; MessageBoxA(NULL,"You really did it! Cngratz !!!",ERROR_TITLE,0x00); ExitProcess(0); return; INCORRECT_VALUE: MessageBoxA(NULL,"Keyfile is not valid. Sorry.",ERROR_TITLE,0x00); ExitProcess(0); return; } |
[Javascript] referrer 를 통한 웹사이트 접근 금지 (6) | 2011.10.15 |
---|---|
모처럼이니까 ! (0) | 2011.08.07 |
[API] 모든 드라이브 경로 구하기 (8) | 2010.04.11 |
[업데이트] Image Downloader Beta 1.1v (4) | 2010.02.10 |
Image Downloader Beta 1.0 (8) | 2010.01.18 |
|
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | |||
5 | 6 | 7 | 8 | 9 | 10 | 11 |
12 | 13 | 14 | 15 | 16 | 17 | 18 |
19 | 20 | 21 | 22 | 23 | 24 | 25 |
26 | 27 | 28 | 29 | 30 | 31 |