thjcc_winter_writeup

CTF 比賽出題初體驗
這次擔任 THJCC 第二屆
的出題者
算是我第一次正式出題的體驗
題目有不好的地方就請見諒
比賽前一天發現自己把題解刪掉了,害我連夜重寫一份 exploit
pwn-TheBestAnime
題序
題序
那似乎是ROP,
這種攻擊天生單翼,
需要Gadgets相互扶持依偎,
否則無法翱翔天際,
是種有缺陷的生物。
但是,不知為何,
我卻認為,
這種生存方式是美好的。
“The ROP, also known as “the payload that shares wings,” only possesses one wing. Unless gadgets lean on each other and act as one, they’re incapable of flight. They’re imperfect, incomplete creatures. But, for some reason, their way of life, struck me as profoundly beautiful. It was beautiful, I felt.”
Author: Grissia
檔案
- chal
想法
這題大概的解法就是在 darling
函式中有 OOB
可以 leak canary
leak canary 之後可以在 main
最後 gets
構建 rop chain
Step 1
用 ida 直接反組譯後可以看到第一步就是要輸入 Darling in the FRANXX
Step 2
跳轉到 darling
函式後有一個很明顯的 OOB
可以分別輸入 14
15
來得到兩段 canary
Step 3
用剛剛得到的 canary 值就可以放心 overflow
構建 rop chain 後就大功告成
Exploit
1 | from pwn import * |
misc-Happy College Life
題序
題序
Where is this place ???
把拍照位置的經緯度座標放到 THJCC{}
裡面,並且單位保留到分,像是 24°59'57.8"N 121°19'34.4"E
要被表示成 THJCC{2459N,12119E}
Put the found latitude and longitude into the format THJCC{}
and keep the precision up to the minutes. For example, 24°59'57.8"N 121°19'34.4"E
should be submitted as THJCC{2459N,12119E}
.
Author: Grissia
檔案
- secret_place.jpg
想法
最明顯的是樹後面有一個超大的藍色金字塔
放大圖片還可以看到垃圾桶上 Long Beach 的 logo
而且題目名稱就是 Happy College Life
可以推測這是某個大學裡的地點
btw,這張照片是我去 CSULB
的時候在宿舍門口拍的
Flag
THJCC{3346N,11807W}
- 標題: thjcc_winter_writeup
- 作者: Grissia
- 撰寫于 : 2024-12-15 20:55:47
- 更新于 : 2024-12-15 21:19:41
- 連結: https://grissia.github.io/2024/12/15/thjcc-winter-writeup/
- 版權宣告: 本作品采用 CC BY-NC-SA 4.0 进行许可。