Question 4

Find The idiot (Score 100)


Your friend Bob, is an expert penetration tester. He loves solving and creating puzzles. He is invited by Pied Diaper Inc. for some testing. You join him for this technical expedition. At the site, you watch him work for a few minutes, when he exclaims, "What an idiot!". Then, he looks at you with a with a playful gaze. Then, handing out a flash drive to you he says, "Find the idiotic user".
Link: Here

ダウンロードしたファイルを解凍すると、Linuxのファイルシステムが得られます。ディレクトリを探索すると、次のファイルが見つかります。問題文に"Find the idiotic user"(馬鹿なユーザーを探せ)とありますので、おそらく脆弱なパスワードを設定しているユーザーを探す問題でしょうか。

  • /etc/passwd
  • /etc/shadow

それでは、John the Ripperでパスワードを解析してみます。unshadowコマンドでpasswdファイルとshadowファイルからJohn the Ripperで処理できるファイルを作成します。作成したファイルをjohnコマンドで処理すると、パスワードが解析されます。

>cd etc

>unshadow passwd shadow > johnpasswd
>chmod 400 johnpasswd

>john johnpasswd
Created directory: /root/.john
Warning: detected hash type "sha512crypt", but the string is also recognized as "crypt"
Use the "--format=crypt" option to force loading these as that type instead
Loaded 7 password hashes with 7 different salts (sha512crypt [32/32])
dragon1          (gohan)

早速、gohanユーザーのパスワードが解析できました。とりあえず、このパスワード「dragon1」をsubmitしてみると、見事正解でした。


フラグは、

dragon1

です。