MISC · 10 min · Beginner

Unwrap Two Layers: URL and Base64

Decode URL escapes before Base64, inspect the intermediate result, and rebuild the sequence with the recipe chain.

What you will learn

Recognize the outer encoding, apply transformations in order and record intermediate results.

Your challenge

This string has two wrappers. The author first converted a flag to Base64, then percent-encoded every character. Reverse the process, record each intermediate result, and submit the full flag.

Challenge data

%5A%6D%78%68%5A%33%74%73%59%58%6C%6C%63%6E%4E%66%61%47%46%32%5A%56%39%68%62%6C%39%76%63%6D%52%6C%63%6E%30%3D

The first tool receives the challenge. Paste your intermediate output into subsequent tools. Each tool links back to this lesson.

Stuck? Reveal one hint at a time

Submit your flag

Answers are checked locally, without being sent anywhere.

Reveal the walkthrough (contains the answer)
  1. URL Decode the challenge to obtain ZmxhZ3tsYXllcnNfaGF2ZV9hbl9vcmRlcn0=.
  2. Base64 Decode the intermediate result to get flag{layers_have_an_order}.
  3. For an extra exercise, build URL Decode followed by From Base64 in the recipe chain. Paste the original challenge and compare each step's output.

The idea to remember

Unwrap layered encodings from the outside in. Keeping intermediate results makes mistakes easier to locate.