telnet caitsith.pwn.seccon.jp
User:root
Password:seccon
The goal is to find the flag word by "somehow" reading all *.txt files.

telnet caitsith.pwn.seccon.jp
User:root
Password:seccon
すべての *.txt ファイルを読め
問題文に指示されているとおり、telnetでcaitsith.pwn.seccon.jpに接続し、ログインします。
まず、lsコマンドでカレントディレクトリのファイルを確認します。

$ ls
bin         flags.txt   linuxrc     stage1.txt  stage4.txt  usr
dev         init        proc        stage2.txt  stage5.txt
etc         lib         sbin        stage3.txt  tmp
早速、flags.txtがありますが、この時点ではアクセス権がなく中身を見ることができません。
まず、stage1.txtファイルを見てみましょう。
$ cat stage1.txt
What command do you use when you want to read only top lines of a text file?

Set your answer to environment variable named stage1 and execute a shell.

  $ stage1=$your_answer_here sh

If your answer is what I meant, you will be able to access stage2.txt file.
テキストファイルの先頭行を読むのに使うコマンドは何か?と聞かれています。
headコマンドですね。
それを環境変数stage1に設定すれば、次のstage2.txtファイルにアクセスできるようです。
$ stage1=head sh
$ cat stage2.txt
What command do you use when you want to read only bottom lines of a text file?

Set your answer to environment variable named stage2 and execute a shell.

  $ stage2=$your_answer_here sh

If your answer is what I meant, you will be able to access stage3.txt file.
stage2.txtファイルを読めるようになりました。テキストファイルの最終行から読むのに使うコマンドは何か?と聞かれています。
これは、tailコマンドですね。
$ stage2=tail sh
$ cat stage3.txt
What command do you use when you want to pick up lines that match specific patte
rns?

Set your answer to environment variable named stage3 and execute a shell.

  $ stage3=$your_answer_here sh

If your answer is what I meant, you will be able to access stage4.txt file.
次は、特定のパターンにマッチする行を取り出すのに使うコマンドは何か?と聞いてきています。
これは、grepコマンドですね。
$ stage3=grep sh
$ cat stage4.txt
What command do you use when you want to process a text file?

Set your answer to environment variable named stage4 and execute a shell.

  $ stage4=$your_answer_here sh

If your answer is what I meant, you will be able to access stage5.txt file.
次は、テキストファイルを処理したいときに使うコマンドは何?ということで、awkコマンドかな。
$ stage4=awk sh
$ cat stage5.txt
OK. You reached the final stage. The flag word is in flags.txt file.

flags.txt can be read by only one specific program which is available
in this server. The program for reading flags.txt is one of commands
you can use for processing a text file. Please find it. Good luck. ;-)
ついに最後です。テキストファイルを処理するために使うコマンドのうちの1つでのみflags.txtファイルを読めるようです。
なんとなく、sedコマンドかなぁ。
$ sed '1r aa' flags.txt
OK. You have read all .txt files. The flag word is shown below.

SECCON{CaitSith@AQUA}
ということで、flagをゲットしました。