JEMBOT MAWOT Bypass Shell

Current Path : /home/cinepatreb/www/patriaManagment/objects/dao/templates/class/
Upload File :
Current File : /home/cinepatreb/www/patriaManagment/objects/dao/templates/class/Template.php

<?php
class Template{
	private $template;
	private $content;

	function Template($template){
		$this->template = $template;
		$this->content = $this->getContent();
	}

	function set($key, $value){
		$this->content = str_replace('${'.$key.'}', $value, $this->content);	
	}

	function getContent(){
		$ret = '';
		$uchwyt = fopen ($this->template, "r");
		while (!feof ($uchwyt)) {
			$buffer = fgets($uchwyt, 4096);
			$ret .= $buffer;
		}
		fclose ($uchwyt);
		return $ret;			
	}
	
	function write($fileName){
		echo $fileName.'<br/>';
		$fd = fopen ($fileName, "w");
		fwrite($fd, $this->content);
		fclose ($fd);
	}
}
?>

xxxxx1.0, XXX xxxx