Skip to content

p1ngul1n0/hacktoria-ctf

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

12 Commits
ย 
ย 
ย 
ย 

Repository files navigation

Hacktoria CTF Write-ups

Here i list the solution of all Hacktoria CTF i completed.

Dialogues from Atlantis [EASY]

Description

Greetings, Special Agent K. One of our clients, a wealthy art collector from Monaco, is requesting we help her find a recorded dialogue between Critias, Hermocrates, Timaeus and Soscrates.

In her quest to unravel the mysteries regarding the ancient city of Atlantis, our client wishes to gather all evidence possible as to where the location of the lost city truly is. Getting stuck a fair bit into her endeavors, she has reached out to the Tiberian Order to decipher a piece of text.

Our client believes this text to be of vital importance to prove the existence of Atlantis as a city. Whether it will lead directly to the discovery of the city is doubtful. Nonetheless, itโ€™s of great importance to unravel itโ€™s meaning.

I trust your ability to deal with ciphers and ancient dialogues in this matter. You find the text below. In the end, this will lead to another Contract Card if you manage to complete this assignment.

As always. Special Agent K, the contract is yours, if you choose to accept.

HEX Code

27 76 3d 45 2a 28 27 60 34 4a 63 38 24 76 68 62 78 77 23 40 2a 28 64 43 2b 3f 27 44 78 74 3c 38 2a 28 5f 44 78 75 7d 47 2a 62 79 39 [...]

Solution ๐Ÿ’ก

Step 1 ๐Ÿ“‡

As we have a HEX Code, the first thing you would think is to decode it to ASCII, so let's do it using CyberChef.

alt text

And we ain't got nothing really readable ๐Ÿ˜Ÿ

Step 2 ๐Ÿค

But let's not give up right away, we can begin trying out with the most basic Cryptography algorithms, like ROT.

alt text

Using ROT 47 you will notice a == in the end of the decoded string QgdGhpbmdzLg==.

Step 3 โ›๏ธ

If you have already encoded anything with Base64 you know that it's a standard for encoded strings to have == at the end, so let's decode it.

alt text

Now we have a readable text

Step 4 ๐Ÿ“„

But we ain't having any Flag in our hands yet, we need to find the flag hidden in the text.

If you copy the text and paste in any text editor, you will notice that its all in one line, let's organize to each phrase be in one line, to do that we will use Notepad++ substitute feature to overwrite \. with \n.

alt text

Now the text should be correct.

Step 5 ๐Ÿ”—

Observing the first Words of each phrase you can see that some don't make sense, identifying the word bit with ly right after it, could be this a bitly link?

alt text

Step 6 ๐Ÿด

Assuming that this is a bitly link, let's search for a ID to build a valid URL.

alt text

Now we can build a valid Bitly URL https://bit.ly/3pB2oiW

And Voilร  here is the flag

Cold War Enemies [EASY]

Description

Greetings Special Agent K. Perhaps you remember our old friend Maksim Kotova? After his capture in Panama he was more than willing to cooporate for reduced sentences.

Following up on the leads heโ€™s given us until this point has resulted in the arrest of several high ranking officials and members of various underground organizations. One of his more promising leads, is a military parts smuggling operation organized by one of Maksimโ€™s former Cold War friends, Vasili Semenov.

Semenov is quietly making a fortune selling Russian military spare parts for scraps to the highest bidder. A lot of these parts arenโ€™t even spares in the literal sense of the word. These parts are all brought together through various air bases around Russia and the world, then routed to a central air base. Where theyโ€™re exchanged for cash.

Given the current sticky situation around Russian activity. Not to mention the limited jurisdiction of our client. You are tasked with finding the air base where these sales take place.

The old man wasnโ€™t very much into modern technology, so all we have for you is a sattilite image of the air base. Other items found, are sent to a forensics lab by our client.

Finding the Air Base will lead you to the password for unlocking your link-file.

Password format sample, no caps:

country-governate-district-airbasename-air-base

Airbase Picture

alt text

ZIP Locked File

linkfile-cold-war-enemies.zip

Solution ๐Ÿ’ก

Step 1 ๐Ÿ”

We have a image of the airbase we need to locate, but nothing really recognizable, except for the blue Fighter Jets that looks like Russian aircrafts.

So let's start with the most basic proccess to identify a image, reverse search it.

Using TinEye we can locate a couple of Russian and Vietnamise websites that have a similar image.

alt text

Step 2 ๐Ÿ“Œ

Accessing the first TinEye result we can learn that the Airbase in the picture is called Khmeimim airport base

alt text

Step 3 ๐Ÿ”‘

Searching for Khmeimim airport base in Google Maps we can find the real location of the Airbase.

It's located at Jableh, Latakia, Syria

alt text

With that information we can discover the password.

Step 4 ๐Ÿด

The password format is:

country-governate-district-airbasename-air-base

Completing it, it becomes:

syria-latakia-jableh-khmeimim-air-base

And with that we can unlock the ZIP file, open the TXT file in it and obtain the URL to the FLAG:

https://bit.ly/3DAZZNB

Nightmare Fuel [EASY]

Description

Greetings Special Agent K. Yesterday evening around 2100 hours, two officers of the New York Police Department entered the premise of an abandoned building in Brownsville New York. Neighbors had complained about strange sightings. Supposedly a woman had been squatting inside the building.

Reports also state that over the course of the two years the building has been abandoned, several residents of the surrounding houses had complained about junkies occupying the building. Often making terrible screeching like noises during the night.

Normally, this would not get the attention of the NYPD, however, a neighborsโ€™ security camera had caught several people entering the building, but never seen them emerge. Upon closer inspection, a neighbor reported that all windows were closed and intact. Her security camera had also been on the whole time, surveying the only entrance to the building.

This eventually got the NYPD to investigate the building. While clearing rooms, the officers noticed someone moving around at the end of a hallway. Upon repeated calls and commands, the individual retreated behind a door. Both officers approached the door and told the person to come out. After a few seconds, we could see a woman move past the door frame.

Unresponsive to any commands given by the officers, they continued their search. Never to find the woman again. The officers called for backup and had a team of twelve officers and a K-9 unit sweep the building.

Nobody was ever found. Even the dog didnโ€™t find a trail. Which is odd, given all the smells clearly lingering around an old building like that. Strangely enough, upon inspecting the body cam footage, the audio appeared to be missing entirely.

We need you to take a look at the video and see what you can find.

As always, Special Agent K, the contract is yours. If your choose to accept.

Find the password to open the Linkfile, wherever or whatever that might be.

Officer 1 Bodycam Video

bodycam-officer-1.mp4

ZIP Locked File

linkfile-nightmare-fuel.zip

Solution ๐Ÿ’ก

Step 1 ๐Ÿ“น

We have a chilling video ๐Ÿ˜ฌ, a girl in a white dress crossing the hall in the dark

The video don't have any audio and upon watching it, we can't see any readable text, but we can see its metadata โ˜บ๏ธ.

Using Metadata2go we can upload it and view all metadata.

alt text

Step 2 ๐Ÿด

Scrolling down the results, we can see that there is a comment in the metadata, which looks like a pretty strong password, doesn't it?

alt text

fh453n3fk45b384gm$&%#fjksdfmo94853ff

And with that we can unlock the ZIP file, open the TXT file in it and obtain the URL to the FLAG:

https://bit.ly/3fYWbvM

The Butcher [EASY]

Description

Greetings, Special Agent K. As you might have heard in the news over the past few months. The city of Berlin in Germany is being plagued by a serial killer, nicknamed โ€œThe Butcherโ€.

As the name implies, this individual butchers his victims and disposes their body parts all over the city. Autopsy reports conclude that the weapon for disposal is most likely a meat cleaver.

The total body count currently sits at 18 people, mostly women and younger men. All victims were traveling alone at night, mostly through quiet areas, when they were last seen.

Fortunately, yesterday the German police raided an apartment in the city center of Berlin. Neighbors had complained about a stale, metal like smell coming from the apartment. Upon closer inspection, the police found large quantities of plastic sheets, blood traces of several victims and an assortment of meat cleavers.

Since the apartment was rented out to an individual who had used a fake ID, the police has hit a dead end in trying to find the killer. They did however retrieve several files from a personal laptop, including a large, encrypted archive.

In the same location as the archive was stored, a file named โ€œpasswordโ€ was found. However, this just contained a bunch of HEX values. We need you to make sense of this file, perhaps it leads to the password for the archive.

As always, Special Agent K. The contract is yours, if you choose to accept.

Find the password, for this contract, there is no password sample.

Password File

Password File

ZIP Locked File

linkfile-the-butcher.zip

Solution ๐Ÿ’ก

Step 1 ๐Ÿ”ช

The Password File has HEX code in it, so let's use CyberChef, our ally when dealing with decode and encoding.

alt text

And we get something that looks like a file raw content.

Step 2 ๐Ÿช„

Using the CyberChef magicwand, we can identify that it's a MP3 file.

alt text

Step 3 ๐Ÿ“ฅ

Now last download the result file.

alt text

Step 4 ๐Ÿ”‘

Listening to the audio, we can identify the password letters, these are:

fgjkaergnadrmgkhngadrgle

And with that we can unlock the ZIP file, open the TXT file in it and obtain the URL to the FLAG:

https://bit.ly/3EyudkI

About

Tiberian Order Contract Write-ups

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published