[*] '/home/zelas/Desktop/pwn/PicoCTF_2018_buffer_overflow_2/PicoCTF_2018_buffer_overflow_2' Arch: i386-32-little RELRO: Partial RELRO Stack: No canary found NX: NX enabled //栈不可执行 PIE: No PIE (0x8048000)
stream = fopen("flag.txt", "r"); if ( !stream ) { puts( "Flag File is Missing. Problem is Misconfigured, please contact an Admin if you are running this on the shell server."); exit(0); } result = fgets(s, 64, stream); if ( a1 == -559038737 && a2 == -559038242 ) //需要满足这两个参数 result = (char *)printf(s); return result; }