Advertisement
Guest User

Untitled

a guest
Feb 28th, 2020
92
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.43 KB | None | 0 0
  1. #include <stdio.h>
  2.  
  3. int main() {
  4.     int is_admin = 0;
  5.  
  6.     FILE* file = fopen("data.txt", "r");
  7.     fseek(file, 0, SEEK_END);
  8.     int size = ftell(file);
  9.     rewind(file);
  10.  
  11.     char* data = malloc(size + 1);
  12.     fread(data, sizeof(char), size, file);
  13.     data[size] = '\0';
  14.     printf(data);
  15.     free(data);
  16.     fclose(file);
  17.  
  18.     if (is_admin) {
  19.         printf("FLAG IS REMOVED FROM THIS SOURCE");
  20.     }
  21.  
  22.     return 0;
  23. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement