PicoCTF Writeup – la cifra de

Information:

CTF Name: PicoCTF

CTF Challenge: la cifra de

Challenge Category: Cryptography

Challenge Points: 200

PicoCTF 2019.

# Challenge Description:

I found this cipher in an old book. Can you figure out what it says? Connect with nc jupiter.challenges.picoctf.org 5726.

Hint: There are tools that make this easy. Perhaps looking at history will help

Writeup

In this challenge we are given a netcat host and address, the entire command in fact. I went to my Linux terminal and copy paste it, this was the output:

By looking at this it is easy to understand that we are in the presence of some kind of substitution cipher. Knowing this and by reading both the challenge title and the hint, I thought that maybe it is an old cipher from a French man. I then started thinking about French named ciphers and Vigenère cipher came to mind!

I decided to read a little about it, and as I thought it is a substitution cipher and Vigenère was French. I search online for a tool that cracked this type of cipher and I came across this one.

I then decided to copy the first sentence of the encrypted message and paste it on the tool to see if it was able to crack it. This was the result:

As you can see in the image above we get several options for the plaintext on the left. However, by reading it we can see that only the first one makes sense. Therefore we can see with relative confidence that “FLAG” is the key used to encrypt the message.
 
After knowing this I went back to the encrypted message and I was able to find the encrypted flag. See below:
 
 
 
Now that we know the key and the correct sentence with the flag we simply have to go to the tool used before and add the sentence as ciphertext and the key as “FLAG“. After trying this the result was garbage. It seems that they change the flag for this sentence at least. I was forced to use the same method and the result was:
 
 
As you can see they changed the Key to GFLA. Well it did not matter! This amazing tool cracked it anyway hehe.

And the flag is:

picoCTF{b311a50_0r_v1gn3r3_c1ph3r6fe60eaa}
Show flag
picoCTF{b311a50_0r_v1gn3r3_c1ph3r6fe60eaa}

Thank you very much for reading!

Cheers,

MRegra


Share this post:

Popular posts

Leave a Reply

Your email address will not be published. Required fields are marked *