0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

picoCTF 2019 writeup Forky

Last updated at Posted at 2025-12-20

Forky (Reverse Engineering)

In this program, identify the last integer value that is passed as parameter to the function doNothing().

添付ファイル
・vuln

gdbでdoNothing関数が呼び出されているところにブレイクポイントを設定して、実行する。

pwndbg> b *main+129
pwndbg> r
pwndbg> info register edx
edx            0xd4faf720          -721750240

doNothing関数の第1引数の値を見れば、最後に渡されている値が分かる。第1引数はedxレジスタに格納されているので、edxの値を表示させた。

フラグが得られた。

picoCTF{-721750240}

0
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
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?