> For the complete documentation index, see [llms.txt](https://ravins-organization.gitbook.io/ctf-writeups/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://ravins-organization.gitbook.io/ctf-writeups/2024/huntress-ctf-2024/warmups/mystery.md).

# Mystery

Author: Michael\
\
Someone sent this to me...\
*such enigma, such mystery:*\
\
`rkenr wozec gtrfl obbur bfgma fkgyq ctkvq zeucz hlvwx yyzat zbvns kgyyd sthmi vsifc ovexl zzdqv slyir nwqoj igxuu kdqgr fdbbd njppc mujyy wwcoy`\
\
Settings as below:

* 3 Rotor Model
* Rotor 1: VI, Initial: A, Ring A
* Rotor 2: I, Initial: Q, Ring A
* Rotor 3: III, Initial L, Ring A
* Reflector: UKW B
* Plugboard: `BQ CR DI EJ KW MT OS PX UZ GH`

Given this, we can tell immediately that this is Engima machine cipher. So first things first, I launched up <https://cryptii.com/pipes/enigma-machine>.&#x20;

<figure><img src="https://175444261-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FyxEI13wXOyST4LLTOUiS%2Fuploads%2FYasDjwb8NkLeM4KU4vzI%2Fimage.png?alt=media&amp;token=bbfb3782-64db-4c5f-b290-03a2861e84da" alt=""><figcaption></figcaption></figure>

We get the plaintext that is `messagewrappedinlighthiddendeeperoutofsightlockingitmoretightanywayyourflagishereflagfdfeabcacbebfbadaefbeccaadddbafezzz`

By formatting it a bit better we get

message wrapped in light hidden deeper out of sight locking it more tight anyway your flag is here flag fdfeabcacbebfbadaefbeccaadddbafezzz

So, i thought the flag was `flag{fdfeabcacbebfbadaefbeccaadddbafezzz}`, but this was too long, so i tried removing the final `zzz` characters, giving the the flag as `flag{fdfeabcacbebfbadaefbeccaadddbafe}`.
