LoginSignup
1
0

More than 3 years have passed since last update.

picoCTF writeup (be-quick-or-be-dead-1)

Posted at

ELFバイナリが与えられる.
そのまま実行すると時間切れで終了してしまう.

radare2でバイナリを開いてみた.
参考:radare2 使い方 メモ

以下のコマンドを順次実行して解析を始める.

  1. aaa
  2. s main
  3. V
  4. p

:s sym.mainでmain関数へ移動すると,4つの命令を順に呼んでいる事がわかる.

  • header
  • get_key
  • set_timer
  • print_flag

set_timerでセットされたタイマにより中断されると推測.
これを呼ぶ部分をnopで埋めた.

// call sym.set_timer の行まで移動して
:w \x90\x90\x90\x90\x90
:q

改めて実行すると,フラグが表示される.

1
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
0