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