Do or Die - CTF 8
Hello and welcome to another write-up! Today, we will be tackling an Intermediate Level Cryotherapy Challenge. Let's get started!
Challenge Details:
CTF Name: Do or Die
Topic: Cryptography
Level: Intermediate
Flag Format: IHC_CTF{}
CTF Link: https://t.me/ctf_invisiblehc/15
Description:
Cryptography is amazing. It is very simple to solve. But sometimes it becomes too difficult.
This is like a do or die CTF.
Download this file:
https://drive.proton.me/urls/RMFZ3YY4HM#O8EVOmJn8VL8
Solution:
We downloaded the txt file from the given challenge link. When I opened the txt file, I found a cipher text with just two words: 'die' and 'do'. Now, we will decrypt the cipher text using this The Python code.
text = input("Enter the text: ")
counter = 0
results = []
while True:
if text[counter:counter+2].lower() == "do":
results.append("1")
counter += 2
elif text[counter:counter+3].lower() == "die":
results.append("0")
counter += 3
else:
break
print("".join(results)) After converting binary, when I decoded the binary code, we got this text.