> For the complete documentation index, see [llms.txt](https://l1nwatch.gitbook.io/ctf/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://l1nwatch.gitbook.io/ctf/shi-yan-ba/web/forms.md).

# Forms

## 题目

似乎有人觉得PIN码是不可破解的，让我们证明他是错的。

格式：ctf{}

解题链接： <http://ctf5.shiyanbar.com/10/main.php>

## WriteUp

学一下sqlmap怎么post注入：

<http://www.myhack58.com/Article/html/3/8/2012/35821.htm>

参考WriteUp：

<http://www.shiyanbar.com/ctf/writeup/413>

主要是一开始想着进行POST注入，但是用 `sqlmap -u url --data PIN=test` 说是非注入点，所以就没思路了。

看了WriteUP之后意识到先利用隐藏字段获取源码先，利用Firefox的hackbar：

```php
$a = $_POST["PIN"];

if ($a == -19827747736161128312837161661727773716166727272616149001823847) {

    echo "Congratulations! The flag is $flag";

} else {

    echo "User with provided PIN not found."; 

}
```

额，直接复制那一串数字回车就得到FLAG了，这算啥算啥算啥！！！


---

# 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, and the optional `goal` query parameter:

```
GET https://l1nwatch.gitbook.io/ctf/shi-yan-ba/web/forms.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
