> 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/lord-of-sql-injection/lord-of-sqlinjection-vampire.md).

# \[Lord Of SQLInjection] vampire

<figure><img src="https://blog.kakaocdn.net/dna/tvkt6/btsMBjzmzRC/AAAAAAAAAAAAAAAAAAAAAOcqOm1vVtaAJXsnRDjUDhPXOBWaXVKoNNlhZ9iASlFJ/img.png?credential=yqXZFxpELC7KVnFOS48ylbz2pIh7yKj8&#x26;expires=1782831599&#x26;allow_ip=&#x26;allow_referer=&#x26;signature=w6bjmDIZB9MOzmaZoKY54UqWrVE%3D" alt="" height="418" width="499"><figcaption></figcaption></figure>

→ 문제를 보면,

```
$_GET[id] = str_replace("admin", "", $_GET[id]);
```

→ admin이 “”로 치환되고 있음을 확인할 수 있다.

→ admin을 리턴하되 인식시키는 방법을 사용하기 위해 다음과 같이 브라우저에 접속한다.

```
[도메인값]?id=adadminmin
```

<figure><img src="https://blog.kakaocdn.net/dna/bwP5n3/btsMDuFTqgY/AAAAAAAAAAAAAAAAAAAAACDiJB5qKokMONFGNunNUHn7Qr0DOrQFYNyf8x8l8zMx/img.png?credential=yqXZFxpELC7KVnFOS48ylbz2pIh7yKj8&#x26;expires=1782831599&#x26;allow_ip=&#x26;allow_referer=&#x26;signature=PxFyy2WncV4RQPBjiEc2las1zI4%3D" alt="" height="439" width="648"><figcaption></figcaption></figure>

→ 클리어 창이 뜬다.

<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/lord-of-sql-injection/lord-of-sqlinjection-vampire.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.
