|
发表于 2012-9-5 20:36:02
|
显示全部楼层
本帖最后由 五月跳回家 于 2012-9-6 01:53 编辑
小甲鱼 发表于 2012-9-5 19:02
视频还没出啊,先传试验程序上来是让大家可以边看视频边自己操作下的。

- #include<windows.h>
- int APIENTRY WinMain(HINSTANCE hInstance,
- HINSTANCE hPrevInstance,
- LPSTR lpCmdLine,
- int nCmdShow)
- {
- char key[100];
- int ebx=0,esi;
- HANDLE eax = CreateFile("keyfile.dat",
- GENERIC_READ|GENERIC_WRITE,
- FILE_SHARE_READ|FILE_SHARE_WRITE,
- NULL,
- OPEN_EXISTING,
- FILE_ATTRIBUTE_NORMAL|FILE_FLAG_OVERLAPPED,
- NULL);
- if(eax == INVALID_HANDLE_VALUE)
- {
- MessageBox(0,"Evaluation period out of date. Purchase new license","Key File ReverseMe",0);
- return 0;
- }
- DWORD readsize=0;
- ReadFile(eax,key,70,&readsize,NULL);
- if(readsize<0x10)
- goto X;
- esi=0;
- while(key[ebx])
- {
- if(key[ebx]=='G')
- esi++;
- ebx++;
- }
- if(esi>8)
- X:MessageBox(NULL,"keyfile is not valid.sorry","key file reverseme",MB_OK|MB_APPLMODAL);
- else
- MessageBox(NULL,"You really did it!Congratz !!!","key file reverseme",MB_OK|MB_APPLMODAL);
-
- return 0;
- }
复制代码 老大看看对不对对的话赏我两个鱼币  |
评分
-
查看全部评分
|