当前位置:网站首页>xctf攻防世界 Web高手进阶区 PHP2
xctf攻防世界 Web高手进阶区 PHP2
2022-07-28 02:52:00 【l8947943】
0x01.进入环境,查看内容
如图,提示是否能认证成功
使用dirsearch进行扫一波,发现有index.php可以访问
0x02. 问题分析
0x02_1. 源码审计
尝试http://61.147.171.105:53836/index.php,依旧提示需能否认证成功,题目说PHP2,猜想是不是index.phps.
访问链接:http://61.147.171.105:53836/index.phps,呈现出php的源码,如图:
进行代码审计:
- 直接传入id为admin直接回显not allowed
- 当传入url编码后的admin,经过函数可以回显Access granted等结果
- 需要注意的是,浏览器可以对一次编码后的结果直接进行解码
因此,审计后题目的想法是让对admin进行二次编码。
0x02_2. 进行解题
使用burpsuite进行编码,如图:
进行二次编码,得到的admin的二次编码为:%25%36%31%25%36%34%25%36%64%25%36%39%25%36%65
带入到url中进行输入:http://61.147.171.105:53836/index.php?id=%25%36%31%25%36%34%25%36%64%25%36%39%25%36%65,显示结果如图:
最终答案为:cyberpeace{a42c178d69b50f367135a2b6e0c90ecb}
边栏推荐
- Industry insight | is speech recognition really beyond human ears?
- 《工程电磁场导论》课后习题附答案
- 机器人工程是否有红利期
- Comprehensive case
- STM32之IO模拟串口篇
- Engineering Geology Practice - engineering geology problem set
- c#——switch case语句
- Pytoch correlation gradient echo
- max_ pool2d(): argument ‘input‘ (position 1) must be Tensor, not NoneType
- 嵌入式数据库--SQLite
猜你喜欢

《工程电磁场导论》课后习题附答案

Redis经典面试题总结

Analysis of redis network model

Color recognition method and exploration based on MATLAB

Defect detection of BP SVM system design of leaf defect detection

On weight decay and discarding method

【下载文件】uniapp开发小程序,下载文件并保存到本地

静态博客搭建工具汇总

Contour detection based on OpenCV (3)

【SAML SSO解决方案】上海道宁为您带来SAML for ASP.NET/SAML for ASP.NET Core下载、试用、教程
随机推荐
ELS displays a random square
嵌入式开发:提示和技巧——用C进行防御性编程的最佳实践
IO analog serial port of stm32
Tungsten Fabric SDN — BGP as a Service
Decision tree and random forest learning notes (1)
Raspberry pie development relay control lamp
ELS keyboard information
Exness: Japanese prices rose and incomes fell, with the pound / yen breaking 165
Blue Bridge Cup: the ninth - "lantern controller"
动画(animation)
How to reinstall win11 system with one click
阿里云国际版邮件服务套餐购买流程
Comprehensive comparative study of image denoising
基于JSP&Servlet实现的众筹平台系统
Embedded database -- SQLite
vi命令详解
嵌入式数据库--SQLite
bp svm的缺陷检测 树叶缺陷 叶片缺陷检测的系统设计
机器人工程是否有红利期
Leaf recognition, color feature extraction, defect detection, etc