1
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?

bandit 3日目

Last updated at Posted at 2025-10-10

level 9 → level 10

課題

テキストファイルの中ストリングにパスワードが含まれている
パスワードには連続した===がついている

解法

stringsとgrepを用いる

strings data.txt | grep "====="

password

FGUW5ilLVJrxX9kMYMmlN4MgbpfMiqey

level 10 → level 11

課題

base64でエンコードされて入れファイルに含まれている

解法

base64でデコードした後にstringsを用いる

base64 -d data.txt | strings

password

dtR173fZKb0RRsDFSGsg2RWnpNVj3qRr

level 11 -> level 12

課題

テキストファイルの中身がROT13で暗号化されている

解法

trコマンド を使う
tr  文字の変換や削除を行う
ROT13の場合

strings data.txt | tr 'A-Za-z' 'N-ZA-Mn-za-m'

'A-Za-Z'

  • 「A-Z」と「a-z」大文字小文字すべてのアルファベットが対象

'N-ZA-Mn-za-m'

  • N→Z、A→M、n→z、a→mに変換先を指定

password

7x16WNeHIi5YkIhWsfFIqoognUTyj9Q4
1
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
1
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?