Writeup
Misc
Chinese
FlyDragon
本題共有兩關,通過第一關後進入第二關
有參與第二關走到終點的投票即可得到 flag
普通的走格子遊戲,一輪一輪走即可。
值得注意的是,若兩個選項票數相同可以一次走兩步
地圖變大了、一次要投十個選項
算一下會發現十步不可能走到終點
查看提示,就會發現第二關跟第一關有同樣的問題
利用票數相同會重複走的特性就可以走到終點。
if(max_vote != 0):
if(max_vote == vote_arr[i][0]):
result += 'w'
if(max_vote == vote_arr[i][1]):
result += 's'
if(max_vote == vote_arr[i][2]):
result += 'a'
if(max_vote == vote_arr[i][3]):
result += 'd'
[name=FlyDragon]
May 28, 2025[name=FlyDragon]
May 28, 2025在 LoTuX 平台上取得 2000 分以上
Apr 4, 2025[name=FlyDragon] Step.1 By observing output.txt and executing the code, it can be inferred that the program flag.exe will output the flag after shuffling it. Step.2 By examining main() using Ghidra, it can be discovered that this program reads in the contents of flag.txt and outputs them after performing specific swaps in a particular order. order = [5, 13, 0, 12, 1, 16, 3, 2, 8, 7, 15, 4, 6, 17, 11, 10, 9]
Nov 1, 2023or
By clicking below, you agree to our terms of service.
New to HackMD? Sign up