Skip to content
Hwat Sauce avatarhwat.sauce
~/posts/AirTech1.mdx

$ cat AirTech1.mdx

_

$ date → March 1, 20241 min read230 words

// AirTech CTF 2024 — part 1 of 2

  1. 1. AirTech CTF 2024 - Back To The Bases (you are here)
  2.   2. AirTech CTF 2024 - ttcccppp

AirTech CTF 2024 - Back To The Bases

A network forensics writeup from AirTech CTF 2024 — following a TCP stream in Wireshark, carving a file out of FTP traffic, and brute-forcing its cipher down to the flag.


Let's get Cracking...#

Challenge 01: Back to the bases#

There was a Wire Shark file given in order for us solve the challenge. You can also download the challenge file by clicking here

When I opened the file I noticed that there are some TCP packets.

first

So without any delay I followed the TCP Stream from Analyze > Follow > TCP Stream menu. After following it I found the following chat.

first

As they are talking about a file. So I applied the FTP filter and found a flag.txt file.

first

So I extracted it from File > Extract Object > FTP Data.

first

After saving and opening the file I found the following text.

first


AFAi^Xd%^W  ^TA ^XAj]j]j]!)btGBQZUQhvA--
CIPHER

AFAi^Xd%^W  ^TA ^XAj]j]j]!)btGBQZUQhvA--
CIPHER

Now if you remember from the chat there where two more leads as well.

first

  • Can you pass me the XOR key.
  • ssure btw its 5

So I simply opened CyberChief and typed XOR and used 05 as the key but sadly it didn't work.

first

But when you have a key you always have the option to Brute Force it. When I Brute Forced the cipher I found a base64 encoded string.

first

Simply decoded the string and got the flag.

first

Flag: AT24{y4m44444t33333_kud@$@1}

Stay in the loop with my latest content – follow me on Medium for more!

THANKS

MUHAMMAD ABDULLAH