Matriochka - Step 1
Description
Can you help me?
Recently, I found an executable binary.
As I'm a true newbie,
Certainly, to solve it, I will have difficulties.
Keep in mind, the first step is quite easy.
Maybe the last one will be quite tricky.
Emulating it could be a good idea.
The challenge is available at : http://static.quals.nuitduhack.com/stage1.bin
Details
- Points
- 50
- Category
- Crack Me
- Validations
- 222
Attachments
fileコマンドでダウンロードしたファイルのファイルタイプを確認します。Linuxの64bitバイナリのようです。
Filename Size Hash (SHA-256) stage1.bin 64.58 kB ed0093922d7b3f42a34610a3dd3d09f92c42ef8647a514a7cce8dea7fecbf116
$ file stage1.binダウンロードしたファイルを実行すると、次のとおり引数にパスワードを指定する必要があることが分かります。
stage1.bin: ELF 64-bit LSB executable, x86-64, version 1 (SYSV), dynamically linked (uses shared libs), for GNU/Linux 2.6.24, BuildID[sha1]=d023239e2bf37734ba5a67401a092ba6273c37b6, not stripped
$ ./stage1.binここでstringsコマンドでファイル中の文字列を確認します。
Usage: ./stage1.bin <pass>
$ strings stage1.binMuch_secure__So_safe__Wowという文字列が怪しいですね。これを引数に指定して実行してみます。下記のとおりGoodと表示され、Base64でエンコードされた文字列が出力されました。
(略)
Much_secure__So_safe__Wow
Good good!
Try again...
;*3$"
$ ./stage1.bin Much_secure__So_safe__Wowしたがって、フラグは、
Good good!
c3RhZ2UyLmJpbgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
(略)
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA==
Much_secure__So_safe__Wowです。