Tags: crypto 

Rating: 3.0

#Problem Statement

>A CNN reporter had only one question that she couldn't get off her mind

>Do we even know, who is this 4 CHAN???
>So she set out to find who this 400lb hacker is. During her investigation, she came across this cryptic message on some politically incorrect forum online, can you figure out what it means?



Upon opening the txt file give, we immediately noticed that it alternated between 2 things: `TOP` and `KEK`. Considering that this is a cryptography problem, we immediately thought binary. Then we noticed the `!`. From this, we can deduce that `TOP` and `KEK` indicate either `0` or `1` and `!` indicate the number of `0` or `1`. Now we just have to write a program to test this theory!

for i in open("topkek.txt", "r").read().split(" "):
if ("KEK" in i):
print ("0" * (len(i) - 3), end = "")
print ("1" * (len(i) - 3), end = "")

From this program we get

Then we can use this [website](http://www.binaryhexconverter.com/binary-to-ascii-text-converter) to convert the binary to ascii and we get the flag!



Original writeup (https://github.com/Alaska47/HackTheVote-2016-Writeups/tree/master/crypto/50-TOPKEK).