NOVA CTF 2023 WRITEUP(Misc)

Vishal ML
iQube
Published in
3 min readMar 12, 2023

CHALLENGE: FIND A WAY TO LET ME IN

CATEGORY: MISC

CHALLENGE DESCRIPTION:

Greetings, fellow hackers! The Impossible Mission Force (IMF) may have been disbanded, but we have a mission for you that will require all your code-cracking superhero skills. Ethan is in a bind and needs your help. The CIA has caught on to his covert activities and is hot on his tail. Ethan is worried that the CIA will intercept his messages, so he needs your help to make sure his secret message stays safe and hidden.

We know you’re up for the challenge, but be warned — this is no walk in the park. The zip file we’ve provided is locked up tighter than a bank vault, and the password is “letmein.” Hey, we never said we’d make things easy for you!

Yes , we can use John here….!

Once you crack open that zip, you’ll find not one, but two rar files. Exciting, right? Extracting that zip file will give you some interesting files with strange names like blablabla(NV).rar and pipipi(OA).rar. But don’t be fooled by their silly names — these files hold the key to your success.

Inside each rar file, you’ll find 750 tar files. That’s right, 750! But don’t worry, we believe in you. Your mission is to extract every single tar file and print out the characters inside. Every. single. character. Sounds like fun, doesn’t it?

And what is waiting for you at the end of all this demanding work? A flag! The flag is hiding between files 1871.tar and 1907.tar in the V.zip file. Easy peasy, right?

Now, we know you’re thinking, “I’m not doing all that work manually!” Fear not, we’ve got you covered. We’ve provided a simple bash script to automate the process. All you need to do is run it in each N.rar, V.zip, O.rar, and A.zip, and the final solution will be waiting for you in the file “finalsol.”

Without further ado, here’s the Simple bash script:

#!/bin/bash
#Loop through the tar files and extract the corresponding text file
for i in {1501..2250}; do
tar -xf ${i}.tar ${i}.txt
done
#Concatenate the characters of each text file without spaces and save the #result to finalsol.txt
for i in {1501..2250}; do
tr -d '[:space:]' < ${i}.txt >> finalsol
done
#Cleanup:remove the extracted text files
rm *.txt
echo "Voila! We did it!"

RUNNING THE SCRIPT

There is a flag..!!

Flag is : NOVA{y0u’11_d0_wh47_n33d5_70_b3_d0n3}

So, are you up for the challenge? Can you help Ethan keep his secret message safe from prying eyes? Only time will tell, but we have faith in you, dear hacker. Good luck!

If you have any queries or need to get in touch, you can reach me at the following links:

LinkedIn: https://www.linkedin.com/in/mr-g0d-hacktivist/

Email: mlvishal.2002@gmail.com

Feel free to contact me through either of these channels. Looking forward to hearing from you!

--

--

Vishal ML
iQube
Writer for

Just a man who learns things that interest him!