neko@ubuntu:~/pwn$ python exp1.py
[+] Starting local process './test.out': pid 56537
[*] '/home/neko/pwn/test.out'
Arch: i386-32-little
RELRO: Partial RELRO
Stack: No canary found
NX: NX disabled
PIE: No PIE (0x8048000)
RWX: Has RWX segments
0x804846b
[*] Switching to interactive mode
$ id
uid=1000(neko) gid=1000(neko) groups=1000(neko),4(adm),24(cdrom),27(sudo),30(dip),46(plugdev),113(lpadmin),128(sambashare)
$
neko@ubuntu:~/pwn$ python exp1.py
[+] Starting local process './test.out': pid 56593
[*] '/home/neko/pwn/test.out'
Arch: i386-32-little
RELRO: Partial RELRO
Stack: No canary found
NX: NX disabled
PIE: No PIE (0x8048000)
RWX: Has RWX segments
0x804846b
[*] Switching to interactive mode
hello
\x00[*] Got EOF while reading in interactive
$ id
[*] Process './test.out' stopped with exit code -11 (SIGSEGV) (pid 56593)
[*] Got EOF while sending in interactive