> For the complete documentation index, see [llms.txt](https://alham-rizvi.gitbook.io/alhamrizvi/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://alham-rizvi.gitbook.io/alhamrizvi/picoctf-writeups/picoctf/general-skills/bytemancy-0.md).

# bytemancy 0

The challenge presents a Python script running on a remote server. It asks for "ASCII DECIMAL 101, 101, 101, side-by-side, no space." If the input matches the character representation of those numbers, the server provides the flag.

#### **The Logic**

In computer science, every character you type has a corresponding numerical value called an **ASCII code**. The script performs a comparison check:

```python
if user_input == "\x65\x65\x65":
    print(open("./flag.txt", "r").read())
```

* **`\x65`** is the Hexadecimal representation of the number **101**.
* According to the ASCII table, the decimal value **101** maps to the lowercase letter **`e`**.
* Therefore, the string `"\x65\x65\x65"` is equivalent to the string **`eee`**.

#### **The Solution**

1. **Connect** to the server using `nc candy-mountain.picoctf.net 62026`.
2. **Translate** the decimal values:
   * 101 = `e`
   * 101 = `e`
   * 101 = `e`
3. **Input** the string: `eee`
4. **Result**: The server validates the match and prints the flag.

#### **Key Takeaway**

ASCII is **case-sensitive**.

* Lowercase `e` is **101**.
* Uppercase `E` is **69**.

In CTF challenges, always double-check whether the prompt asks for Decimal, Hex, or Octal, as "101" means something different in each base!

**Flag:** `picoCTF{pr1n74813_ch4r5_9b465df3}`


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## 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 following URL with the `ask` and `goal` query parameters:

```
GET https://alham-rizvi.gitbook.io/alhamrizvi/picoctf-writeups/picoctf/general-skills/bytemancy-0.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `build a script that syncs our docs to a CMS` lets GitBook tailor the answer to that use case.

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.
