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?

More than 5 years have passed since last update.

picoCTF 2018 Aca-Shell-A - Points: 150

Posted at

問題

image.png

解いてみた

接続してみます。

image.png

何をすればいいのかよくわからないので、flagが書かれたファイルがないか調べてみます。

image.png

なんでかよくわかりませんが、別のフォルダに対してlsができないのでわざわざcdしないといけない仕様です。。。
intelを消すように言われたのrmで消します。

image.png

ファイルを消して「echo 'Drop it in!'」と書くと何か発動するようです。
executablesフォルダに一気に行こうとしても失敗するので一つずつ移動します。。。
中のファイルを実行すると変な文字がたくさん出てきます。

image.png

ユーザ名を表示するように言われたので、whoamiをしてユーザ名を表示します。
passwordsフォルダにファイルをコピー"しろ"なのか"したよ"なのかよくわからなかったので、移動してみます。
ファイルがなかったのでコピーコマンドやってみるもののファイルがない?
いろいろやっているうちに時間切れで接続できなくなりました。

再度、最初から挑戦です。。。
これまでのところは省略します。。。

image.png

どうやら、インプットに対してコマンドを理解しているわけではなくて、固定文字列と比較して、一致するかどうかで判断しているんでしょうか。
さっきのコピーコマンドも一緒の意味だと思うのですが。。。

まぁ一応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

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?