Description
Dots and dashes are a funny sort of language. Decode this Morse code message to find the flag.
Setup
Connect to the challenge server to receive the Morse code string.
Solution
- Step 1Decode the Morse codeEach letter is represented by a sequence of dots (.) and dashes (-) separated by spaces. Words are separated by slashes (/). Use an online Morse decoder (such as morsecode.world) or a reference chart: .- = A, -... = B, -.-. = C, and so on. Convert each symbol group to its corresponding letter to reveal the flag.
Learn more
Morse code was invented by Samuel Morse and Alfred Vail in the 1830s for use with the electric telegraph. Each letter and digit is encoded as a sequence of short signals (dots, "dits") and long signals (dashes, "dahs"). The most frequently used letters in English -- E (.) and T (-) -- have the shortest codes, an early application of frequency-based encoding now formalized in information theory.
The structure of Morse code:
- A dot lasts 1 unit; a dash lasts 3 units
- Symbols within a letter are separated by 1 unit of silence
- Letters are separated by 3 units of silence
- Words are separated by 7 units of silence (often written as
/in text)
In CTF challenges, Morse code appears frequently because it is one of the oldest and most recognizable encoding schemes. It differs from encryption because there is no key -- anyone with a reference chart can decode it. In real radio communications, Morse is still used by amateur (ham) radio operators worldwide and was used in aviation until recently. The SOS distress signal (
... --- ...) is universally understood even today.To decode quickly without memorizing the chart, online tools like
morsecode.worldor CyberChef's "From Morse Code" recipe handle it instantly. For programmatic decoding, Python libraries likemorse3or simple dictionary lookups work well.
Flag
PICOCTF{M0RS3C0D31SFUN1261438181}
Morse code maps letters to sequences of dots (short) and dashes (long). Letters are separated by spaces and words by slashes.