LoginSignup
0
0

More than 5 years have passed since last update.

CpawCTF Q.7 writeup

Last updated at Posted at 2019-03-01

ファイル情報

> 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

なので、64bit Linuxで実行した方が良さそう。
ということで、dotinstallとかを参考に、CentOS Vagrantをサクッと、Vagrant環境を構築した。
その間の、試行錯誤は割愛。

Vagrantで実行

$ ./exec_me
-bash: ./exec_me: 許可がありません。

??
Bash
$ ls -la
合計 84
(中略)
-rw-rw-r--. 1 vagrant vagrant 8556 2月 24 21:00 2019 exec_me
(中略)

どうやら、ファイルに実行権限が与えられていなかったので、

$ sudo chmod 777 exec_me
$ ./exec_me

これで、flagが取得できる

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