当前位置:网站首页>[MRCTF2020]Ez_ bypass --BUUCTF
[MRCTF2020]Ez_ bypass --BUUCTF
2022-06-13 00:27:00 【Golden silk】
Open the connection

emmm, Careful observation shows that these are php Code , Copy, paste and organize to get
include 'flag.php';
$flag='MRCTF{xxxxxxxxxxxxxxxxxxxxxxxxx}';
if(isset($_GET['gg'])&&isset($_GET['id'])) {
$id=$_GET['id'];
$gg=$_GET['gg'];
if (md5($id) === md5($gg) && $id !== $gg) {
echo 'You got the first step';
if(isset($_POST['passwd'])) {
$passwd=$_POST['passwd'];
if (!is_numeric($passwd))
{
if($passwd==1234567)
{
echo 'Good Job!';
highlight_file('flag.php');
die('By Retr_0');
}
else
{
echo "can you think twice??";
}
}
else{
echo 'You can not get it !';
}
}
else{
die('only one way to get the flag');
}
}
else {
echo "You are not a real hacker!";
}
}
else{
die('Please input first');
}
Next audit php Code ,md5 The function has a drawback that when the parameter passed in is an array , Returns the false, So here we build payload,get The ginseng
?id[]=1&gg[]=2Next, according to PHP characteristic , When comparing , It will be converted to the same type before comparison , such as
if('1562adsfa' > 111)
Will be converted into
if(1562 > 111)
Then compare
So we can post The ginseng , structure payload
passwd=1234567abc
use hackbar The ginseng

Get flag
边栏推荐
- 机加工行业MES系统模具行业MES系统CNCl中工行业MES系统MES扫码报工MES数据采集
- Free lottery --- PMP renewal PDU | PMP knowledge map
- MAYA建模六
- Apispace empty number detection API interface is free and easy to use
- VHDL programming experiment exercises collection
- KAUST:Deyao Zhu | 价值记忆图:基于离线强化学习的图结构世界模型
- Tsinghua-Bosch Joint ML Center, THBI Lab:Chengyang Ying | 通过约束条件风险价值实现安全强化学习
- [matlab] 3D curve and 3D surface
- 在 Golang 中构建 CRUD 应用程序
- [GXYCTF2019]禁止套娃--详解
猜你喜欢

What are the PMP scores?

What occupation is suitable for PMP?

进程间通信-共享内存shmat
![[matlab] symbol calculation](/img/a5/7682a465ca2813a83114c091580c53.png)
[matlab] symbol calculation

Successfully installed opencv under delphixe

PLC也能制作小游戏----Codesys编写猜数字小游戏

MASA Auth - 从用户的角度看整体设计

PLC can also make small games ----- CoDeSys can write small games of guessing numbers

一篇文章学会子网划分

Maya modeling VI
随机推荐
[GXYCTF2019]禁止套娃--详解
[GYCTF2020]Ezsqli --BUUCTF
新增博客地址
【HCIE论述】STP-A
Is the PMP training organization an actual training?
[MRCTF2020]Ez_bypass --BUUCTF
2022施工員-設備方向-通用基礎(施工員)操作證考試題及模擬考試
[Error] invalid use of incomplete type 使用了未定义的类型
1115. alternate printing foobar
Explain bio, NiO, AIO in detail
Several interview questions in TCP three grips and four swings
Do you really use the buffer buffer in PostGIS?
How to visit a website
PMP test difficulty and pass rate
Do you have to read for PMP?
3、 Storage system
After so long use, CSDN has finally opened a blog
A detailed explanation of synchronized
2022 beautician (technician) certificate title and answer
Use of split() method in string class