> 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-giant.md).

# \[Lord Of SQLInjection] giant

<figure><img src="https://blog.kakaocdn.net/dna/oNEhY/btsMC8iMpJA/AAAAAAAAAAAAAAAAAAAAACDRfuhhIhvcsK7iB0mMk3UVWlzJaOreFLW-OALTBznb/img.png?credential=yqXZFxpELC7KVnFOS48ylbz2pIh7yKj8&#x26;expires=1782831599&#x26;allow_ip=&#x26;allow_referer=&#x26;signature=4tTWGKEWpOPLiP1hihdwl7%2ForHQ%3D" alt="" height="261" width="459"><figcaption></figcaption></figure>

여기서 살펴봐야할 코드는 다음과 같다.

```
if(strlen($_GET[shit])>1) exit("No Hack ~_~");
```

→ shit의 길이가 1보다 크면 뚫을 수 없게 해놨다.

```
$query = "select 1234 from{$_GET[shit]}prob_giant where 1";
```

그리고 from과 prob\_giant가 붙어있다 = 공백이 없음

```
if(preg_match('/|\\n|\\r|\\t/i', $_GET[shit])) exit("HeHe");
```

→ 여기서 필터링 되는 구문들이 몇 개 있다.

우선 공백을 넣는 방법은 대표적으로 다섯개 존재한다.

%09 (tab \t)

%0a (linefeed \n)

%0b (vertical tab)

%0c (form feed)

%0d (carriage return \r)

⇒ 여기서 %0b와 %0c만 필터링 안 된다는 것을 알 수 있다.

<figure><img src="https://blog.kakaocdn.net/dna/lRa34/btsMC7EaIpa/AAAAAAAAAAAAAAAAAAAAAC-_oqkm3mdHBf-iFSHvlcqcHBPxCLB4uOPlLgyoxp5e/img.png?credential=yqXZFxpELC7KVnFOS48ylbz2pIh7yKj8&#x26;expires=1782831599&#x26;allow_ip=&#x26;allow_referer=&#x26;signature=HfoWG02qQkbMhcq8kuViDY%2BV3DU%3D" alt="" height="331" width="455"><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-giant.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.
