Advertisement
Guest User

Untitled

a guest
Feb 21st, 2015
367
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.48 KB | None | 0 0
  1. #include<stdio.h>
  2. #include<stdlib.h>
  3. #include<string.h>
  4.  
  5. int main()
  6. {
  7.     char y,x='\xEB';
  8.     int i=0;
  9.     FILE* fp=fopen("WinRAR.exe","rb+");
  10.     while(!feof(fp))
  11.     {
  12.         fread(&y,1,1,fp);
  13.         i++;
  14.         if( y != '\x74')
  15.             continue;
  16.         fread(&y,1,1,fp);
  17.         i++;
  18.         if( y != '\xE4')
  19.             continue;
  20.         fread(&y,1,1,fp);
  21.         i++;
  22.         if( y != '\x6A')
  23.             continue;
  24.         fread(&y,1,1,fp);
  25.         i++;
  26.         if( y != '\x00')
  27.             continue;
  28.         break;
  29.     }
  30.     fseek(fp,i-4,SEEK_SET);
  31.     fwrite(&x,1,1,fp);
  32.     return 0;
  33. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement