当前位置:网站首页>Ctfshow-web266 (deserialization)
Ctfshow-web266 (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
*/
highlight_file(__FILE__);
include('flag.php');
$cs = file_get_contents('php://input');
class ctfshow{
public $username='xxxxxx';
public $password='xxxxxx';
public function __construct($u,$p){
$this->username=$u;
$this->password=$p;
}
public function login(){
return $this->username===$this->password;
}
public function __toString(){
return $this->username;
}
public function __destruct(){
global $flag;
echo $flag;
}
}
[email protected]($cs);
if(preg_match('/ctfshow/', $cs)){
throw new Exception("Error $ctfshowo",1);
}Law 1 :
In the serialized results ctfshow C Capitalization can bypass judgment ( Grab the bag for POST Repackage )
<?php
class ctfshow{
}
$a=new ctfshow();
echo serialize($a);Law two ( I don't understand ):
Pass in something else in the code , Name exists , But the structure is chaotic , Can be judged to be successful , But you can still use __destruct() function
O:7:"ctfshow":0:{ctf}
边栏推荐
- 基于微信电子书阅读小程序毕业设计毕设作品(7)中期检查报告
- 基于微信电子书阅读小程序毕业设计毕设作品(8)毕业设计论文模板
- synchronized下的 i+=2 和 i++ i++执行结果居然不一样
- Shell 编程正则表达式及元字符
- [generation confrontation network learning III] reading notes of Bigan paper and its principle understanding
- Php+flash large file breakpoint continuation function sharing
- [image denoising] image denoising based on anisotropic filtering with matlab code
- typescript的装饰器(Decorotor)基本使用
- 在 Traefik Proxy 2.5 中使用/开发私有插件(Traefik 官方博客)
- “即服务”,未来已来,始于现在 | IT消费新模式,FOD按需计费
猜你喜欢

In 2021, the global revenue of chlorinated polyvinyl chloride (CPVC) was about $1809.9 million, and it is expected to reach $3691.5 million in 2028

存储体系概述

exec函数、shell的实现
![[5gc] Introduction to three SSC (session and service continuity) modes](/img/98/6e08986269c5dc1f5ce192cdef3e9f.png)
[5gc] Introduction to three SSC (session and service continuity) modes
![[observation] Huawei's next generation data center](/img/d8/a367c26b51d9dbaf53bf4fe2a13917.png)
[observation] Huawei's next generation data center "adds momentum" to Guangxi's low-carbon and high-quality development

vc hacon 聯合編程 GenImage3Extern WriteImage

Meituan won the first place in fewclue in the small sample learning list! Prompt learning+ self training practice

今晚7:00 | PhD Debate 自监督学习在推荐系统中的应用

Shell 数组和函数

3GPP RAN第一次F2F会议,都干了些啥?
随机推荐
基于微信电子书阅读小程序毕业设计毕设作品(4)开题报告
Typescript decorator is basically used
Shell 数组和函数
进程的创建fork()、消亡wait()
The component style set by uniapp takes effect in H5 and app, but does not take effect in wechat applet. The problem is solved
【观察】华为下一代数据中心,为广西低碳高质量发展“添动能”
合理地配置线程池
Blue Bridge Cup basic-14 VIP question time conversion
What are the third-party software testing organizations in Shanghai that share knowledge about software validation testing?
[image denoising] image denoising based on regularization with matlab code
Jenkins各配置选项介绍原创
什么是数据驱动
typescript的装饰器(Decorotor)基本使用
Implementation of VGA protocol based on FPGA
基于微信电子书阅读小程序毕业设计毕设作品(1)开发概要
torch 网络模型转换onnx格式,并可视化
Equipment management - borrowing / returning module interface code
PostgreSQL数据库复制——后台一等公民进程WalReceiver pg_stat_wal_receiver视图
Native servlet - upload & download of files
First build green, then build city