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?

Undo picoCTF writeup(日本語)

0
Posted at

picoCTFのwriteupを日本語で書いていきます
メモ程度でまとめている+私自身初心者なので多めに見てください

問題名: Undo
カテゴリ: General Skills

image.png

Linuxのテキスト変換を逆変換して元のフラグを復元できますか? まずはここでフラグを探してください:nc foggy-cliff.picoctf.net 61438

ターミナルから接続

nc foggy-cliff.picoctf.net 61438

実行結果

===Welcome to the Text Transformations Challenge!===

Your goal: step by step, recover the original flag.
At each step, you'll see the transformed flag and a hint.
Enter the correct Linux command to reverse the last transformation.

--- Step 1 ---
Current flag: KW9zOHIwMG5uLWZhMDFnQHplMHNmYTRlRy1nazNnLXRhMWZlcmlyRShTR1BicHZj
Hint: Base64 encoded the string.
Enter the Linux command to reverse it: 

ヒントから、これはBase64で暗号化されているようです
Base64の見分け方としては、
・最後の方に '='ってのがついてる
・英大文字、英小文字、数字、記号(+と/)

Base64をデコードするコマンドは、

 base64 -d

-dはデコードという意

--- Step 2 ---
Current flag: )os8r00nn-fa01g@ze0sfa4eG-gk3g-ta1ferirE(SGPbpvc
Hint: Reversed the text.
Enter the Linux command to reverse it:   

ヒントから、文字列をひっくり返せばよいようです
コマンドは、

rev
--- Step 3 ---
Current flag: cvpbPGS(Eriref1at-g3kg-Ge4afs0ez@g10af-nn00r8so)
Hint: Replaced underscores with dashes.
Enter the Linux command to reverse it: 

ヒント:アンダースコアをハイフンに置き換えました。

ハイフンをアンダースコアに置き換えたら良いので、

tr '-' '_'
--- Step 4 ---
Current flag: cvpbPGS(Eriref1at_g3kg_Ge4afs0ez@g10af_nn00r8so)
Hint: Replaced curly braces with parentheses.
Enter the Linux command to reverse it: 

ヒント:波括弧を丸括弧に置き換えました。
変換前(現在の丸括弧)を第1引数に、変換後(本来の波括弧)を第2引数に指定します。

tr '()' '{}' 
--- Step 5 ---
Current flag: cvpbPGS{Eriref1at_g3kg_Ge4afs0ez@g10af_nn00r8so}
Hint: Applied ROT13 to letters.
Enter the Linux command to reverse it: 

ROT13とは、アルファベットを13文字分、後ろにずらすという暗号
アルファベットは26文字なので、もう一回13文字ずらしてあげれば、もとに戻ります

tr 'A-Za-z' 'N-ZA-Mn-za-m'

'A-Za-z'(26文字)を 'N-ZA-Mn-za-m'(13文字ずらしたセット)に置き換える、という意味です。

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?