> 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/suninatas/suninatas-game-01.md).

# \[SuNiNaTaS] Game 01

문제 출처 : <http://suninatas.com/challenge/web01/web01.asp>

***

<figure><img src="https://blog.kakaocdn.net/dna/dCzHgh/dJMcahiu5mF/AAAAAAAAAAAAAAAAAAAAAFkTFOiMVI87lMUhyzeamhnYU8SjZB2XF6HD8UYo4Dfz/img.png?credential=yqXZFxpELC7KVnFOS48ylbz2pIh7yKj8&#x26;expires=1782831599&#x26;allow_ip=&#x26;allow_referer=&#x26;signature=js%2BMQ%2FMgQLfrBjpgZiUdIP5okTc%3D" alt="" height="656" width="660"><figcaption></figcaption></figure>

여기서 Request는 값을 받아오고 Replace는 문자를 바꿔주는 함수이다.

a -> aad로 치환되고 i -> in으로 치환된다.\
str값에 ami를 넣어주면 Replace(str, "a", "aad")에서 aadmi가 된 후, Replace(result, "i", "in")에서 aadmin가 된다.\
result1 = Mid(result,2,2)에서 ad, result2 = Mid(result,4,6)에서 min (4번째 문자열에서 6글자를 추출하는 것으로, 어차피 뒤에 글자가 없으니 n까지만 나온다.)

따라서 admin이 되어 Authkey를 획득할 수 있고,&#x20;

<figure><img src="https://blog.kakaocdn.net/dna/bkbySy/dJMcaap8ZVy/AAAAAAAAAAAAAAAAAAAAAGM4w5Fl7UqksXkHluotq9v_5K6RMyV4eWRBBUYKc1TI/img.png?credential=yqXZFxpELC7KVnFOS48ylbz2pIh7yKj8&#x26;expires=1782831599&#x26;allow_ip=&#x26;allow_referer=&#x26;signature=tnUsfUPQVht4lQOa8t2GUC9B5No%3D" alt="" height="185" width="570"><figcaption></figcaption></figure>

위와 같이 팝업창이 뜬다.&#x20;

<figure><img src="https://blog.kakaocdn.net/dna/05kg1/dJMcahiu5tX/AAAAAAAAAAAAAAAAAAAAAFAynvOrxPSnCZAQ26DFqq_izP-Bv9PzuzA1kxX-Sdz6/img.png?credential=yqXZFxpELC7KVnFOS48ylbz2pIh7yKj8&#x26;expires=1782831599&#x26;allow_ip=&#x26;allow_referer=&#x26;signature=uEU52kHs84z3ntoayhdGuEC%2FBwg%3D" alt="" height="83" width="420"><figcaption></figcaption></figure>

인증란에 넣어주면 해결되었다 뜨게된다.&#x20;

<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/suninatas/suninatas-game-01.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.
