patch file

範例如下

#include <stdio.h>
#include <string.h>
int main(void)
{
FILE *fp_out;

if ((fp_out = fopen(“CrackMe3.exe”, “r+”))==NULL)
{
printf(“error!!!”);
printf(“Press any key to continue\n”);
getchar();

}else
{
fseek(fp_out, 0x40339, SEEK_SET);
fputc(0x74, fp_out);

fseek(fp_out, 0x40356, SEEK_SET);
fputc(0x74, fp_out);
fclose(fp_out);
}

}

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s