当前位置:网站首页>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了

边栏推荐
- Thinkphp5 how to determine whether a table exists
- Matplotlib剑客行——初相识Matplotlib
- 西瓜书--第五章.神经网络
- Operation and application of stack and queue
- Jd.com interviewer asked: what is the difference between using on or where in the left join association table and conditions
- Attributes of classfile
- Taking the upgrade of ByteDance internal data catalog architecture as an example, talk about the performance optimization of business system
- Microservice practice | Eureka registration center and cluster construction
- Programmers with ten years of development experience tell you, what core competitiveness do you lack?
- AMQ 4043 solution for errors when using IBM MQ remote connection
猜你喜欢

Chrome video download Plug-in – video downloader for Chrome

Matplotlib剑客行——没有工具用代码也能画图的造型师

Difference between redis serialization genericjackson2jsonredisserializer and jackson2jsonredisserializer

微服务实战|手把手教你开发负载均衡组件
![[go practical basis] how to set the route in gin](/img/23/f38d68c4fd238d453b9a7670483002.png)
[go practical basis] how to set the route in gin

西瓜书--第五章.神经网络

Solutions to Chinese garbled code in CMD window

Customize redis connection pool

Operation and application of stack and queue

我服了,MySQL表500W行,居然有人不做分区?
随机推荐
How to use pyqt5 to make a sensitive word detection tool
[go practical basis] how to bind and use URL parameters in gin
C语言之判断直角三角形
我服了,MySQL表500W行,居然有人不做分区?
MySQL事务
西瓜书--第五章.神经网络
Timed thread pool implements request merging
How to choose between efficiency and correctness of these three implementation methods of distributed locks?
数构(C语言)——第四章、矩阵的压缩存储(下)
告别996,IDEA中必装插件有哪些?
Failed to configure a DataSource: ‘url‘ attribute is not specified and no embedd
Taking the upgrade of ByteDance internal data catalog architecture as an example, talk about the performance optimization of business system
What are the differences between TP5 and laravel
What is the function of laravel facade
View the port of the application published by was
微服务实战|手把手教你开发负载均衡组件
Customize redis connection pool
Redis installation and deployment (windows/linux)
[go practical basis] how to set the route in gin
Data type case of machine learning -- using data to distinguish men and women based on Naive Bayesian method