当前位置:网站首页>[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
边栏推荐
- [matlab] polynomial calculation
- Matlab [path planning] - UAV drug distribution route optimization
- March 11, 2022 diary: Mr. Wang's spring, strange template mode
- [vscode]todo tree a to-do plug-in
- Context of go concurrency mode
- 安全事故等级划分为哪几级
- Installation of IK word breaker
- PLC也能制作小遊戲----Codesys編寫猜數字小遊戲
- 哲学和文学的区别
- Is the newly graduated college student taking BEC or PMP? PM who wants to transfer to another job in the future
猜你喜欢

1. Google grpc framework source code analysis Hello World

MySQL index

The origin of MySQL in bedtime stories

RCC clock configuration of stm32f401

Basics of network security (1)

On the parameters of main function in C language

测试平台系列(97) 完善执行case部分

Interprocess communication - shared memory shmat

Daily buckle exercise - conclusion

MAYA建模六
随机推荐
6.824 Lab 3B: Fault-tolerant Key/Value Service
2022 constructeur - direction de l'équipement - Fondation générale (constructeur) Questions d'examen du certificat d'exploitation et examen de simulation
Make the tasks in the scheduled task XXL job flexible
ik分词器的安装
Do you have to read for PMP?
睡前小故事之MySQL起源
[supersocket 2.0] supersocket 2.0 from the beginning to the end
June 13, 2022 Daily: Turing prize winner: what should we pay attention to if we want to succeed in our academic career?
[LeetCode]1. Sum of two numbers thirty-four
Information collection for network security (2)
PMP test difficulty and pass rate
Stm32f4 development of DMA transmission to GPIO port
Transaction creation of btcd transaction process (I)
The e-commerce employee changed the product price to 10% off after leaving the company, and has been detained
如何快速查询手机号码归属地和运营商
String类中split()方法的使用
[MRCTF2020]Ez_bypass --BUUCTF
浏览器控制台注入JS
哲学和文学的区别
2022施工员-设备方向-通用基础(施工员)操作证考试题及模拟考试