[*] '/home/zelas/Desktop/pwn/ciscn_2019_n_5/ciscn_2019_n_5' Arch: amd64-64-little RELRO: Partial RELRO Stack: No canary found NX: NX disabled PIE: No PIE (0x400000) RWX: Has RWX segments //
setvbuf(stdout, 0LL, 2, 0LL); puts("tell me your name"); read(0, name, 0x64uLL); //read()写入shellcode puts("wow~ nice name!"); puts("What do you want to say to me?"); gets(text); //gets()函数存在栈溢出漏洞 return0; }