# old-38 (100)

첫 화면이다.

![](/files/-M1xPQ-DBDBDIwEYp-Yo)

페이지 소스는 아래와 같다.

```markup
<html>
<head>
<title>Challenge 38</title>
</head>
<body>
<h1>LOG INJECTION</h1>
<form method=post action=index.php>
<input type=text name=id size=20>
<input type=submit value='Login'>
</form>
<!-- <a href=admin.php>admin page</a> -->
</body>
</html>
```

<https://webhacking.kr/challenge/bonus-9/admin.php> 에 접속하면 아래와 같은 창이 뜬다.

![](/files/-M1xQ-SVz1CparZxCzel)

페이지 소스를 아래와 같이 수정한다. 즉, 8번째 줄의 input 태그를 textarea로 수정한다.

```markup
<html>
<head>
<title>Challenge 38</title>
</head>
<body>
<h1>LOG INJECTION</h1>
<form method=post action=index.php>
<textarea type=text name=id size=20>
<input type=submit value='Login'>
</form>
<!-- <a href=admin.php>admin page</a> -->
</body>
</html>
```

폼에 아래와 같이 입력 후 제출한다.

![](/files/-M1xSa3Ze9PRncYqPpw_)

<https://webhacking.kr/challenge/bonus-9/admin.php> 에 접속하면 문제가 풀린다.

![](/files/-M1xSmCCKmpHcOnpfnpE)


---

# 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://donghyunlee.gitbook.io/write-up/wargame/webhacking.kr/old-38-100.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.
