Category: crypto / misc · Artifact: extracted/cipher_cascade.txt
What it is
=== INTERCEPTED TRANSMISSION === with the hint:
Hint: The outermost layer is reversed.
Layers applied (outermost to innermost): Reverse -> Base64 -> Hex -> ???
Encoded message:
=Q2NxcTM2EzMhZTM2gjNmVTN2MzMjZDNzkzNmVzY2YmNmVTN2MzMjZDNzkzNidzM1cDNwUjN3UzN
Solve
Peel the layers literally, in order:
- Reverse the whole encoded string.
- Base64-decode it.
- Hex-decode the result -> ASCII
uvPGS{y4l3e_ol_y4l3e_haj1aq}. - The final
???layer is ROT13 ->hiCTF{l4y3r_by_l4y3r_unw1nd}.
1python3 - <<'EOF'
2import base64
3s="=Q2NxcTM2EzMhZTM2gjNmVTN2MzMjZDNzkzNmVzY2YmNmVTN2MzMjZDNzkzNidzM1cDNwUjN3UzN"
4r=s[::-1]
5h=base64.b64decode(r).decode() # 75765047537b... (hex text)
6import codecs
7print(codecs.decode(bytes.fromhex(h).decode(), 'rot13'))
8EOF
Flag
hiCTF{l4y3r_by_l4y3r_unw1nd}