> For the complete documentation index, see [llms.txt](https://docs.cooku222.kr/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.cooku222.kr/security/web-hacking/dreamhack/dreamhack-flying-chars.md).

# \[Dreamhack] Flying Chars

#### 문제 링크

<https://dreamhack.io/wargame/challenges/850>

\
문제

<figure><img src="https://blog.kakaocdn.net/dna/czbxHD/btsD3cO0W8z/AAAAAAAAAAAAAAAAAAAAAK9M5V6_OTopFQy-Z5IjmDFh89X3h4DD29KrrErEtOKA/img.jpg?credential=yqXZFxpELC7KVnFOS48ylbz2pIh7yKj8&#x26;expires=1782831599&#x26;allow_ip=&#x26;allow_referer=&#x26;signature=mdywJktOu6mFowVFj1%2BSPYEn7NQ%3D" alt="" height="288" width="808"><figcaption></figcaption></figure>

&#x20;

#### 풀이

<figure><img src="https://blog.kakaocdn.net/dna/cxhgjm/btsD3bbxiTG/AAAAAAAAAAAAAAAAAAAAAAa1tuycnaXmRwPzYoeMyvF7CnI6H2SjgDPK8jVWeTc5/img.jpg?credential=yqXZFxpELC7KVnFOS48ylbz2pIh7yKj8&#x26;expires=1782831599&#x26;allow_ip=&#x26;allow_referer=&#x26;signature=yJ6BHkUajPIDK4rXqITJvqf9JdM%3D" alt="" height="897" width="1542"><figcaption></figcaption></figure>

웹 페이지에 접속하면 글자들이 날아다니는 것을 볼 수 있다. \
이 상태에선 해결 불가능하므로 소스코드를 본다.(이 문제는 첨부파일이 없으므로 페이지 내에서 소스코드를 보는 것이 맞다.)

<figure><img src="https://blog.kakaocdn.net/dna/AZ8eC/btsD7oUSZ3c/AAAAAAAAAAAAAAAAAAAAAJU4WCnYFS2Wmmpbfk6eaQ_jVglgxQ41eEXu1vZmsq_s/img.jpg?credential=yqXZFxpELC7KVnFOS48ylbz2pIh7yKj8&#x26;expires=1782831599&#x26;allow_ip=&#x26;allow_referer=&#x26;signature=y%2BDh%2Ft7b4qeH%2FyTtIAsU9D5q4hg%3D" alt="" height="191" width="767"><figcaption></figcaption></figure>

전체 소스코드에서 발췌한 부분인데, for문에 글자가 날아다니게 하는 구문이 작성되어 있는 것을 해당 코드에서 확인할 수 있다.

```
for(var i = 0; i < 20; i++){
      anim(imgs[i], 0, 1);
    }
```

위와 같이 코드를 개발자 도구 콘솔 창에 입력을 해주면

<figure><img src="https://blog.kakaocdn.net/dna/ebNEZ5/btsD4Tnp01f/AAAAAAAAAAAAAAAAAAAAAKeqM2tHrqmpMl5sekhFfdzNRO8jEEYwi4gvD2G2jrw4/img.jpg?credential=yqXZFxpELC7KVnFOS48ylbz2pIh7yKj8&#x26;expires=1782831599&#x26;allow_ip=&#x26;allow_referer=&#x26;signature=8iWSzgm7J9a75vfTyLxYSPLZfyc%3D" alt="" height="880" width="266"><figcaption></figcaption></figure>

아래와 같이 글자가 새로로 천천히 정렬된 채로 이동하는 것을 볼 수 있다.\
이 문제에서 플래그 형태는 DH{}이다. {}안에 저 문자열을 입력하면 플래그를 획득할 수 있다.

<br>


---

# 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 current page URL with the `ask` query parameter:

```
GET https://docs.cooku222.kr/security/web-hacking/dreamhack/dreamhack-flying-chars.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.
