_ColdMind
January 13th, 2004, 04:00
I have tried to compare two files: the original and the patched one, character by character and store the offset and the patched code using the following C sequence, but it shows me strange things, not my patch:
Then I have triend to patch a file using the following C code, but this time I gived up and remember about woodmann... Would you like to help me ?
Code:
FILE *f1,*f2;
f1=fopen(argv[1],"r";
f2=fopen(argv[2],"r";
int ch1, ch2, j=0;
unsigned long int i=0;
do {
ch1=fgetc(f1);
ch2=fgetc(f2);
if(ch1!=ch2) printf("\n %08X: %X", i, ch2);
i++;
if(i%25==0) {
printf("\n -- page %d -- more --",++j);
getch();
}
} while(ch2!=EOF);
printf("\n -- end --";
return;
}
Then I have triend to patch a file using the following C code, but this time I gived up and remember about woodmann... Would you like to help me ?