Skip to content
Adam Omar Saleh

SpookyCTF 2026 "Phobias" logoSpookyCTF 2026Cryptography

The Logical Way

Competition
SpookyCTF 2026 "Phobias" logoSpookyCTF 2026
Category
CryptographyMedium · estimated
Source status
Source-documented · not platform-verified
Document
PDF edition2 min read

Brief

The challenge

Category
Crypto / Misc
Points
721
Author
Raindrops095
File
My_Message_to_you.7z

A Vulcan has left their final message to the world before dying. They had sent centuries thinking of nothing but logic. Can you uncover their final message? Format: spooky{hello_world}

Challenge page
Challenge page

TL;DR

Text
7z (password "LOGIC") → zip → LOGIC.pdf → Vulcan script glyphs  → monoalphabetic substitution → English message  → translate the Vulcan phrase "V'tosh ka'tur nirak" → flag

01

The archive

My_Message_to_you.7z is AES-encrypted, but its file names are visible: it holds a single My Message to you.zip. A small list of Star Trek / Vulcan / logic themed guesses (try_pw.py) finds the password quickly: LOGIC.

The inner zip isn't encrypted and contains My Message to you/LOGIC.pdf.

02

The PDF

The PDF has two pages of glyphs in the Star Trek Vulcan script, one image per character:

Page 1
Page 1
Page 2
Page 2

Every glyph placement reports the same image xref, so the images can't be told apart from PDF metadata. glyphs.py instead renders each page at 200 DPI, crops every glyph by its bounding box, binarizes it, and clusters the crops by pixel similarity. That gives 177 glyphs drawn from 21 distinct symbols, with word gaps detected from the horizontal spacing.

03

Breaking the substitution

With 21 symbols and repeated word patterns, this is a plain monoalphabetic substitution:

  • 06 02 / 07 02 00 recur together, which fits DO NOT.

  • 08 02 09 09 02 05 has the double-letter shape of FOLLOW.

  • 09 02 17 12 13 then reads LOGIC.

  • Words wrap across lines without hyphens (PRIN / CIPLES, REAS / ON), which fills in the rest.

Final key:

Glyph000102030405060708091011121314151617181920
LetterTHOSEWDNFLPRICVUAGKYM

decode.py applies it:

Text
THOSE WHO DO NOT FOLLOW THE PRINCIPLES OF VULCAN LOGIC WILL FAIL.VTOSH KATUR NIRAK.DO NOT PITY THOSE WHO DO NOT FOLLOW LOGIC. HELP THEM SEE REASON.TURN THE VULCAN INTO ENGLISH AND WRAP IT WITH UNDERSCORES TO SEE REASON.

04

Translating the Vulcan

The message says to translate the Vulcan phrase V'tosh ka'tur nirak into English:

  • V'tosh ka'tur means "Vulcans without logic" (Memory Alpha, from ENT "Fusion").

  • Nirak means "fool". It was originally the name of a soldier who failed to see an army approaching Gol (ENT "Kir'Shara", Memory Beta).

Translated word for word and joined with underscores, that gives vulcans_without_logic_fool.

Flag

Flag

spooky{vulcans_without_logic_fool}

Source-documented · not platform-verified

If the platform rejects this, try the variants spooky{vulcans_without_logic_fools} and spooky{vulcans_without_logic_are_fools}.

Takeaways

  • When the PDF metadata can't separate the glyphs, render the pages and cluster the pixels instead.

  • Unknown-script challenges are usually just a substitution cipher. Word shapes like FOLLOW and DO NOT break them quickly.

  • Check for words that wrap across lines without a hyphen before assuming a single letter is a whole word.

PDF edition

Writeup PDF

Formatted edition of this walkthrough, built from my source notes · 5 pages.