HACKVent 2014 - Day 04 writeup
I’ve sign up for the Hackvent event made by the guys from www.hacking-lab.com, which is a advent-like hacking competition. Every day there is a new challenge posted at midnight which has a to solved at best in the same day, the challenge becoming increasingly more difficult every week completed. The aim in every puzzle is to find either a qr-encoded x-mas ball with lead to the validation code, or a secret human-readable string which gives you the former ball when feeding into a validator (the “Ball-O-Matic”).
Here’s the write-up for the fourth challenge, which has nothing to do with dominoes.
Encoding Part :
For the Day 04 Hackvent challenge, we were given the following instructions :
That’s pretty straightforward substitution cipher, only with dominoes symbols instead of letters. First, we have to encode it into letters, using their order of appearance :
ab cde fgbh ij cde kfabhl cd e ibemeneh ogb ap qabr
To decode it, you will need an interactive tools where you can update the sustitution table and see immediately the decoded result. Personnally I used the tool provided by CryptoTools. To break a substitution cipher, you need to guess where the right letters are, by using letter frequencies.
In English (I assume the message is in English), the most common letters are
'a' so, by looking at the ciphertext, I can assume
'e' is encoded either as
The most frequent digrams are
IT, so it’s likely that
'ap' are encoded versions of one of 5 former digrams. Again for the trigrams, the most common ones being
The real breakthrough comes by looking at trigrams : there is a “cde” word which is repeated three times in the ciphertext. Moreover, two of the repetitions are enclosing a word -
"kfabhl" - so it can only be
"THE". After many trials and errors, here is the result :
(The cryptoclub tool not supporting other characters than simple alphabet, I used
'x' instead of