Сборка REDL: панель на PHP 8, капча-тумблер, закрытые уязвимости, установщики в один клик

- панель работает на PHP 8.4 (оригинал под PHP 7.0): elFinder utf8_encode, apache_get_modules, warnings
- капча выключена и управляется из админки (флаг captcha_enable + блок настроек)
- закрыты две SQL-инъекции без авторизации (createAuthLog: пароль из POST и CF-Connecting-IP)
- убрано хранение паролей в открытом виде в authlog, XSS в поле ref
- установщики install-panel.sh и install-node.sh (оригинальный затирал sources.list репозиториями Debian 9)
- современный Dockerfile (оригинальный на debian:stretch больше не собирается)
- планировщик и автозапуск работают без systemd
- брендинг REDL.IO, год 2026, ссылки на redl.io
- документация на русском: ИЗМЕНЕНИЯ, БЕЗОПАСНОСТЬ, ИНСТРУКЦИЯ
This commit is contained in:
2026-07-30 02:00:01 +00:00
commit 6ee2744e3a
492 changed files with 354172 additions and 0 deletions
+43
View File
@@ -0,0 +1,43 @@
<?php
/*
Copyright (c) 2020 HOSTINPL (HOSTING-RUS) https://vk.com/hosting_rus
Developed by Samir Shelenko and Alexander Zemlyanoy (https://vk.com/id00v / https://vk.com/mrsasha082)
*/
class ssh2Library {
public function connect($hostname, $username, $password) {
if($link = ssh2_connect($hostname, 22)) {
if(ssh2_auth_password($link, $username, $password)) {
return $link;
}
}
exit("Ошибка: Не удалось соединиться с сервером!");
}
public function execute($link, $cmd)
{
$stream = ssh2_exec($link, $cmd);
stream_set_blocking($stream, true);
$output = '';
while ($get = fgets($stream)) {
$output .= $get;
}
fclose($stream);
return $output;
}
function get($link, $cmd) {
if($cmd) {
$this->stream = ssh2_exec($link, $cmd);
stream_set_blocking($this->stream, true);
}
$line = '';
while($get = fgets($this->stream))
$line.= $get;
return $line;
}
public function disconnect($link) {
ssh2_exec($link, "exit");
}
}
?>