Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <unistd.h>
- #include <stdio.h>
- #include <stdlib.h>
- char flag[50];
- int init(){
- setvbuf(stdout, 0LL, 2, 0LL);
- setvbuf(stderr, 0LL, 2, 0LL);
- FILE * f=fopen("/home/ctf/flag","rb");
- if (f==0){
- puts("Can't find my flag >..< Exiting...");
- exit(0);
- }
- fread(&flag,1,50,f);
- fclose(f);
- f=0;
- }
- int main(){
- init();
- char buf[512];
- while(1){
- fgets(buf,512,stdin);
- printf(buf);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement