ファイルを解凍すると、0~7の数字からなる数値が並んだテキストファイルができます。8進ダンプのようですので、1つ1つの数値を読み取ってバイナリで保存するRubyプログラムを書きます。The hidden message
(misc50, solved by 162)
Description: My friend really can't remember passwords. So he uses some kind of obfuscation. Can you restore the plaintext?
Attachment: misc50.zip
fw = File.open("aaa.txt", "wb")実行してできたファイルを開くと、下記の文字列を得ることができます。
File.open("README.txt", "r") do |f|
f.each_line do |line|
a = line.split(" ")
a.delete_at(0)
a.map!{|s| s.to_i(8)}
p a.pack("c*")
fw.write(a.pack("c*"))
end
end
fw.close
V2VsbCBkb25lIQoKRmxhZzogSVd7TjBfMG5lX2Nhbl9zdDBwX3kwdX0KこれをBASE64でデコードすると次の文字列を得ることができます。
Well done!フラグは、
Flag: IW{N0_0ne_can_st0p_y0u}
IW{N0_0ne_can_st0p_y0u}です。









