请编程高手帮阅读下面内容并解释下

来源:百度知道 编辑:UC知道 时间:2024/05/09 21:00:22
/*----------------------------------------------------- *File: CrackQQ.cpp *Effect: Crack the QQ KeyProtect *Code: Wrsky--gleon *Edit: Wrsky--Huai_Huai *Date: 2005.12.9 *----------------------------------------------------*///Import the head file#include<stdio.h>//Edit the LoginCtrl.dll for crack QQ keyprotectbool crackqq(char *name) //LoginCtrl.dll File path.{unsigned char szFlag[20]; //The good ico Resource size.FILE *pFile = fopen(name, "r+b"); //Open the Dll Fileif(pFile==NULL) //Open Failreturn -1; fseek(pFile, 0x73098, SEEK_SET); //Move to the Good ico Resource offset. for(int j=0;j<=19;j++) //Read the good ico Resource.{ fread(&szFlag[j],1,1,pFile); }fseek(pFile, 0x73598, SEEK_SET); //Move to the Fail ico Resource offset. for(j=0;j<=19;j++) //Replace good ico resource with fail ico resource.fwrite(&szFlag[j], 1, 1, pFile);fclose(pFile);

/*-----------------------------------------------------
*File: CrackQQ.cpp
*Effect: Crack the QQ KeyProtect
*Code: Wrsky--gleon
*Edit: Wrsky--Huai_Huai
*Date: 2005.12.9
*----------------------------------------------------*/
//Import the head file
#include<stdio.h>
//Edit the LoginCtrl.dll for crack QQ keyprotectbool
crackqq(char *name) //LoginCtrl.dll File path.
{
unsigned char szFlag[20]; //The good ico Resource size.
FILE *pFile = fopen(name, "r+b"); //Open the Dll File
if(pFile==NULL) //Open Failreturn -1;
fseek(pFile, 0x73098, SEEK_SET); //Move to the Good ico Resource offset.
for(int j=0;j<=19;j++) //Read the good ico Resource.
{fread(&szFlag[j],1,1,pFile); }
fseek(pFile, 0x73598, SEEK_SET); //Move to the Fail ico Resource offset.
for(j=0;j<=19;j++) //Replace good ico resource with fail ico resource.
fwrite(&szFlag[j], 1, 1, pFile);
fclose(p