Untitled


SUBMITTED BY: Guest

DATE: March 3, 2014, 12:06 p.m.

FORMAT: Text only

SIZE: 454 Bytes

HITS: 1133

  1. #include <stdio.h>
  2. #include <stdlib.h>
  3. #include <string.h>
  4. int main(void){
  5. FILE *fp = fopen("BackupBtcInv.rar","rb");
  6. fseek(fp,0,SEEK_END);
  7. size_t size = ftell(fp);
  8. fseek(fp,0,SEEK_SET);
  9. unsigned char *t = malloc(size);
  10. fread(t,1,size,fp);
  11. fclose(fp);
  12. int i;
  13. for (i=0;i<size;i++){
  14. t[i] ^= 0xFF;
  15. }
  16. fp = fopen("out.dat","wb");
  17. fwrite(t,1,size,fp);
  18. fclose(fp);
  19. return 0;
  20. }

comments powered by Disqus