Skip to content

Instantly share code, notes, and snippets.

@renshuki
Last active March 18, 2019 13:23
Show Gist options
  • Save renshuki/b8299414a635c7e8dadd6663448a05b7 to your computer and use it in GitHub Desktop.
Save renshuki/b8299414a635c7e8dadd6663448a05b7 to your computer and use it in GitHub Desktop.
Crack / Decipher Morse

Introduction

Ciphered message:

-.-- -.. --- -... .- ..- / -.. ..- / ..- .- --. / -.-- --.. .-.. -... .- ..- / --.- .--- / --.. / .-. ..- -.. -.- -..- / -... --- -.. ..-. --- / -- -.. ..- / -.-- --.. .-.. -... .. --.- ... --.- .--- ...- / ...- --.. --.- --- - .--. / -..- ..- .- .--- .- --- .. / --.- --- / .-.. -.-- --.- --- --.. .-.-.- / .. -.-- .- / ..-. -.. ..- --. / -.-- -.. --- -... .- ..- / .- ...- .- ..- .-. .- --. / ..-. -.-- .- --- / .. -.-- .- / -.- --- --.- .. .- --. / .--- .. --.. .. .- .--- / .-- -.. ...- .-- .- --. / .. -.-- .- / .-.. -.-- --.- --- .- .--- .- / .- ...- .-- --.. .--- .--- .--. / --.- --- / .-- .- - .-. ..- --.. --. .- .-.-.- / .--- --.- --- .-.. .- / .. -.-- .- --- / -.-- -.. --- -... .- ..- .--- / -- -.. ..- ...- .- --. / --.. / -.-- -.. --- -... .- ..- / -.- --- --.- -.. --- / ..-. -.-- -.. .--- .- / ...- .- ...- .-- .- ..- .--- / .-.. -.. ...- .-- --.- --- .- --. / -.-- --.. .-.. -... --.- --- .-. / .--- -... --.- - - .--- / ..-. --.- .. -.-- / -..- --.. .. ..- --.- -.. .. --.- .--- ...- / --.. --- --. / --- --.. .. --.- -.. --- --.. - --.- .--- ...- .-.-.- / .. -.-- .- .--. / - --.. -.- --- .-.. -.-- .- --. / --.. / .--- .- ..- --.- .- .--- / -.. -- / --.. .. .. --.. .-.. -... .--- / -.. --- / ..-. .- .-- .--- --.- .. .- .--- / --.- --- / .. -.-- .- / -.- --- --.- .. .- --. / .--- .. --.. .. .- .--- .-.-.-

Decipher!

Step 1

Looking for a cipher with the restricted set of characters -, ., / and . Morse cipher seems to be the more likely option here. Spaces used to separate letters and / words.

Step 2

Decipher morse using an online tool or by hand if you have some time to kill :P

Here the result:

YDOBAU DU UAG YZLBAU QJ Z RUDKX BODFO MDU YZLBIQSQJV VZQOTP XUAJAOI QO LYQOZ. IYA FDUG YDOBAU AVAURAG FYAO IYA KOQIAG JIZIAJ WDVWAG IYA LYQOAJA AVWZJJP QO WATRUZGA. JQOLA IYAO YDOBAUJ MDUVAG Z YDOBAU KOQDO FYDJA VAVWAUJ LDVWQOAG YZLBQOR JBQTTJ FQIY XZIUQDIQJV ZOG OZIQDOZTQJV. IYAP TZKOLYAG Z JAUQAJ DM ZIIZLBJ DO FAWJQIAJ QO IYA KOQIAG JIZIAJ.

Huh? What is this mystical language coming from Tolkien's tales?

Step 3

  1. Identify Single Letters

Z appears 3 times as a single letter in our message. Big chances are if the message is in English that Z is a substitute for the letter A.

  1. Identify Letters Frequency

Let's take a look to the frequency of the letter used in the message:

A: 39
O: 27
Q: 23
J: 23
I: 21
...

Most frequent letters in English are:

E T A O I N S H R D L U

Step 4

Try to define the substitution cipher using this tool.

After messing around a bit, you should find: ZWLGAMRYQHBTVODXNUJIKSFCPE for the substitution cipher.

Step 5

Giving you the following message:

HONKER OR RED HACKER IS A GROUP KNOWN FOR HACKTIVISM MAINLY PRESENT IN CHINA. THE WORD HONKER EMERGED WHEN THE UNITED STATES BOMBED THE CHINESE EMBASSY IN BELGRADE. SINCE THEN HONKERS FORMED A HONKER UNION WHOSE MEMBERS COMBINED HACKING SKILLS WITH PATRIOTISM AND NATIONALISM. THEY LAUNCHED A SERIES OF ATTACKS ON WEBSITES IN THE UNITED STATES.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment