[hackingcamp] magic ( write-up )
Analysis#include #include #include #include int main(void) { FILE *fp; int select = 0; char flag[30] = ""; char userinput[30] = ""; setvbuf(stdin,0,2,0); setvbuf(stdout,0,2,0); setvbuf(stderr,0,2,0); memset(flag,0,30); memset(userinput,0,30); fp = fopen("/home/magic/flag.txt","r"); fread(flag,30,1,fp); fclose(fp); puts("Welcome to HACKAINGCAMP!"); puts("I Will give you a chance for guess..