1
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?

More than 1 year has passed since last update.

CpawCTF Q.7 [Reversing] Can you execute ?

exec_meをダウンロードしてUbuntuで解析していきましょう。
fileコマンドでexec_meがどのようなファイルなのかを調べます。

file.ub
>file exec_me
exec_me: ELF 64-bit LSB executable, x86-64, version 1 (SYSV), dynamically linked, interpreter /lib64/ld-linux-x86-64.so.2, for GNU/Linux 2.6.24, BuildID[sha1]=663a3e0e5a079fddd0de92474688cd6812d3b550, not stripped

実行可能とわかるので実行してみましょう。

exec.ub
>./exec_me
-bash: ./exec_me: Permission denied

実行権限がないので、与えましょう。

exec.ub
>sudo chmod 777 exec_me

もう一度実行してみます。

exec.ub
 >./exec_me
 cpaw{Do_you_know_ELF_file?}

答えが出ました。

参考文献

file->https://qiita.com/Uma_adn/items/e0a506c7df141c6c7a36
chmod->https://qiita.com/Uma_adn/items/7ddad0f2f7ddbb5d07a4

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

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?