Contents

RITSEC CTF 2021 - Misc/Web/Crypto

RITSEC CTF 2021 - Misc/Web/Crypto

Robots

/ritsec2021-misc/robots.png

Go to the website given and check the /robots.txt file. The flag is given in base64 encoding.

/ritsec2021-misc/robots2.png /ritsec2021-misc/robots3.png

Revision

/ritsec2021-misc/revision.png

More or less like the other git challenges. I tried to script out some of it but for whatever reason every time I tried to greab the SHA’s of the blobs it didnt’ pull all of them. Either way, you can see what I was trying to do first and then when that didn’t work I just pulled the repo to Github desktop and looked at the revisions manually.

Try 1

/ritsec2021-misc/revision3.png

1
2
3
4
5
 #!/bin/bash

while read x; do 
git cat-file -p "$x" >> output.txt
done < ~/Downloads/Revision/sha.txt

With this I kept getting incomplete flags such as RS{Iyur1pedh3git_c0ms}. I’ll have to go back and see if I can figure out what was going on.

Try2

/ritsec2021-misc/revision2.png

Corruption

/ritsec2021-misc/corr.png

When you try to clone this repo it throws an error that it may be corrupted. After some googling it turns out this is a common error and can possibly be fixed by setting a few git global config options to certain settings. Afterwards I was able to view the revisions to the repo and one of them was the flag.

/ritsec2021-misc/corr2.png /ritsec2021-misc/corr3.png /ritsec2021-misc/corr4.png /ritsec2021-misc/corr5.png

Enigma

/ritsec2021-misc/enigma.png

The text you’re given is crypted with the Enigma Machine. Turing was one of the scientists to crack it during WW2. Go watch The Imitation Game.

/ritsec2021-misc/enigma2.png

Lorem Ipsum

/ritsec2021-misc/lorum.png

This text is encoded using the Ave Maria cipher. The flag is case sensitive so you have to pay attention to which words are capitalized in the cipher since everything comes out all capitals if you put it into an online decoder. A lot of people though the flag was wrong on this one because they weren’t paying attention.

/ritsec2021-misc/lorum2.png