Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include<stdio.h>
- #include<stdlib.h>
- #include<string.h>
- int main()
- {
- char y,x='\xEB';
- int i=0;
- FILE* fp=fopen("WinRAR.exe","rb+");
- while(!feof(fp))
- {
- fread(&y,1,1,fp);
- i++;
- if( y != '\x74')
- continue;
- fread(&y,1,1,fp);
- i++;
- if( y != '\xE4')
- continue;
- fread(&y,1,1,fp);
- i++;
- if( y != '\x6A')
- continue;
- fread(&y,1,1,fp);
- i++;
- if( y != '\x00')
- continue;
- break;
- }
- fseek(fp,i-4,SEEK_SET);
- fwrite(&x,1,1,fp);
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement