🍸 [0x02] Crypto: Jumping the fence

1.- Provided challenge description

Can you find the encrypted code? Maybe is not as easy at is seems…

2.- Provided information

Lb't'cnga(lrgíñmranaitoran amlIleyelneudarFmaBeoDinSraiaaoaiBroamsrc,er,oiBroa saa,leoWlaaolSaaiiacn)niagMn,emcñ(cl)aiaaíaosñt(cl) rsmudradlraknitioeMtSdeae

3.- Challenge

This challenge is an interesting one, it tests your crypto-detection capabilities (And your ability to search in strange places for hints…)

While you could go ahead and decrypt the message, you’d still be missing the hint that enables you to solve the challenge…

If you view the source code of the challenge’s website you find a hint hidden in a HTML comment:

The code is the next 12 words of the song without spaces, jumps, comas and dots

So next, I inspected the provided code… Immediately found the use of Spanish glyphs (ñ), so that led me to know that the song was spanish… in a way…

The code can be decrypted using a zig-zag cypher solver (4 rows, 9 offset)

Decrypting it gives us:

Lasramblas,I’llmeetyouWe’lldancearoundlaSagradaFamilia(Barcelona)DrinkingSangríaMiniña,teamomicariño(Barcelona)MamasitaricaSí,teadoro,señorita(Barcelona)

Which is the lyrics of an Ed Sheeran song related to Barcelona…

So we search up the song’s lyrics to find the next 12 words and…

Advent{LosotrosvivalavidaComeonlet’sbefreeinBarcelona}

A simple blog for everything me


Writeup for the third 2022's Advent of Hack CTF challenge