[
MAINHACK
]
Mail Test
BC
Config Scan
HOME
Create...
New File
New Folder
Viewing / Editing File: decoder.js
function con(b) { if ((b & 0xc0) === 0x80) { return b & 0x3f; } else { throw new Error("invalid UTF-8 encoding"); } } function code(min, n) { if (n < min || (0xd800 <= n && n < 0xe000) || n >= 0x10000) { throw new Error("invalid UTF-8 encoding"); } else { return n; } } export function decode(bytes) { return _decode(bytes) .map(x => String.fromCharCode(x)) .join(""); } function _decode(bytes) { if (bytes.length === 0) { return []; } /** * 1 byte */ { const [b1, ...bs] = bytes; if (b1 < 0x80) { return [code(0x0, b1), ..._decode(bs)]; } if (b1 < 0xc0) { throw new Error("invalid UTF-8 encoding"); } } /** * 2 bytes */ { const [b1, b2, ...bs] = bytes; if (b1 < 0xe0) { return [code(0x80, ((b1 & 0x1f) << 6) + con(b2)), ..._decode(bs)]; } } /** * 3 bytes */ { const [b1, b2, b3, ...bs] = bytes; if (b1 < 0xf0) { return [ code(0x800, ((b1 & 0x0f) << 12) + (con(b2) << 6) + con(b3)), ..._decode(bs) ]; } } /** * 4 bytes */ { const [b1, b2, b3, b4, ...bs] = bytes; if (b1 < 0xf8) { return [ code( 0x10000, ((((b1 & 0x07) << 18) + con(b2)) << 12) + (con(b3) << 6) + con(b4) ), ..._decode(bs) ]; } } throw new Error("invalid UTF-8 encoding"); }
Save Changes
Cancel / Back
Close ×
Server Info
Hostname: server1.winmanyltd.com
Server IP: 203.161.60.52
PHP Version: 8.3.27
Server Software: Apache
System: Linux server1.winmanyltd.com 4.18.0-553.22.1.el8_10.x86_64 #1 SMP Tue Sep 24 05:16:59 EDT 2024 x86_64
HDD Total: 117.98 GB
HDD Free: 59.44 GB
Domains on IP: N/A (Requires external lookup)
System Features
Safe Mode:
Off
disable_functions:
None
allow_url_fopen:
On
allow_url_include:
Off
magic_quotes_gpc:
Off
register_globals:
Off
open_basedir:
None
cURL:
Enabled
ZipArchive:
Enabled
MySQLi:
Enabled
PDO:
Enabled
wget:
Yes
curl (cmd):
Yes
perl:
Yes
python:
Yes (py3)
gcc:
Yes
pkexec:
Yes
git:
Yes
User Info
Username: eliosofonline
User ID (UID): 1002
Group ID (GID): 1003
Script Owner UID: 1002
Current Dir Owner: 1002