当前位置:网站首页>Buuctf breakthrough diary --[mrctf2020]ez_ bypass1
Buuctf breakthrough diary --[mrctf2020]ez_ bypass1
2022-07-22 21:10:00 【Breeze--】
The entry page is a little messy , Press view page source code , It is found that they are the same and relatively neat
I put something in F12 for you
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');
}
}Please input first
Code audit :
first if sentence :if(isset($_GET['gg'])&&isset($_GET['id']))
As long as the two parameters are not empty
the second if sentence :if (md5($id) === md5($gg) && $id !== $gg)
Simple ,md5 The encryption type is the same, the data is the same, and $id!==$gg, Bypass with empty array
Third if sentence :if(isset($_POST['passwd']))
post Ginseng passwd Not empty
The fourth one if sentence :if (!is_numeric($passwd))
passwd Not all numbers
The fifth one if sentence :if($passwd==1234567)
Because it can't be all numbers , But there is only == Judge , So there is a weak comparison bypass , Pass in 1234567aa
Meet the above five conditions and successfully get flag
边栏推荐
- BUUCTF闯关日记04--[强网杯 2019]随便注1
- JUC-7.0-线程协作-CountDownLatch
- Bash变量--用户自定义变量
- RPM包管理—YUM在线管理-IP地址配置和网络YUM源
- Realize news page paging
- 第七章:使用jwt token的方式来进行登录
- Bash基本功能—历史命令与补全
- Set colSpan invalidation for TD of table
- Buuctf breakthrough diary -- [ciscn2019 North China division Day2 web1]hack world
- Bash基本功能—多命令顺序执行与管道符
猜你喜欢
[lttng learning journey] - environment construction
[LTTng学习之旅]------Components of LTTng 解构
[LTTng学习之旅]------Trace控制--进阶
Multithreading 04 -- atomicity of threads, CAS
Pytorch custom data set loading (label in CSV file)
Multithread 07 -- ThreadLocal
BUUCTF闯关日记03--[极客大挑战 2019]Havefun1
微信小程序入门教程学习笔记
L'applet Wechat ne peut pas lire la propriété 'setdata' de NULL Error
Chapter 7: login using JWT token
随机推荐
JUC-7.1-线程协作-Semaphore
Using MySQL database in Django
BUUCTF闯关日记--[SUCTF 2019]CheckIn1()
BUUCTF闯关日记--[网鼎杯 2020 青龙组]AreUSerialz
matlab中 FFT 的意义 学习记录
JS BOM(浏览器对象模型)
JUC-7.2-线程协作-Condition
[LTTng实操]------设计一套东西监控某周期运行用户程序的执行时间和周期--需求分析和方案设计
[lttng learning journey] - before starting
Pytorch custom data set loading (label in CSV file)
微信小程序入门教程学习笔记——UI篇之操作反馈
字符处理命令
Chapter 2: Minio stand-alone version, using the client to back up files
[LTTng学习之旅]------在用户程序中简单的添加一个trace点
嵌入式系統學習筆記
ThreadLocal encountered data problems in thread pool and Solutions
[LTTng学习之旅]------LTTng的Feature
LeetCode笔记(一)回溯
BUUCTF闯关日记03--[极客大挑战 2019]Havefun1
4.文本编辑器