Pwnctf gohome Writeup

gohome
執行看一下:
他說要找他家的地址:
找到他家了,內容是直接在 shell 印出我們的 flag,補上一個 return 對齊一下,exploit.py:
1 | └─$ cat exploit.py |
result:
1 | └─$ python exploit.py |
可以看到他執行了 cat /home/ctf/flag
,不過因為是在 local 跑沒有這個資料夾所以 eof 了
Pwned !!!
- Title: Pwnctf gohome Writeup
- Author: kazma
- Created at : 2023-12-20 21:16:27
- Updated at : 2023-12-20 21:25:57
- Link: https://kazma.tw/2023/12/20/Pwnctf-gohome-Writeup/
- License: This work is licensed under CC BY-NC-SA 4.0.
Comments