Pwnctf registration Writeup
registration
這題的關鍵是他會隨機生一個 id,然後存到一個全域變數,最後會去檢查這個值是否被更動:
只要弄清楚變數具體的位置,這題就輕鬆通關了:
exploit.py:
1 | from pwn import * |
result:
1 | └─$ python exploit.py |
Pwned !!!
- Title: Pwnctf registration Writeup
- Author: kazma
- Created at : 2023-12-21 21:32:41
- Updated at : 2023-12-21 21:56:01
- Link: https://kazma.tw/2023/12/21/Pwnctf-registration-Writeup/
- License: This work is licensed under CC BY-NC-SA 4.0.
Comments