当前位置:网站首页>BugkuCTF-web24(解题思路及步骤)
BugkuCTF-web24(解题思路及步骤)
2022-07-02 06:34:00 【hangshao0.0】
看题
到处找,都没有额外信息
抓包
发现“链接”那个地方隐藏了一个a标签,点击跳转,得到代码
分析代码
<?php
if(isset($_GET['v1']) && isset($_GET['v2']) && isset($_GET['v3'])){
$v1 = $_GET['v1'];
$v2 = $_GET['v2'];
$v3 = $_GET['v3'];
if($v1 != $v2 && md5($v1) == md5($v2)){
if(!strcmp($v3, $flag)){
echo $flag;
}
}
}
?>
又跟md5有关,前面其实已经写过一篇了
https://blog.csdn.net/weixin_45254208/article/details/115425962
但是不仅要满足md5,还要使变量 $ v3等于变量 $ flag,strcmp无法识别数组,直接返回0,看来,三个变量全部可以构造数组绕过
构造payload
http://114.67.246.176:17268/?v1[]=1&v2[]=2&v3[]=3
OK,出flag了
边栏推荐
- Chrome用户脚本管理器-Tampermonkey 油猴
- Chrome浏览器插件-Fatkun安装和介绍
- 以字节跳动内部 Data Catalog 架构升级为例聊业务系统的性能优化
- What is the function of laravel facade
- Timed thread pool implements request merging
- [staff] time mark and note duration (staff time mark | full note rest | half note rest | quarter note rest | eighth note rest | sixteenth note rest | thirty second note rest)
- Programmers with ten years of development experience tell you, what core competitiveness do you lack?
- Redis sorted set data type API and application scenario analysis
- Microservice practice | declarative service invocation openfeign practice
- Operation and application of stack and queue
猜你喜欢
Complete solution of servlet: inheritance relationship, life cycle, container, request forwarding and redirection, etc
数构(C语言)——第四章、矩阵的压缩存储(下)
Don't look for it. All the necessary plug-ins for Chrome browser are here
Data type case of machine learning -- using data to distinguish men and women based on Naive Bayesian method
Flink - use the streaming batch API to count the number of words
Chrome user script manager tempermonkey monkey
微服务实战|熔断器Hystrix初体验
web安全与防御
Difference between redis serialization genericjackson2jsonredisserializer and jackson2jsonredisserializer
盘点典型错误之TypeError: X() got multiple values for argument ‘Y‘
随机推荐
每天睡觉前30分钟阅读_day4_Files
[staff] time mark and note duration (staff time mark | full note rest | half note rest | quarter note rest | eighth note rest | sixteenth note rest | thirty second note rest)
Redis sorted set data type API and application scenario analysis
Matplotlib swordsman Tour - an artist tutorial to accommodate all rivers
Watermelon book -- Chapter 6 Support vector machine (SVM)
MySQL multi column in operation
Watermelon book -- Chapter 5 neural network
DTM distributed transaction manager PHP collaboration client V0.1 beta release!!!
How to choose between efficiency and correctness of these three implementation methods of distributed locks?
Required request body is missing:(跨域问题)
《统计学习方法》——第五章、决策树模型与学习(上)
Say goodbye to 996. What are the necessary plug-ins in idea?
A detailed explanation takes you to reproduce the statistical learning method again -- Chapter 2, perceptron model
JVM指令助记符
VIM操作命令大全
Amq6126 problem solving ideas
西瓜书--第五章.神经网络
Timed thread pool implements request merging
Mysql默认事务隔离级别及行锁
Dix ans d'expérience dans le développement de programmeurs vous disent quelles compétences de base vous manquez encore?