Securinets Friendly CTF 2026 / Misc WRITEUP
TRAFFIC LIGHTS
CyberLeek synchronized every traffic light in Vice City. The pattern was never meant for drivers.
EVENTSecurinets Friendly CTF 2026CATEGORYMiscDIFFICULTYeasyPOINTS100
Walkthrough
Challenge
The player receives traffic.txt, containing a long sequence of colored traffic-light emojis.
Solution
The signals encode binary data:
🔴is0;🟢is1;🟡separates bytes.
For example, the first group is:
🔴 🟢 🔴 🟢 🔴 🔴 🟢 🟢 🟡
That becomes 01010011, which is decimal 83 and ASCII S. Decode every group in order to recover the flag.
python3 solver.py
Output:
Securinets{r3d_gr33n_l1ghts_sp3ll_th3_l34k}
Run python3 make.py whenever the flag changes.
Reference solver
The reference solver supplied with the writeup:
#!/usr/bin/env python3
colors = {"🔴": "0", "🟢": "1"}
groups = open("traffic.txt", encoding="utf-8").read().split("🟡")
flag = bytes(
int("".join(colors[color] for color in group.split()), 2)
for group in groups if group.strip()
)
print(flag.decode())Flag
Securinets{r3d_gr33n_l1ghts_sp3ll_th3_l34k}
Published 2026-09-28 · by r3t0x← Back to archive · Misc