当前位置:网站首页>[BJDCTF2020]Easy MD5
[BJDCTF2020]Easy MD5
2022-08-08 18:47:00 【努力做大佬m0_68074153】
1.万能密码ffifdyop
查看源码没有什么消息,抓包查看在相应包的http头部发现了hint。
select * from 'admin' where password=md5($pass,true)
这里我们可以使用万能密码,ffifdyop,具体可看师傅的文章ffifdyop——绕过中一个奇妙的字符串。
成功进入下一个界面。
2.MD5碰撞
查看源码发现php代码
<!--
$a = $GET['a'];
$b = $_GET['b'];
if($a != $b && md5($a) == md5($b)){
// wow, glzjin wants a girl friend.
-->
这里又用到了我们的MD5碰撞与弱口令。
构建参数a=s878926199a&b=s155964671a成功进入了下一个界面。具体关于MD5碰撞可以查看ctf.show_web5(MD5碰撞)。
3.3个=的MD5碰撞绕过
这里直接给出了源码。
<?php
error_reporting(0);
include "flag.php";
highlight_file(__FILE__);
if($_POST['param1']!==$_POST['param2']&&md5($_POST['param1'])===md5($_POST['param2'])){
echo $flag;
}
这里和上个界面差不多,只是==变成了===。===MD5的绕过我们可以通过传入数组来绕过。
param1[]=1¶m2[]=2
成功得到flag。
边栏推荐
- 小白转行做3D游戏建模,有没有前途?
- 数据库学习之库的操作
- MIMO雷达波束赋形
- 智驾科技完成C1轮融资,此前2轮已融4.5亿元
- Is there any function in MAXCOMPUTE SQL to judge whether the string is a number?
- 熬夜拜读349页阿里面试通关手册,成功闯入字节
- Lecture 4: Database Definition Language of DDL Type of SQL Statements
- flask基础知识:
- 数字化工厂建设的内容主要有哪三个方面
- Performance optimization | CPU power management from the perspective of ping delay
猜你喜欢
随机推荐
ADB安装方法:
3D角色建模师和3D角色动画师哪个更有前景?哪个更适合小白入门?
干货技巧|如何用3DsMax制作笔记本电脑
How to add F4 Value Help to the input parameters of the report in the ABAP report
疫情期间闲来无事,我自制了一个按钮展示框特效来展示我的博客
达梦数据库 DmAPservice服务,启停影响 DMSERVER库服务吗?
Open Office XML 格式中的 Style 设计原理
如何在Firewalld中为特定IP地址开放端口
3D游戏建模教程:游戏角色制作——赏金猎人,超逼真
hdu2647 N!Again
APICloud AVM wraps date and time selection components
Is there any function in MAXCOMPUTE SQL to judge whether the string is a number?
几何g6将搭载harmonyos系统,产品竞争力全面升级
Lecture 4: Database Definition Language of DDL Type of SQL Statements
The history of cartoon rendering
synApps -- Autosave
21天学习挑战赛——机器学习03
架构设计基本原则
Fortinet new cloud native protection products launched amazon cloud platform of science and technology
用工具实现 Mock API 的整个流程