# Binary Cryptogram - Unravel the Enigma

## Description :

> A notorious organization, "The Enigma Syndicate," has sent encrypted messages detailing a dark conspiracy. Participants must tackle their binary cryptogram using powerful reverse engineering tool to reveal the sinister plot. Unravel the enigma, stop the conspiracy, and become the ultimate codebreaker in this thrilling CTF challenge!

## Solution :

* Open **Ghidra** and make a new project and import the executable provided.
* Double click on it and let it analyze and decompile the binary.
* Go to the main function and we can see that it is expecting `"error"` as an argument. And performs **strcmp** on it.

![strcmp](https://1613628666-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FKkuxWaWwvkRd57ql1rtY%2Fuploads%2Fgit-blob-b12c452c93826c0fcd5bc87edf23923896367b47%2Fimage.png?alt=media)

* Run the executable with error as an argument and we get the flag.

![flag](https://1613628666-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FKkuxWaWwvkRd57ql1rtY%2Fuploads%2Fgit-blob-92c4521ff0a651f86207dda3145ea7645bdb1b3e%2Fimage-1.png?alt=media)

* Flag:\
  `KPMG_CTF{be441ba8020e7ea99cd879b156db1e79}`


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://j0luuuu.gitbook.io/ctf/kpmg-ctf-2023/binary-cryptogram-unravel-the-enigma.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
